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

Started by EbonyCrow on

Topic category: Help with modding (Java Edition)

Last seen on 03:28, 23. Mar 2024
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?

Last seen on 21:24, 26. Dec 2022
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