Minecraft – Detect broken blocks that don’t drop items


I'm trying to make certain aspects of survival more "painfully realistic" using command blocks. One of those things is that I'd like mining through stone (or other hard objects) with your bare hands to inflict damage on you. I thought this would be as easy as setting up a stat.mineBlock score and, whenever someone mines stone, if they have an empty hand, give them instant damage effects. Unfortunately, it seems the mineBlock stat only increments if the block drops an item, and mining stone with your hands doesn't drop any items. Is there another way to go about detecting when a player has destroyed a block, even if it doesn't drop any items?

Best Answer

It might be laggy, but you could try execute, clone, and testforblocks to detect changes in the player's environment.

Related Topic