Hey what’s going on guys so to us here and welcome back to another minecraft morning so 4,000 1.15 in this show I’m going to be going over how you can create leaves saplings logs and planks as I want to start on some tree generation food so I think this is worth Doing so let’s just go ahead and get started so the first thing we’re going to go ahead and do is going to our block and its new and we’re going to have to register the blocks first so first let’s do the planks and which is super easy so That is just a public static final registry object of block and I’m going to call this let’s think of a name for it I don’t want to keep it as example and test and and all that jazz yeah in fact jazz let’s call it jazz jazz underscore planets okay and then it’s Gonna equal blocks dot register versus obviously the registry name which is just going to be jazz underscore planks and then the supplier is just a normal supplier as this is this is just a basic block really of a new block and just let it load if it doesn’t crash yet there You go and then block dr. properties dot create and first we want the material so material dots wood and then we want knee material color and do we have yep would perfect and then we can do to hardness and resistance in fact I’m going to get it from the minecraft block properties Of just Oakwood I think that’s a lot easier so we can do blocks dots oak oak planks is what all you want and that would just basically do all of that for us that’s right isn’t it but properties dots is it from from there you go not off okay and that is Basically our planks now have planks and that’s what we can go ahead and do is the lock so that is just a public static final registry object of block and let’s go at jazz underscore log that’s going to equal block stop register jazz unschool log and the supplier now the Question is can we do a new log block we can nice material colored wood properties we can just once again use the oak properties so block dots with properties from blocks dots oak oak log there we go it’s just a lot easier to use those properties rather than our own and then We can create the what’s next the leaves so a public static final registry object of block and we can call it a jazz under school leaves and that’s gonna equal blocks register and jazz and school leaves and the supplier and a new I think we can do leaves block and then block properties Dot from actually yeah yeah yeah that we fine and then leaves so oak leaves pretty simple and then I think the sapling we’re going to have to do ourselves so it’s still just a public static final registry registry object of block jazz underscore sapling and that’s going to equal blocks register jazz Underscore sapling and the supplier a new jazz sapling as we need our own class for this because obviously it has different world generation and this is just going to be less and less actually sapling block what does that take in it might take in the world gen class it Does okay so we can just use your sapling class so for now I’m gonna put a null for a second and because we don’t have anything we don’t have a class for that yet and then we can do block got properties got from blocks dot oak underscore sapling Okay actually that’s not visible is it no okay so what we can do is go into our objects package blocks and we can create a new class if a clip one lagging there we go and we’re gonna call this jazz sapling block and here we can just call It a mod sapling block and rename the file to that and that can extend a sapling block and just add the constructor and we just want to make that constructor public just like that and that’s it we can now use that class instead there we go just import that and Why that is it so now we can yeah I’m not gonna do the tree generation in this one and I want to leave this kind of short and the true generation will be shortly after this one so now we can come out with that we’ve now done that And we can do the models so first is the block state so let’s look into the vanilla stuff so client extra assets on minecraft block states and we’ll look at the a cashier stuff cuz that’s honestly easiest and we can just copy that one and create a new untitled txt file in Our block States paste that in and basically you just want to replace that oh god no so just ctrl F to get this menu up and replace that with tutorial mod : block slash jazz and for log just replace all and voila you can just save it source main Resources assets tutorial more block states there’s underscore log Jason to make sure it’s dr. dot dot Jason and there we go and that is that ok next you can create the planks which is just a basic block so we can use our example block for that so just copy our region On block paste it in because planks are literally just a normal block but with a different texture come on Eclipse you’re not normally this slow I know you’re all oh god oh god oh there we go just took its time it’s because I have a lot of projects in this one workspace What did we call it jazz jazz underscore planks I think release that’s what we should have called it let’s check what we called it that this was going to in it real quick and because it’s planks yes we did cool it that I wasn’t sure if I accidentally called it jazz underscore Block obviously that would have caused just some issues oh god that’s horrible color I apologize I will fix that for the next one jazz underscore planks there you go and then we create the leaves which once again are the exact same so jazz underscore leaves and it’s just A normal block again most of the properties of it are just literally coming from the Java code a lot of it isn’t done in the block states and then we can do the sapling which is going to be slightly different so jazz underscore sapling if I remember correctly oh I Know I think is the same right oh no it has to growth stages doesn’t it no it doesn’t it doesn’t have to growth stages okay it used to it doesn’t anymore though yeah that’s fine all right that’s the block states done let’s go into our lang and just do this Real quick so yep there’s our blocks lock dock you call real mod dots jazz and sport planks and then block you call real mod jazz and log block tutorial mod dot J’s underscore sapling and finally block dot tutorial mod dot jazz underscore leaves and then we can just Fill these out so jet has leaves jazz sapling jazz log I don’t like jazz by the way just before anyone you know starts thinking I like jazz I don’t just want to make sure we put a comma there fix that there you go that’s the Langdon now we go ahead do The block models so obviously the leaves and the Chad and the planks are just the exact same as a normal block so jazz underscore planks and we can do jazz and score leaves just go into these and just change it to jazz underscore planks and Yes and or leaves there we go and we just need to now do the other things so first is the sapling so jazz and small sapling and then Jonas and school log Now if we just go into the models block we can look at the a KCl log it’s just a cube column this was pretty simple okay and that’s just gonna be instead of that it’s tutorial mod : we’ve got to change block two blocks block two blocks or real mod and go and Instead of a KC log it’s just jazz underscore log and jazz underscore log underscore top okay that’s those ones and then the sampling I think it’s cross I think that’s what they call it and but we can check anyways just in case yes block / cross so that’s going to the Sapling over out in case you dude for real mod : change block two blocks change a case year to jazz what a lot okay now for the item models so these are lish is just going to parent off of the block and so jazz and slope planks jazz and leaves Jazz and log and jazz underscore sapling now the sapling is obviously slightly different as you should know if you look a sapling in minecraft so let’s just have a look if we can find that in case your sapling yeah it uses an item generated for the sapling so it’s just Basically a normal item so we can just change that tutorial mod and blocks instead of a Keysha it’s just jazz nice and then the rest are just like normal and so you just placed example block with an O actually yeah that is right that’s right replace example block with jazz underscore Planks replace log with chairs and swirl logs and leaves with chairs ones for leaves and one ah that is it so now I’m going to go ahead and create these textures they’re all in the blocks package so I’m gonna go create those and I’ll see you guys once I have done that Okay I have now done all the textures now you may notice that it hasn’t actually gone and appeared in my blog package you need to make sure that it has appeared in there and if it hasn’t what you need to do right click your projects and just click refresh if You’re using IntelliJ it should do it automatically and but just in case it doesn’t make sure you do thick refresh and as you can see they’ve all appeared now with my amazing textures I believe the leaves need to be greyscale otherwise it won’t work and I’m not sure So just go ahead and run the game and yeah we will see if they are in the game okay so I am now in the game as you can see and we have one issue here with the sampling now this is actually expected as we haven’t set the render type to cut Out so we can go into our client event box which we should have so where’s that util client event bus and I think it’s client setup we can go ahead yeah it is it’s client setup and in here we can do render type lookup dot set render layer and then that’s the Block that you want to do so block key in it new dot jazz sampling and then the predicate is this the render type so render type dot and we won’t get cut out is the one we want and all we need to make sure we put get Of course and now if I just rerun the game we can go ahead and see that that will work I’m also going to change the texture for the leaves as well so yeah I will see you guys in the game okay so we are now in the game and and it is all Working which is all good and as you can see all right here and we’ve got a lot of sampling texture we got the leaves we got the log which can rotate and in all directions it’s just lovely we can’t strip it I don’t think I don’t think we implemented that yet let’s Check it might crash but first let me show you know the planks exist yeah we can’t strip it because we probably need our own log class to strip it and so if you want to go ahead and do that you can do that but it’s basically just a class Which extends the log block and you use the unblock activated which will basically be the same method for at the log class but yeah that’s it obviously this will crash if it grows so I have set thee game tech speed to zero so it doesn’t even attempt and I will be Doing the tree generation very shortly and so yeah I’ll see you guys in the next one good bye Video Information
This video, titled ‘Minecraft Modding Tutorial 1.15 | Episode 26 – Logs, Saplings, Leaves and Planks’, was uploaded by TurtyWurty on 2020-03-28 16:45:10. It has garnered 4547 views and 128 likes. The duration of the video is 00:19:13 or 1153 seconds.
Hey guys, TurtyWurty here, in this video I cover how to make Logs, Saplings, Leaves and Planks and I will be using these in the next few videos. I will be redoing the sapling in the next video as well as for now it is just a template for the sapling and will crash if you try to grow it. Hope you guys enjoy, all links are below VVVV!
My Discord Server: https://discord.gg/d5cGhKQ My Personal Mod(Vanilla Expansions): https://www.curseforge.com/minecraft/mc-mods/vanilla-expansions Episode 25: https://youtu.be/y0jo5NdnsG8 My GitHub: https://github.com/DaRealTurtyWurty/1.15-Tut-Mod Tutorials I will be doing: https://trello.com/b/LNQlC0l1
Minecraft Forge 1.15.2: https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.15.2.html