How to check if a structure will replace any solid blocks when placed?

Started by EbonyCrow on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check if a structure will replace any solid blocks when placed?

I made a custom sapling that grows into a custom tree, but when the tree grows, its leaves and logs replace any solid blocks that were there before, including bedrock. How can I check if there are no solid blocks in the area where the tree will grow?

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
only way I know is to add an…
Wed, 07/22/2020 - 06:52

only way I know is to add an air check for every block your tree replaces.., 

air