Started by
CharlyMan
on
Topic category: Help with Minecraft modding (Java Edition)
I've added new tree structures into my mod but they're spawning in water. I only want them to spawn on a grass block so that way they can't spawn in deserts or the ocean. I can't find out how to make an additional generation condition procedure. Can someone send me a working procedure for this so I can learn how to do these in the future. Thank you.
thanks, but I'm having another problem with it now, it thinks this means any part of the structure has to be touching the grass block meaning that the structure can now float mid air where there are ledges. Heres an image for extra information.
The image didn't seem to be working so here's the link to it here: https://imgur.com/a/7lGDEal
It also occasionally makes unwanted terrain damage
use structure voids instead of air, and add an additional spawning condition that checks if block at x, y -1, z == grass
Hey, Legomatt28. I don't really understand what your trying to tell me because i already have a block restriction and it should be already be structure void, heres and image of the structure's settings. https://imgur.com/a/aCWpYh2
When you physically built the tree structure in a minecraft world, did you put structure void blocks in place of the air?
no, but it looked like the game itself had already placed it.
even then the settings on the structure say ignore air when placing.
Try creating a new tree structure with structure voids :)
That's not the problem though. The problem is terrain damage.
The other problem is that I already had this setting on when the error accured.
I'm an idiot, I forgot to put the setting on the big trees