Let them grow and let’s create custom trees in Minecraft all right we found back inell more and in this tutorial we’re going to be adding a custom tree to Minecraft now this is very important we’re only adding the tree spawning from a sapling they’re not yet going to spawn Inside of the world that’s going to be in the next tutorial this one is just the sapling and then the spawning from the tree basically however this also does require a little bit of wh gens so if you’re jumping into this tutorial I highly recommend if you haven’t set up The configure features and the place features before then you will have to probably watch the previous tutorial which is the or generation because that’s basically where we set up the configure features this is mostly what we’re going to need now also you can take a look at the get up repository in The description below and take a look at that as well but that’s basically everything you’re going to need so let’s take a look in the world gen package you want to create a new package called tree and then inside of there we are going to create the pine tree grower class there You go and this will extend the abstract tree grower this one right here we’re going to hover over this implement the get configure feature method and then here in the return we’re going to make a deliberate error as we do not have the configured feature created yet that we Need to return now to return this we can go to the mod configured features class and the first thing we want to do is we want to make a new resource key as this is the first thing we’re going to need there’s going to be a public static Final resource key of type configured feature of type question mark comma question mark I’m going to call this the Pine uncore Key equal to the register key method I’m going to call this here Pine there you go and of course we also need to now register this for a Configured feature so how is this going to look like it’s actually I mean I wouldn’t say straightforward but it is fairly understandable once I go through line by line so we’re going to call the register method passing in the context and then the Pine Key now this is a Feature. tree in this case as this is a tree feature and for a tree feature we want to configure this so we need a new tree configuration but then we want to do tree configuration tree configuration Builder and then here there’s a bunch of things that are going To go in here the first one is a block State provider this is going to be a block State provider. simple you can see it already suggests this to us and then we can say mod blocks. pinore log. getet and then a comma here at the end and the Second parameter that we want toay put in is a trunk Placer in this case we’re going to choose the straight trunk Placer as this is the easiest I will go through each of those mean in just a second but let’s just do let’s say a four and a three right there that’s Going to be fine then we need another block State provider once again a simple one for mod blocks. pine leaves this time.get there you go and then we need a new foliage Placer in this case a blob foliage Placer with a constant int. of we’re going to do a three here another Constant in of let’s say a three again no let’s say a two here and then a three at the end and then a new two layers feature size and we’re going to do 1 Zer and two and then two closing parentheses build and then we can delete one of the Closing parentheses and there you go there we have it no errors remaining now what does this tree configuration mean this is a lot to take in at first glance but when you really look at it you can sort of split it up like this and you can see well this block State provider Just gives you a block that you should place right which is the pine log right that’s the normal log that is being placed and then how is this being placed in a straight trunk that’s pretty much all that there’s to it and then the second pairing so to speak is the leaves Right so what are the leaves and how are we placing those in a blob foliage fashion let’s say what I highly recommend if you are interested in trunk and foliage placing you know different ones you can middle Mouse button click on this look at the trunk Placer right Here and press contrl h after clicking on it and you can see the different trunk placers and you can basically do the same thing right middle Mouse bu click on the blood foliage Placer click here press contrl h and you will see all the different foliage placers and you Can also make your own custom ones which we actually will also do in a future tutorial so we’re going to make a custom trunk in a custom foliage Placer is going to be very interesting basically just showing how to do it because getting it to work at all is a tiny bit Tricky and then mastering it is of course a lot more tricky but that is basically what we’re going to take a look at as well and then here the two features sides over here you can see there are basically I mean just two different feature sizes over here when It comes to the feature size the prevailing idea is that this sort of checks the space around the feature basically the tree right here that is being placed so that is what this is and when it comes to the numbers here in the straight trunk Placer and the BL foliage Placer highly recommended to just go in here and basically take a look at the super for example you can see the first one is a base height and then you get two random Heights that are basically added on top of here the same thing goes for the foliage Placer over here the Last one here is the height and then this one is the radius and the offset highly recommend it as always to just play around with the numbers here as well as that is probably one of the easiest ways to get the tree that you want we can go back to the Pine Tree Grower over here and return mod configured features. Pine key over here and as you can see everything here now working totally fine so what we can then do is we can basically close this as we are done with the configured feature and we now just need a custom sapling so we Don’t have a sapling just yet as I didn’t create that in the custom wood tutorial but that’s going to be fine so what we’re going to do is we’re just going to take in a sapling here this one is going to require a register block as Well so because this needs a an item associated with it so this is going to be the pine sapling and of course change the name here as well Pine underscore sapling this is going to be a sapling block and the first parameter is going to be a new pine tree grower comma and Then you can see block Behavior properties we definitely want to copy one of the saplings over here it doesn’t really matter which one I do like to choose the oak sapling and there you go and that should be pretty much what we’re going to need here but of course We’re not quite done because we need the data gen for this as well when it comes to the loot it should just drop itself I’m pretty sure so that’s going to be fairly straightforward right we’re just going to actually add this here at the end that’s going to be a little bit Better but not twice only once there youo so it’s going to drop itself but also here in the to-do change to sapling very important if you followed the creating of the wood tutorial in the leaves I set this to the sapphire block this now needs to be the sapling so that The leaves properly drop the sapling as well that is very important to change as well and we can now proceed to the block States and do we have something no we do not so we need a custom method again this is going to be available to use Sapling block right here but that is it’s not actually that complicated but you know it’s it’s just a little bit easier with this there going to be M blocks. fine sapling there you go this is for the sapling block you just need to add this basically manually because There is no method that I have found that is basically set open for a sapling but that’s going to be okay and then last but certainly not least the this is the item model and this also requires a custom method right here this is going to be the sapling item as this once Again is a little bit different basically it it is similar to the assle item but it is a little bit different so there therefore I’m going to do mod blocks. fine sapling over here you can see this is the sapling the sapling item custom method all of the code as always Available in the description below in the GI up repository so no worries at all of course we also need a translation let’s not forget that that’s actually also quite important there you go this is going to be the pine sapling and of course item texture for it as well Because the sapling itself has a custom texture associated with it that’s going to be okay and this doesn’t go into the item folder but into the block folder and you might have already spotted it if you paid attention here to the sap this looks for a block right so this is going To be looking into the block folder and the item over here this is why we need this because this also looks for the block folder then we don’t have the same texture duplicated for the block and the item because that’s just unnecessary with this done we can run the data gen And of course I was a little bit too excited of course we still need to add this to the creative mode Tab and once we’ve done this we can now jump into the game and see if it works all right found back in Minecraft and let’s take a look There is the pine sapling let’s get some bone meal over here here as well and let’s get ourselves a nice little dirt or grass block over here there you go and we can actually do the following we can actually set this down as well and One of them we can just grow with a with some bone meal and sometimes it takes a while but there you freaking go and I mean look at the beauty of this this is definitely not how a pine tree looks like but you know what it is what it is But of course you can always change the foliage Placer or the trunk Placer but that is pretty cool already and what you can also do is when you do a game rule over here random tick speed and we’re just going to like go crazy at some Point over here right if we do 10 times maybe 100 times the speed at some point this should grow uh let’s go I mean okay at some point come on come on there you go let’s go just took a moment but there we go so it grows both with bone meal as Well as normally and that’s going to be a custom tree added to Minecraft and as I’ve already said in this video right here will continue by spawning the tree naturally with worlden hope to see you there so yeah Video Information
This video, titled ‘Forge Modding Tutorial – Minecraft 1.20.1: Custom Tree | #39’, was uploaded by Modding by Kaupenjoe on 2023-11-13 15:59:54. It has garnered 518 views and 32 likes. The duration of the video is 00:08:59 or 539 seconds.
In this Minecraft Modding Tutorial, we are adding a custom Tree spawning from a Sapling to Minecraft 1.20.1 using Forge.
== MODDING COURSES == FORGE ▶️ https://url.kaupenjoe.net/CourseForge120X FABRIC ▶️ https://url.kaupenjoe.net/CourseFabric120X
== SUPPORT ME ON PATREON == ▶️ https://url.kaupenjoe.net/patreon
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.20.X/tree/39-customTree Zipped Assets: https://url.kaupenjoe.net/mbkj122/assets
== 25% OFF FOR GAMING SERVERS == ▶️ https://www.bisecthosting.com/Kaupenjoe
== TAKE A LOOK AT MY COURSES WITH COUPON CODES == ▶️ NEW Forge Modding with Minecraft 1.20.X: https://url.kaupenjoe.net/CourseForge120X ▶️ NEW Fabric Modding with Minecraft 1.20.X: https://url.kaupenjoe.net/CourseFabric120X ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 * ▶️ Complete and Roblox Lua Game Development: https://url.kaupenjoe.net/RobloxCoupon *
== SUPPORT ME ON PATREON == ▶️ https://url.kaupenjoe.net/patreon
== SOCIALS == Discord: https://url.kaupenjoe.net/discord Personal Twitter: https://twitter.com/Kaupenjoe
Instagram: https://url.kaupenjoe.net/tutorials/instagram Facebook: https://url.kaupenjoe.net/tutorials/facebook Twitter: https://url.kaupenjoe.net/tutorials/twitter TikTok: https://url.kaupenjoe.net/tutorials/tiktok Written Tutorials: https://url.kaupenjoe.net/tutorials/blog
== LICENSE == Source Code is distributed under the MIT License. Additional Licenses for other assets can be seen below or in the accompanying CREDITS.txt on download.
== AFFILIATE DISCLAIMER == * Some of the links and other products that appear in the video description are from companies which I will earn an affiliate commission or referral bonus from or are my own products. This means that if you click on one of the product links, I’ll receive a small commission or additional kickback without any additional cost for you. This helps support the channel and allows me to continue to make videos. Thank you for the support!
== HASHTAGS == #Minecraft #MinecraftModding #MinecraftTutorial #Kaupenjoe