Summon a glowing sine-wave worm made of live primed TNT that slithers across the ground in a colorful pattern before detonating in a chain reaction.
Animated BlocksFireRedOrangePurpleBoss FightMini-gameDecorationArmor standsSummoned mobsBlock building (fill/setblock/clone)SoundsRotation math21+ commands
The Slithering Explosive Worm transforms dangerous primed TNT into a smooth, living waveform. Guided by a hidden rotating spinner, a stream of glowing red TNT blocks glides across the stage in a figure-eight sine curve, trailing bright flames, sparks, and colorful dust.
Because each segment is spawned with a staggered fuse timer, the worm never stops moving. As the tail segments reach the end of the wave, they erupt in a synchronized chain reaction of harmless aerial explosions while new segments grow from the head.
/scoreboard objectives add c9_t dummy/team add c9_red/team modify c9_red color red/fill ~-12 ~-1 ~-7 ~12 ~-1 ~7 obsidian/summon armor_stand ~ ~ ~ {Tags:["c9_worm_ctrl"],Invisible:1b,NoGravity:1b,Marker:1b}/summon marker ~ ~1 ~ {Tags:["c9_head"]}/scoreboard players set #tick c9_t 0/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 2.. run scoreboard players set #tick c9_t 0/execute as @e[tag=c9_worm_ctrl] at @s run tp @s ~ ~ ~ ~9 ~/execute at @e[tag=c9_worm_ctrl] rotated ~ 0 run tp @e[tag=c9_head] ^ ^1 ^5.5/execute at @e[tag=c9_head] if score #tick c9_t matches 0 run summon tnt ~-11 ~0.5 ~ {Tags:["c9_tnt"],fuse:75s,NoGravity:1b,Glowing:1b}/team join c9_red @e[tag=c9_tnt,team=!c9_red]/execute as @e[tag=c9_tnt] at @s run tp @s ~0.32 ~ ~/execute as @e[tag=c9_tnt] at @s run data modify entity @s Motion set value [0.0d,0.0d,0.0d]/execute at @e[tag=c9_head] run particle flame ~-11 ~1 ~ 0.2 0.2 0.2 0.03 5 force/execute at @e[tag=c9_tnt] run particle dust{color:[1.0,0.2,0.0],scale:1.5} ~ ~0.5 ~ 0.2 0.2 0.2 0 2 force/execute at @e[tag=c9_tnt] run particle soul_fire_flame ~ ~0.9 ~ 0.05 0.05 0.05 0.01 1 force/execute as @e[tag=c9_tnt] at @s run scoreboard players add @s c9_t 1/execute at @e[tag=c9_tnt,scores={c9_t=73}] run particle lava ~ ~0.5 ~ 0.4 0.4 0.4 0.1 12 force/execute at @e[tag=c9_tnt,scores={c9_t=1}] run playsound entity.creeper.primed master @a ~ ~ ~ 0.3 1.8setup #4 Places an obsidian blast pad beneath the worm's path so the continuous TNT chain reaction never destroys the grass floor.loop #3 Rotates the invisible controller armor stand by 9 degrees every tick. Converting circular rotation into offset coordinates is how we generate a smooth sine wave without complex math.loop #4 Teleports the head marker 5.5 blocks forward from the rotating controller using local caret coordinates (<code>^ ^1 ^5.5</code>), creating an oscillating Z position.loop #5 Every 2 ticks, summons a glowing, zero-gravity primed TNT entity shifted 11 blocks west of the oscillating marker, forming the head of the worm.loop #7 Slides every live TNT segment 0.32 blocks east each tick. Because each segment retains the Z position it had when it spawned, the entire line appears to slither in a sine wave.loop #8 Resets the velocity of every TNT segment to zero each tick so that exploding tail segments do not blast the rest of the worm off course.


Recorded on our own test server: 57 frames at about 9.3 fps. Our image check saw: A stream of glowing red-outlined primed TNT blocks moves in a looping sine-wave pattern across an obsidian platform, trailing blue and orange flame particles and erupting into purple-tinted explosion clouds on the right.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the worm follow a real player instead of slithering across the center stage, replace @e[tag=c9_worm_ctrl] in the third and fourth loop commands with @p, and change the TNT summon offset in the fifth loop command to ~ ~0.5 ~ so the wave trails directly behind you as you walk.
/kill @e[tag=c9_tnt]/kill @e[tag=c9_worm_ctrl]/kill @e[tag=c9_head]/team remove c9_red/scoreboard objectives remove c9_t/fill ~-12 ~-1 ~-7 ~12 ~-1 ~7 grass_blockPrimed TNT normally pushes nearby entities when it detonates, which would break the wave shape. The eighth loop command resets every segment's Motion array to zero every tick, locking it onto its smooth sine-wave track.
Change the fuse tag inside the fifth loop command (for example from fuse:75s to fuse:100s) and adjust the lava particle score in the thirteenth loop command to match two ticks before the new fuse time.
/data/execute/fill/particle/playsound/scoreboard/summon/team/tp
▶Supernova Star Collapse and NebulaAnimated BlocksHard19 cmds
▶Holographic Solar Flare MagnetosphereAnimated BlocksExpert24 cmds
▶Shattered Sword Reforging RitualAnimated BlocksMedium24 cmds
▶Rotating PathwayAnimated BlocksMedium24 cmds
▶Thermonuclear DetonationAnimated BlocksHard21 cmds
▶Tumbling Physics TNTAnimated BlocksHard22 cmds