Trees will float even with generating condition

Started by xeno1t on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined Mar 2024
Points:
66

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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
Active 3 weeks ago
Joined Dec 2014
Points:
1019

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 561
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.

Active 3 months ago
Joined Oct 2024
Points:
12

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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