When a player breaks a block
Starts when a player breaks a block. Cancel the event to keep the block where it is.
A Minecraft element (starts a flow) in Starts when. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player breaks a block → If Block type is minecraft:diamond_ore → Broadcast {player.name} found diamonds!
Also called
break, mine, dig, block break, destroy block
Works as a data pack?
Partly. A data pack does most of it, and the editor tells you the difference.
What it gives back
- Player
- Block
- Block type
- Location