Redstone ore detection

Is there a way to detect block state changes and run a command to the player who activated said block state change?

More specifically, I want players who interact with redstone ore (right click or step on), to trigger a /loot give command

Continue to help post