ID and position of the broken block

I wanted to know how to identify the last block broken by the player, returning the ID and location (x,y,z) of that block

Version: 1.16.5

(sorry for my English, it's not the best in the world)

Continue to help post