how to create block that destroys itself if its placed on the wrong block?

Started by BigTurkeySandwich on

Topic category: Troubleshooting, bugs, and solutions

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to create block that destroys itself if its placed on the wrong block?

Hello, sorry if I'm posting in the wrong place or if a similar question has already been answered-- I couldn't find anything. 

I'm trying to create a tree tapper, that destroys itself if it's not placed on a log of any kind. Currently, if I place it on anything it destroys itself. 

Code from the Mcreator event trigger editor. it says "event trigger: if not is (placed block position minus 1) the same block as oak log, do remove block at (placed block position) drop at (placed block position)

Right now I am just testing it on oak cause I do not expect adding the other logs to be an issue. Thank you! 

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use block tags…
Sun, 09/17/2023 - 12:29

You can use block tags. There is a tag for all logs in vanilla.