Help with detecting when a player breaks any block.

Good day! I'm making a custom enchantment that mines in 3x3. The problem is, I don't know how to detect when a player breaks a block fully, for any block. Any ideas?
Continue to help post