Explosive Crafting Table
execute @e[score_craftGUI_min=1] ~ ~ ~ summon PrimedTnt
This command summons a primed TNT when a player gets a "craftGUI" score of 1, aka it clicks on the crafting table.
You can replace the second command to make any event instead of the explosion.
scoreboard players reset @a[score_craftGUI_min=1] craftGUI
This command resets the score "craftGUI" so the commands won't keep spawning more TNT.
Commands to run once:
/scoreboard objectives add craftGUI stat.craftingTableInteraction