Detect when anvil is damaged

Is there a way to detect when an anvil gets damaged after using?

Continue to help post