Keeping Leaves from Replacing Blocks

Started by qSided on Sat, 04/04/2020 - 17:35

Topic category: Help with modding (Java Edition)

Last seen on 03:29, 21. Nov 2020
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Keeping Leaves from Replacing Blocks
Sat, 04/04/2020 - 17:35

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 03:29, 21. Nov 2020
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:39, 20. Jun 2021
Joined Apr 2020
Points:

User statistics:

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