Started by
RosyWindFox
on
Topic category: Help with Minecraft modding (Java Edition)
It's not a super in depth problem so I'll make this quick.
I made a variety of structures but, sometimes they spawn half on land and half floating, how do I make it so they only spawn when there is land under all of it or about 90% of it.
You might be able to do this using conditions in 2020.4.
Just ignore all these if you figure out a better way in 2020.4 like Klemen said
How large (x and z wise) are they? They're probably hitting only one original block when trying to spawn and stretching out sideways from there. To fix this you could either:
1. Test for more blocks in the "on structure instance generated" procedure and remove the structure if there are not enough blocks around it. (you might need to make the structure more common if you do this)
2. Do the same as "1." but fill those air blocks with dirt or something rather than destroy the structure.
2. Split your structure up and only generate the extra parts if there are blocks where it is supposed to go (also in the same procedure).
3. Include blocks underneath and around the outside of your structure.
4. A mix of the above.
[img]https://i.ibb.co/VSwLy9w/unknown.png[/img]
This is my code so far
I cant find a way to delete the structure if this isnt true.
Spawn a structure the same size with air blocks where the solid blocks were before.
("place structure at x, y, z" in the "world management" procedure tab, btw)
Thanks
No problem. :)
Hi, I have the same problem, I would Like a clear screenshot of the code required to fix the problem, Thanks :)
If you could post the code with better resolution it would be appreciated :D