Keeping Leaves from Replacing Blocks

Started by qSided on

Topic category: Help with modding (Java Edition)

Last seen on 23:55, 15. Mar 2023
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Keeping Leaves from Replacing Blocks

Alright, so I made a tree schematic, pretty standard stuff really, got the tree working and all. There is just one issue with the tree spawning when using schematics for them. The leaves tend to replace any block in their way. I could really use some help in making a procedure to maybe prevent this from happening. Any help is appreciated.

Last seen on 23:55, 15. Mar 2023
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alternatively, a way to…
Sat, 04/04/2020 - 17:45

Alternatively, a way to check if a block is under a certain tag, for example, the "logs" tag. That way, if the block is under a certain tag, like a custom tag named "skip", it would make the tree unable to grow do to no space or something like that.

Last seen on 10:10, 15. Mar 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe check if the block the…
Wed, 04/15/2020 - 09:24

Maybe check if the block the leaves are trying to replace are air blocks? And then if they're not air blocks, then make it so the tree doesn't attempt to spawn a leaf block there