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.
It's simple theres a preset for that
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 :)
looks like > I < solved this same issue somewhere else well in another forum https://mcreator.net/comment/213107
That's not the problem though. The problem is terrain damage.
YOU NEED TO USE STRUCTURE VOIDS FO THAT!!!!!!
air is saved a s a block in structures
structure voids don't replace anything