Is there a command that detects when the player has removed a block?
/ execute if block ~ ~ ~ minecraft: air run / do something
So instead of ~ ~ ~ stop the coordinates of the block and instead of doing something stop a command that should happen when the block is dismantled… So e.g. Check whether the block is dismantled at -20 100 -10 then dismantled would say:
/ execute if block -20 100 -10 minecraft: air run say dismantled
Which block?
No matter which block
Hi there's also a command that controls an area of blocks and can see if a block has been removed in this area?