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
added1.21.5 variants for chickens, cows, and pigs
patchllama issues
patchequipment tags handling and validation for different versions
added1.21.5 equipment items and saddles, text
patchArmor stands preview have incorrect arm and leg positions
addedRefactored mobs into entities
Read version history »
(82 More Updates)