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

Started by EbonyCrow on Tue, 07/21/2020 - 21:09

Topic category: Help with modding (Java Edition)

Last seen on 06:16, 12. Jun 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to check if a structure will replace any solid blocks when placed?
Tue, 07/21/2020 - 21:09

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 06:55, 27. Apr 2021
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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