Started by
Curunir
on
Topic category: Help with Minecraft modding (Java Edition)
I have created a structure for a tree and got it loaded up into the world properly. Everything was working great until I noticed it was spawning on any available surface within parameters, which unfortunately means on the bottom of the ocean or in caves underground. Any solutions on how i can fix this problem?
You need to look for the "additional generation condition" zone in the structure, then create a procedure that returns a true state if the requirements you want are met, in your case you need to do someting like:
if there isn't water on xyz (for ocean spawn)
and if y> 63 (can help to prevent the structure from spawning underground)
then return true
and at the end, simply if nothing is met, return false
I hope this helps