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

Started by Pablox2 on Sat, 10/22/2022 - 15:38

Topic category: Help with modding (Java Edition)

Last seen on 17:15, 22. Nov 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Structures (trees like) spawning in mid air or half buried in the nether
Sat, 10/22/2022 - 15:38

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

Last seen on 12:40, 26. Jan 2023
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:51, 27. Jan 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.