What is the easiest way to detect block break?

Naturally I'd use scoreboards for specific blocks, but I wanna do it for every block. I could make a quick script to generate me the scores needed but that'd be super laggy, Is there any other accurate and efficient way?

Continue to help post