Started by
Luquita
on
Topic category: Help with Minecraft modding (Java Edition)
Basically i made a custom placeholder plant that's supposed to spawn during world generation and instantly get replaced with a tree, for this, i tried turning on random ticking but it takes a while before doing so, and trying to use the "when plant is placed" only works when the player places the plant, generating in the world simply stays as the plant.
I'd like to clarify, i'm doing it this way because:
A) Generating the tree as an structure makes the leaves decay
B) I couldn't find a way to spawn my custom tree as a feature
Edited by Luquita on Sat, 04/04/2026 - 23:23
The leaves shouldnt decay unless they are not connected to a log. When you made the tree structure go back and replace any leaves not connected to either leaves which are connected to a log or to a log directly with leaves[persistent=true]. This way they will not decay, this also means they won't decay when the logs are broken but with what you're doing they would be doing that anyway.
Within feature there is a spawn custom structure option, search structure in the feature if you can't find it. And random feature from list if you want tree variations.
Yes, i was having trouble figuring out both the Feature element and how trees/tags work but i've fixed everything now it seems, and didn't know bout the random feature thing either, thanks