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 second delay.
/summon tnt ~ ~ ~ {fuse:20} /summon tnt ~ ~ ~ {Fuse:20}
5 second delay.
/summon tnt ~ ~ ~ {fuse:100} /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[block_entity_data={id:command_block,auto:1,Command:"/setblock ~ ~0 ~ spawner{SpawnCount:5,MaxNearbyEntities:100,SpawnRange:10,Delay:10,MinSpawnDelay:10,MaxSpawnDelay:100,RequiredPlayerRange:10,SpawnData:{entity:{id:tnt,fuse:50}}} replace"}] 1 /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
addedwind charge, minecraft and boat
patchsheep and shulker colors
patchencoding tags for 1.20.5+
patchsummon area_effect_cloud syntax for 1.20.5
patchummon horse armor, llama decor item and wolf armor for 1.20.5
addedNew attributes for 1.21
patch1.20.5+ hand, armor, and trades tag detection and parsing improvements.
addedCache busting for updates
addedMob attributes 1.21 support
patch1.20.5+ give spawn egg command bug with name and lore
patchPufferfish PuffState
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)