Started by
xeno1t
on
Topic category: Help with Minecraft modding (Java Edition)
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:
The conditions and the feature (the condition on the last picture was my first try):
The problem:
Edited by xeno1t on Tue, 10/01/2024 - 16:50
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.
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