Structures (trees like) spawning in mid air or half buried in the nether

Started by Pablox2 on

Topic category: Help with modding (Java Edition)

Last seen on 13:02, 10. Mar 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Structures (trees like) spawning in mid air or half buried in the nether

I cant provide pictures rn but I think you get whats the problem. Thank for your answer

Last seen on 06:06, 25. Mar 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to add spawning…
Sun, 10/23/2022 - 19:10

You need to add spawning conditions to the tree structure like

 

If Block at X,Y,Z = Grass_Block

     Return True

Return False

Last seen on 00:55, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Spawning structures…
Sun, 10/23/2022 - 20:12

Spawning structures underground is more difficult than simply putting them on the surface; In my experience, your best bet is to either:

  • Add very specific generation conditions, (such as having the correct block below, and air above), and then turn up the generation check much higher than you would normally.
  • Add a 'when generated' procedure that finds a nearby location that fits your conditions.