Started by
SabretoothSasquatch
on
Topic category: Help with Minecraft modding (Java Edition)
Hi there everyone, so I am making a custom tree for my mod and I followed the growable sapling tutorial by NorthWestTrees Gaming. The procedures compiled fine and I think I did everything fine, the sapling item places the block on the ground as the tutorial says it should, but the sapling never grows. I suspect I formatted the "modidRandomGrowChance" part wrong. The way I set it was "Sakurasapling1". If someone could help explain that part and if I had formatted it wrong and how to format it, it would be greatly appreciated! Thanks a bunch!
I did this once to make cave roots grow in my mod Cavecraft: Cave Update. You need to make 2 procedures one will be the right clicked procedure for the sapling. The first procedure is is item in entitys hand bone meal if true 50% chance to remove block at x y z then spawn the structure. The structure is the tree that you would build and import to mcreator since it would be using structure blocks. The second procedure is on tick update. First open the sapling block you have then select the option tick randomly. The procedure is 10% chance to remove block at x y z then spawn the tree structure. Done I hope this helps you
The bonemeal one is very useful to note, but I did the rest as the tutorial I followed had said, and my tree just doesn't grow naturally.
make sure your sapling block has tick randomly enabled. Once thats enabled make a procedure for the tick update. The procedure is 10% chance to remove block at x y z then spawn structure ___. The underscore represents the name of the structure. You can always change the random tick speed to 1000 using commands then the sapling should grow almost instantly. Also the command is for a testing world to see if it grows. The command I mentioned is /gamerule randomtickspeed 1000
I did exactly that, I enabled random ticks for the sapling and after 10 mins it never grew. Here's a link to some screenshots of my procedures, I think the part that says "Sakurasapling1" was formatted badly due to the 1 being the RandomGrowChance the video shows, but feel free to take a look and tell me what I got wrong https://imgur.com/a/8iWr81g
Here is the plant: https://imgur.com/a/QzL3AZE
Here is the bonemeal procedure: https://imgur.com/a/F44V40Z
The update procedure is the same except without the bonemeal.
I would label them but I forgot what image is what
I checked right before I commented and labeled them.
you just need to use structure blocks and build the tree then import the structure from minecraft
Structure blocks can be obtained using /give @s structure_block
I got the bonemeal procedure to work, thanks for that! But can I see your update tick procedure? That's the one I'm having most trouble with
Okay https://imgur.com/a/3P3zwGK
I honestly don't know where I went wrong, but it just won't grow with the random tick, even when I do the same thing as yours
Hey, I got it to work now! Thank you so much for the help!! I wish you luck with your mods!!!
Thanks! Also I recently found a new thing in 2020.4 which lets you make entitys only spawn on certain y levels
Using a new procedure block