You can easily detect when a player places a block with an advancement and the trigger minecraft:placed_block.
But it is very hard to detect when a player breaks a block. So I would like to have a trigger minecraft:broke_block.
It would trigger when a player breaks a block.
Possible conditions can be:
- block: A block ID
- location: The location were the block was
- state: The block states the block had
- tool: The item that the player used to mine the block
- nbt: NBT data that the block had
Please sign in to leave a comment.