Trees will float even with generating condition

Started by xeno1t on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trees will float even with generating condition
Tue, 10/01/2024 - 16:50 (edited)

Hi! So I´m currently working on a mod which adds a new tree as a feature,

but even though I added a generating condition (I tried multiple), its still sometimes generating in the air.

Can someone maybe check if I did something wrong or something. 

It would be pretty helpful. 

The structure:

https://imgur.com/a/XSqqXKI

The conditions and the feature (the condition on the last picture was my first try):

https://imgur.com/a/g8q5Gxz

The problem:

https://imgur.com/a/AwSQf6x

 

 

Edited by xeno1t on Tue, 10/01/2024 - 16:50
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is very likely because…
Mon, 10/07/2024 - 00:58

This is very likely because you're checking if the block at the relative coordinates 0 -1 0 in your structure is being checked and not the block under your tree's trunk.

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ensure that your generation…
Mon, 10/07/2024 - 01:37

Ensure that your generation conditions properly verify the ground type and height. You may want to check if the block below the tree is a valid block (like dirt or grass) before allowing the tree to generate @quordle