Weird Structure Placement

Started by Curunir on

Topic category: Help with modding (Java Edition)

Last seen on 22:49, 7. Sep 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Weird Structure Placement

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?

Last seen on 04:59, 25. Apr 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to look for the …
Tue, 09/06/2022 - 23:21

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