How do I automatically set off TNT using Command Blocks
I would like to know if there is a way to make it so when a player places a block of TNT, it immediately fuses, without the use of flint and steel, fire charges, etc.
Please, no mods or plugins.
Best Answer
In case anyone needs this, in the newer versions there are two ways of doing this.
Method 1, Use spawn eggs instead:
/give @p mooshroom_spawn_egg{display:{Name:'{"text":"Primed TNT Spawn Egg","color":"red","italic":false}'},EntityTag:{id:"minecraft:tnt",Fuse:0}} 1
This spawns a tnt entity with a fuse of 0^
The other would be to have a command block running on repeat with the command:
execute as @e[type=tnt] run data merge entity @s {Fuse:0}
But this only sets the fuse to 0 once a piece of tnt is lit, which is not what this question was looking for but still could be helpful.
Pictures about "How do I automatically set off TNT using Command Blocks"



What is the command to turn off TNT explosions in Minecraft?
You will need to teleport to the worlds in your server and enter the commands to change explosion settings for each world. If set to allow, TNT explosions are enabled in your Minecraft worlds. This is the default value. If set to deny, TNT explosions are disabled in you Minecraft worlds.How do you summon TNT with command blocks?
Use flint and steel to light a TNT block. This is the simplest way to detonate TNT. See Make Flint and Steel in Minecraft for instructions on crafting it. Walk up to the TNT with flint and steel equipped to light it. The TNT block will begin flashing when lit.Auto Igniting TnT | Command Block Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anete Lusina, Karolina Grabowska, Karolina Grabowska, Karolina Grabowska
