Hey guys what’s up i hope you’re all doing well today we’re doing another script tutorial and uh happy holidays look i i got i got a uh christmas hat can you see oh there we go look at that wow um i’m not sure if it’s actually minecraft who made this or if it’s Optifine but it is pretty damn cool anyway i hope you’re having a great christmas today i’m gonna make you a beginner’s guide for guise in script yes let’s get started the first thing you want to do is you want to of course get script um if you don’t know how to Do this and getting started and all that with script then i would suggest that you watch my first script tutorial the um custom command script tutorial it will be in the i in the top right corner and in the description so check that out anyway my server is hosted on mine hut So i’ll just go over to the control panel here we have my server and the first thing you want to do is you want to go to plugins and then as you can see we’ve already got a script installed but we want tusca a script add-on installed as well If you’re not running your server on mine hot then links will be in the description as well for these so you can download them yourself for your own server anyway i’m gonna run a quick restart and then we’ll be right back all right servers back up let’s go into file manager And you want to go to plugins script scripts and then we’ve got all our scripts here i’m going to make a new one up here and let’s just name it gui.sk create that now usually i don’t write my code inside the mine the mine hot uh control panel Or dashboard or whatever you want to call it i write mine in my own program because i just think that makes it a lot easier you can do whatever you want but i’m gonna write it in adam all right i’ve created a new file in adam And the first thing we’re gonna do is we’re gonna write command slash gui that i’m assuming that’s what we want the command to be and then a little colon after that we’re gonna do next line a tab and then we’re gonna do um you can do permission And we can just set that to up you can also set it to i don’t know like command dot gui for example if you want that but if you put up then it’s just all players that are opt are allowed to do this one ah we can do permission message Oh actually i just realized i missed an eye up here be aware of that let’s do message and we can do a message so you want to do two quotation marks right there and then let’s just do um red text that says you can’t do this all right Um yeah then we’re gonna start doing the actual things we’re gonna do trigger um that’s a thing you always wanna do when you’re when you’re making a command then what i’ve done is i have made another line and then another tab and then we’re getting to the spicy stuff here So we type in open virtual chest inventory with size and this size means the uh amount of rows in your inventory if you want it to be a double chest you have to do six if you want it to be a single chest um you have to do Three i’m gonna just go with three and then we can add a name to it so named then we can do i don’t know just something like gui and you gotta add two player at the end so right now all it does is it opens a chest with three rows that’s named ui So now we want to start formatting some slots here um you do that by format gui slot and then the slot number um you can google this uh there’s many pictures and whatever on the internet that shows the numbers of each slot which slot has the correct number you Can also just count it but uh i just know that 11 is where we want it right now so i’m just gonna do 11 of player with and now you’re going to specify the block um that you want it to be or the item of course i’m going to do grass block Because i want these or i want this gui to change your game mode that’s just a funny thing i wanted to do and i’m thinking when you click on the first item here you would change your game mode into survival so we’re gonna format a gui slot 11 of player with grass block Named we can give this a name as well this one could be survival and imma just make the text green and name it survival we can also do a lore which is going to say something like change game mode to and then we can do that and then if you Want to add another line of lore you can add a little and and then two quotation marks again and we can do survival there we go um let’s just start with this let’s see if it works so we’re just gonna copy this and then we’re gonna go back in to our Script here we’re gonna paste it in and then we’re gonna click save down here then we’re gonna go back in game and we’re gonna type uh script reload gui that’s the name of our script and it’s reloaded so let’s try it slash gui and it works it opens A gui with three rows and uh it’s named ui and it has survival change game which is bible and you can click it nothing happens all right let’s go back into the code because we actually we want this to do something when we actually click the item So you want to do two run after and very important uh you need to remember the colon then next row and then one more tab we’re just going to do a simple set players game mode to survive oh there we go and if you will we can also do a close players inventory So now it should set players game out to survival and close the player’s inventory after that so let’s try it put it in here and save it as before go back in we reload and let’s see bing we got set to survival and it closed the menu alright let’s add some More to this because right now it’s pretty basic we can add another one we can just copy this whole thing actually copy it like this make a new line delete that and paste it and now it made it another tab so i’m just gonna delete Each one there we go this is how it should look we can change the slot to 15 instead and the block to i don’t know like bedrock and then let’s do create creative and change gamer2 we’re just gonna change it creative everywhere it says survival we’re gonna change to creative and here also Creative there we go so now we should have another one bedrock in slot 15 that changes your game mode to creative another thing we could do we could add another one i’d do an extra line and then delete one of the tabs so we are on line with the other format gui’s And then we’re to format a new one on slot 22 that’s in the middle on the bottom of player with barrier named and in red close to run another tab close players inventory this is just a little thing um that will appear at the bottom so you can close The menu pretty easily let’s let’s see this let’s uh copy it into our thing and remember to save it and go back in game well how did you know i was recording a video bro you stalking anyway um we do script reload gui as always and Uh two spaces blah blah blah found oh yeah i know i know we we forgot a colon right here oh what a what a cheeky one let’s try again it works slash gui it works we have our survival our creative and we have the close if you click the close it will close If we open again click the creative it will close and set us into creative alright that is pretty much it i just quickly want to show you how to format more slots with only one uh format line or whatever you want to call it let’s go back into the code As you can see after the run everything i have here is just whatever you want it to do so you can just type whatever you want here um blow up a creeper whatever as long as you have the correct code for it you can put everything here if we just move this Down just twice and then we can add some variables there we got it remember the colon enter once one tab and let’s do let’s call it frame frame and it’s gonna be um blue stain stained glass pain so this frame right here will always be a blue stained glass pane And if we go down here after our open virtual chest we add another line and we can format um gui of slot zero and one and two and so on until we have all of these numbers which are the numbers of the slots all the way around I have not added 22 because we have a close um item in that so yeah and then we do off player with frame and we can even we can name it and we can give it uh just a color code so it it doesn’t have any name at all and then We can copy all this you can paste it in to our actual script save it go back in here reload it and let’s hope it works it works we slash gui and let’s see all right so now we’ve got a blue uh stained glass line all the way around pretty cool it Doesn’t look that good on a small menu like this but if you had a double chest it would look a bit better i think but yeah that’s pretty much it we can change to creative and survival pretty easily now what a great gui and all right that’s pretty much it If you have any further questions please join my discord server a link in the description and ask them there i’ll try to answer everyone and uh yeah if you like you’ll if you if you like you you like and if you haven’t already subscribe and All that and i’ll see you guys in the next one bye You Video Information
This video, titled ‘How To Make A GUI – Minecraft Skript Tutorial’, was uploaded by Fan Staaff on 2020-12-28 13:05:48. It has garnered 66398 views and 1255 likes. The duration of the video is 00:13:40 or 820 seconds.
This video is made in 1.16.4 (December 2020) Here I am showing how to make a simple GUI with Skript.
————————————————————————————————— Follow me on twitter ➤ https://twitter.com/FanStaaff Follow me on Instagram ➤ https://instagram.com/FanStaaff Join my discord server ➤ https://discord.gg/uFADe7a And ask me any question there! ————————————————————————————————— Episode one:
https://youtu.be/HauDIZpBLhU ————————————————————————————————— All Downloads:
Skript: https://github.com/SkriptLang/Skript/releases
Tusk: https://forums.skunity.com/resources/tuske-custom-enchantments-gui-manager-and-more.16/
Atom: https://atom.io/
DISCLAIMER: Non of the plugins above are owned by me! Go support the creators by clicking the links above. ————————————————————————————————— How To Get A FREE Minecraft Server:
https://www.youtube.com/watch?v=keTbL3P1-do&t=34s ————————————————————————————————— Download my Minecraft maps at: https://www.planetminecraft.com/member/fan_staaff ————————————————————————————————— Music Credit: June – Bobby Richards Lights – Patrick Patrikios Vishnu – Patrick Patrikios Revolutionary – Causmic ————————————————————————————————— Thumbnail: Font credit: https://www.dafont.com/minecrafter.font ————————————————————————————————— #minehut #skript #tutorial #minecraft Hope You Enjoy!