In this tutorial we’ll add beautiful flowers to minecraft let’s see how to do that all right we find ourselves back in intellij once more and in this tutorial we will add a custom flower to the game and will also make it spawn in the world so a custom flower on its own is Actually not that complicated we’re going to copy the redwood sapling here as an example and we are going to make a hyacinth and the reason i’m going to make a higher synth is because i just really love spelling the word it’s yeah definitely make sure that you write this correctly everywhere this is Going to be probably the most error prone video i’ve done for a while however after we’ve made it higher since here and then given the name highest synth we’re going to make this a new flower block now the new flower block actually requires three parameters and The first isn’t a tree the first is actually an effect so we’re going to do effects that for example let’s do haste and then we’ll make effected duration we’ll make it like i don’t know 20 something like that and we can actually see if we hover over the flower block And then press alt and f7 then we expand this we can actually see that oh 720 is actually a lot we can see that for example dandelions give saturation saturation night vision resist fire resistance blindness put that to a 2 is probably better 20 is a little too much If a suspicious stew is made with a higher synth in this case then you would get this effect for this duration and of course we want this from the dandelion let’s see so dandelion they go so that is how easy it is actually to add the Flower we need one more thing for it to actually properly display and that is in the tutorial mod class we want to simply go down oh we want to go down here to the do client stuff and just duplicate this line so control d to duplicate it And then we’ll say hi it’s in the theater so this also gets the get cut out because we once again have a block that is displayed in a little bit of a different way and flowers are actually done in a cross pattern and we’re gonna See this soon enough when we look at the model that’s actually all the code requires at least for making the flower we’re still going to see what the generation entails however let’s first of all add the json files right i’m quickly going to copy over the block States json and as you can see it is a normal block stage json so you can basically take any of your normal block states json files copy it or of course you can also go down into the description to the github repository and get the json files from there the models Are a bit more interesting so the block model if we copy this one over you can see that it has the block slash cross parent and then we have the cross pattern here instead of having all or block all in this case so this is a little bit different but also Not too interesting so this simply makes it so that the block is displayed in a cross pattern or rather the texture and the item actually doesn’t point back to the block model it actually is the texture itself so as you can see this simply points once again to the block Texture in this case so this is a something that’s a little bit different so instead of having this in the item folder here in textures we simply leave it in the block texture because it’s going to be the same texture anyway so why would we need it twice doesn’t Really make sense so yeah i can just uh copy over the png as well so now the texture is in here as well that’s actually all we need to add at the flower now this was requested with a bush the thing about it is that the flower block actually extends bush block So there really isn’t that much of a difference here in terms of what’s happening so overall this should be fairly easily translatable between the two now the flower has been added of course let’s not forget to add the translation as well and now let’s see what the world generation entails right Overall the world generation is actually not that difficult so what we’re gonna do is we’re going to go to the mod configured features class and middle mouse button click on the feature class here so this is the feature class that contains a whole bunch of features from minecraft basically and we’re going to See right below the tree we have the flowers feature and if we middle mouse button click on that we can actually get to the features class as well so this is the class that contains all of the registered features and we can now see how this is done in vanilla so for Example the flower warm there’s a different types of flowers there’s default flowers forest swamp plain plain decorated so there’s different types of sort of flower groups that spawn and we can see that it takes the feature.flower with configuration that’s pretty normal and then usually it gets some conflicts Here in case of the forest it actually makes a new configuration here for example with a builder here we have a blue orchid simple block state provider so there’s a bunch of different ways that we can do this if i can if i go here you can see that it actually is Quite a long while we are going to copy over the flower plane here just uh because that’s going to make it a little bit easier for us so we’re just going to copy this over in its entirety is fine and then we’re going to make a new public static Final configured feature question mark question mark and that’s going to be the higher synth underscore config and that’s going to be equal to what we’ve just copied now we have to actually make a few adjustments here quite a bit actually but no worries whatsoever so let’s format this a little bit Differently uh something like that that’s okay and then we have one too many parentheses there and then instead of the plain flower block state provider we want to make a new simple block save provider and then get in the modblogs.hyacin now we’re not done yet because uh first Of all we actually don’t want this to try 64 times that’s actually a few too many times let’s do it 12 times and then after the end here we also want this to be with placement and then we’re going to choose the features dot placements dot height map placement and then dot Count and now we can sort of decide how many we want let’s do three for the time being actually let’s do five just so that we get an abundance of those flowers spawning because that’s always i find that if you want to test out the world generation it’s best to basically Almost times five your number that’s like the best idea and then just get an abundance of what you want to see and then just lower your number and then still try to find it now if it’s of course something like hey i want this flower to spawn like once every 10 000 Blocks well to test that you’re gonna either have to really trust your code or you’re just gonna take the time and try to find it but overall i think that that’s fine and that’s actually all we really need we don’t really need to make a new feature or anything like that that Should be enough yeah and this will be then called in a new class so in the gen package right click new java class and that is the mod flower generation there’s a good point of saying that instead of having a mod flower generation and a mod 3 generation we Could also have a mod vegetal decoration generation well that’s pretty mouthful it does sort of make sense but it really depends on what you want to do so it’s not required or it’s not really it basically comes down to personal preference if i’m absolutely honest so Generate flowers is going to be this one and this is going to be could you guess it a biome loading event called event and then this now you can actually take the mod tree event and basically copy all of this over because this is almost exactly the same so the only Thing that we’re going to change here is this base so we’re going to delete that and we’ll put in the mod configured features dot hyacinth config that’s actually it that’s all we really need to do in order to spawn this properly and that’s pretty much it we can clean this Up a little bit there you go once we actually call the generate flowers method it’s going to be fine so in the mod world events after the mod or generation we want to do mod flower generation generate flowers event so once again this is important that these Two are grouped together and after the mod or generation because of the way that the world generation stages work if you think back to the decoration here you can see that we have the underground oars first and then we get the vegetal decoration we can do vegetable decoration ores and then vegetal Decoration again so we have to stick to this order otherwise it’s not going to work that’s why it should be in between or after the match regeneration that also works but they have to be sort of grouped together so it might actually be a good case to do something like this so We know that okay those two belong together but that’s actually all we need to spawn the flower in game so i would say let’s see if it works and of course don’t forget to actually create a new world because we’ve messed with the world generation again just a quick Reminder all right we actually luckily spawned into a plane’s biome so that’s actually kind of nice and there you go there are my flowers and so what i want to say definitely is that i personally really like the textures i think that i’ve gotten better with the textures and I actually think that this is a this is a workable flower texture i think that it could definitely be improved and maybe you’re going to say well a highest i’m not sure about that fair enough but the main thing is that it spawns in the World and that’s how easy it is now of course as you can clearly see it is way too much or maybe it’s not maybe it’s that that’s exactly what you want this is actually how easy it is and now of course tweak the numbers right you can Tweak the number with the tries you can tweak the numbers with the count how many are going to spawn and you can also of course tweak a little bit of the feature so if we go back to the mod configure features like i said i would Have put in three here maybe and then we can also make a few less tries here you could of course also choose a different placement here as well so there’s a whole bunch of stuff that you can try the thing about the world generation like i’ve said multiple times already is You got to try out some stuff and you can of course always go into the features class and take a look at how vanilla does it right but that would or but that would already be for this tutorial right here i hope you found this useful and you learned something New if you did i would of course appreciate a like and i will see you in the next tutorial so yeah Video Information
This video, titled ‘Add CUSTOM FLOWERS (+ World Gen) to Minecraft 1.16.5 | Forge 1.16.5 Modding #26’, was uploaded by Modding by Kaupenjoe on 2021-09-06 14:00:26. It has garnered 2654 views and 77 likes. The duration of the video is 00:09:27 or 567 seconds.
In this Minecraft Modding Tutorial, we are adding custom flowers to the game as well to the World Generation!
== MAPPINGS USED THIS TUTORIAL == mappings channel: ‘snapshot’, version: ‘20210309-1.16.5’
== MINECRAFT FORGE 1.16.5 PLAYLIST & SUBSCRIBE == 📃 The Minecraft Forge 1.16.5 Playlist easily accessible here: https://url.kaupenjoe.net/playlist/116forge 🔴 Don’t forget to SUBSCRIBE for more awesome tutorials: https://url.kaupenjoe.net/tutorials/sub
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Minecraft-1.16.5/tree/25-flowers Gist: https://url.kaupenjoe.net/yt50/gist hyacinth.png: https://url.kaupenjoe.net/yt50/textures
== TIMESTAMPS == 0:00 Intro 0:15 Making the Flower 1:58 Adding the JSON Files 3:25 Creating the Configured Feature 6:13 Creating the Flower World Generation Class 8:00 Demonstration 9:15 Outro
== TAKE A LOOK AT MY COURSES WITH COUPON CODES == ▶️ NEW Forge Modding with Minecraft 1.20.X: https://url.kaupenjoe.net/CourseForge120X ▶️ 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 *
== SOCIALS == Discord: https://discord.com/invite/yqxykanpWf 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.
== ADDITIONAL CREDITS == Outro Musik by Kevin MacLeod: “That’s a Wrap” Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 3.0 http://creativecommons.org/licenses/by/3.0
== AMAZON AFFILIATE LINKS == Amazon Referral [US]: https://url.kaupenjoe.net/amazonref/us * Amazon Referral [UK]: https://url.kaupenjoe.net/amazonref/uk * Amazon Referral [DE]: https://url.kaupenjoe.net/amazonref/de *
== 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