Started by
_DOS
on
Topic category: Help with Minecraft modding (Java Edition)
Hi,
I'm attempting to make a plant which naturally generates and grows on trees, like vines. How can I accomplish this without generating a complete new tree structure with the plant on the tree, and have that generate.
Also, do I need to have the plant have a custom model for it to be flat against the tree? I don't need it to be "climbable" like regular vines.
Thanks.
Under the “on block update” procedure slot, if you make and if statement like
The “if” is purely there to make it not immediately grow. Then (I’m not sure if rotation is accounted for when making vines) if you make a biome, and make a custom tree (perhaps the same blocks as vanilla trees) except make “generate vines” true and put the custom block in the vine block slot. Hope this helps!
Thank you. Having the random growth procedure in the logic section makes it easier, instead of relying on the plant function to do it for me. Now I still need to figure out how to make the block "flat" against walls, e.g. the tree trunks.
I think you may need a custom block model to make it flat, I’m not certain if rotation works on block models, it probably does though. I would look at the Minecraft block model for vines and go off that. If not, rotating rails 90 degrees vertically may also work.