detecting when block is broken with a item

how can I make it so that when a block is broken with a item that has a specific tag it executes a function. I know its possible with Advancements but I dont know how I would go about making the Advancement
Continue to help post