How it works:
To see what's inside of each command block just point your mouse over it.
How to read?
Don't worry that's simple.
Start from the bottom to the top following the direction the arrow are pointing.
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
© Cimap. All Rights Reserved
This website is not endorsed, associated or affiliated with Mojang AB.