I cant make trees in my custom dimension

Published by MMG on
Status
Resolved
Issue description

This is another problem of removing structure trees. I made block to spawn as structure in my dimension. Upon generating it should place a tree but it will not due to tick problems I described here: https://mcreator.net/tracker/issue/53474

and here: https://mcreator.net/tracker/issue/51832

Issue comments

Blocks are placed without any ticking, I don't understand what you mean. Please provide more details.

I already talked about this some time ago in posts I given you links to above

You think I remember every single ticket and its details?

These should replace themselfs by structure on tick procedure but it doesnt happens

Why don't you just spawn the structure in the first place, without ticking?

This would work the same way with old tree structures as ticking is not initiated by default.

Since 2020.2 you can enable random tick events which will trigger by default, but not immediately as this would (logically) crash the world, ticks are rather distributed by the tick dispatcher.

Replacing things on world gen is against how the world generator is supposed to work and will cause all sorts of trouble, though, except if you use random tick which is used by things like leaves.

You could use "on structure spawned" event for offsetting.

OR

if your structure is 1x1x1, use schedule block tick update procedure for x,y,z location with "on structure spawned" trigger, but I advise against this approach for reasons explained above.

I havent thinked about that! I am not used to that on structure spawn cause I never used it and its also one of newer things. I will try it and tell you if it worked

You are welcome! This is not that well known approach yet so if you stumble upon someone asking this on the forums, you can redirect them on this ticket :)