Help creating a redstone-powered pickaxe which creates an explosion after breaking a block

Started by DevanMistMusic on

Topic category: Help with MCreator software

Joined Nov 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help creating a redstone-powered pickaxe which creates an explosion after breaking a block
Thu, 12/02/2021 - 00:48 (edited)

Hello all,

I am trying to make a pickaxe which is powered by redstone and creates an explosion after breaking a block. I'm attempting to get it to check if there's redstone in the player's inventory and if there is, give the player resistance and create an explosion at the location of the broken block. Then, check again for redstone in the player's inventory and if so remove 1 redstone from the player's inventory.

This is what I have so far but it's not working. It doesn't allow me to set this procedure to be triggered when a block is broken by the tool, it says it's missing dependencies. I can set it to be triggered when the player attacks an entity with the tool, but that's not what I'm looking to do.

Any thoughts on why this isn't working?

procedure

Edited by DevanMistMusic on Thu, 12/02/2021 - 00:48
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on global triggers, look for…
Thu, 12/02/2021 - 02:28

on global triggers, look for "player breaks block" or something like that. i'm pretty sure it exists

then make an if statement to check if a player is holding the redstone pickaxe and put the code your showing inside the if statement.

hope this helps!!