Try the Commands Troubleshooting and Help page if you get stuff with server errors.
Minecraft Summon Primed TNT Command Generator
BOOM BOOM BOOM! Summon primed TNT into the world via command, setting the Fuse sets the time until it explosed. They can also be summoned with spawn eggs and spawners. Spawners create ongoing tnt at regular intervals and can be used as infinite explosion areas, however tnt can explode the spawner so some planning of the build is required. Motion can be used to fire tnt in a certain direction.
Fuse
Time until tnt explodes, the default 0 will explode instantly.
1.20.4+
1 second delay.
/summon tnt ~ ~ ~ {fuse:20}
5 second delay.
/summon tnt ~ ~ ~ {fuse:100}
1.20 and earlier
1 second delay.
/summon tnt ~ ~ ~ {Fuse:20}
5 second delay.
/summon tnt ~ ~ ~ {Fuse:100}
Primed TNT Spawners
Because primed TNT is an entity, it also works in spawners. The spawner works best if you set all the spawner options. You may want to fence the area with bedrock or obsidian. It can also tend to delete the spawner itself.
/give @p command_block{BlockEntityTag: {auto:1, Command:"/setblock ~ ~0 ~ minecraft:spawner{SpawnCount:5, MaxNearbyEntities:100, SpawnRange:10, Delay:10, MinSpawnDelay:10, MaxSpawnDelay:100, RequiredPlayerRange:10, SpawnData:{entity:{id:tnt, Fuse:50}}} replace"}} 1
Suggestions or found a bug
Leave me a comment/like on:Version History
addedWolf types and armor
addedSome particle support
patchTNT fuse for 1.20.4
added1.20.5 support
patchSpawn egg selector options were messed up
patchVersion selector resetting
added1.20.2 Support for ActiveEffects and Effects
Read version history »
(68 More Updates)