How can I make a procedure that is triggered by interacting with a vanilla block?

Started by eternaleclipse on

Topic category: Help with MCreator software

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a procedure that is triggered by interacting with a vanilla block?

I've been trying to implement a mechanic that only allows the player to get wood drops if they are holding an axe. However, I've had no way to specifically tie that to wood because, unlike with new blocks, I can't just go into the "Triggers" menu for a vanilla block and choose "When this block is broken" or "When player left clicks this block".

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this will sadly require a…
Tue, 12/21/2021 - 19:30

this will sadly require a procedure that runs for each and every player each and every tick so maybe it would be best to use a enchantment. If you really want to do this with out an enchantment where you check the item in the players main or off hand and then grab to see if it is marked as type multitool or axe and then run the code you have