Hello hello hello everybody and welcome back to another minecraft modding tutorial for version 1.19 in this tutorial we are going to be covering creative tabs which are once again as i have been saying in all these tutorials very simple so let’s just go ahead and let’s get started there’s not much to This really so all we want is in our main class we’re going to create a public static final creative mode tab and i’m just going to call this tab right i’m going to say that’s equal to a new creative mode tab there you go and this does require something in the Constructor i believe which should be the name so i think we can just put in mod id there yes that is correct so that is basically just the name uh we can yeah that’s fine and then we just want the icon so what will that be so what do we want to Do as the icon uh i think we’ll use one of our items so we’ve got item in it dots um we’ll go just example item now as you can see we’ve got get on the item and it’s not working because it’s expecting an item stack what earth is an item stack No idea what that is so basically an item stack is as it says in the name really it’s a stack of items so an item stack holds everything about an item so it holds all of the nbt it holds the stack size it holds the durability it holds everything you know The item is just the functionality the item stack is the in-world instance of that item basically so how do we convert an item stack to an item an item to an item stack well it’s it’s pretty simple actually so all you need to do is take that out and return a new Item stack and that will then take in our item that works fine however um there is a better way and that is simply just to call don’t get default instance boom that works now what’s going on here uh wants us to annotate with not now sure it doesn’t matter um Fantastic that’s it now you can override other methods in here as well um if they want to show up hello so there is a method here called fill item list um essentially what this does is this will fill the items so this is what happens when the creative mode temp Tries to fill with items now what you can do here is you can order the items in whatever order you want so for example you could say um is this the right method this doesn’t feel right have they changed this it’s not actually showing me the methods i wanted to show me but Yeah so fill item list and then yeah you can you can manually uh fill them how you want to fill them basically i’m not going to do that um that’s a lot of messing around and not really worth it so yeah it’s up to you if you choose to do that That’s pretty much it let’s actually use this creative mode tab shall we so let’s do that for all of our items so let’s say instead of creating mode tab here we want to say tutorial mod dot tab and we’re going to copy that and we’re going to paste it in here as well And just remove those imports and we’re going to do the same now blocking it here so there and there and just remove that as well fantastic so the final thing we need to go ahead and do is add it to our lang so we know what the name of the um Well the name of the tab will be cool so for that it’s just item group dot and then whatever we put in as that string which we just put in our mod id which is tutorial mod so um tutorial tab pretty simple and completely unrelated thing which i just Thought we might as well do is to pack that empty meta uh we might as well just quickly do this here so all this asks for is our mod id it doesn’t really matter it’s a really minor thing it doesn’t change anything but it’s just something you kind of do Yeah it as i say it doesn’t really matter but let’s run the game um just check that this works and yeah okay here we are so now as you can see there’s an extra arrow we can just go to there there’s our tutorial tab it has our item it has its name That’s pretty much it so i hope you guys did find this tutorial useful if you did please do sure to smash your face into that like button and subscribe if you really found it useful please be sure to share it around i’m sure other people might find it useful too And uh yeah see you guys in the next tutorial good bye Video Information
This video, titled ‘1.19 Minecraft Forge Modding Tutorial – Creative Tabs’, was uploaded by TurtyWurty on 2022-06-27 16:30:02. It has garnered 3931 views and 95 likes. The duration of the video is 00:06:37 or 397 seconds.
Hello everyone, in this video we will be making our very own creative tab and add our items and blocks to it!
In the next video we will be adding some food 😋! Remember, if you have any problems, please join the discord that is linked below!
–Links– Patreon: https://www.patreon.com/turtywurty Discord: https://discord.gg/BAYB3A38wn Github: https://github.com/DaRealTurtyWurty/1.19TutorialMod Trello: WIP