Slithering Explosive Worm

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.

Java EditionHolograms & Display EntitiesMedium21 commandsTested on a real 26.2 & 26.3 server
Glowing red-outlined TNT blocks slither in a looping wave across obsidian, trailing flames and colorful explosions. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 7 commands

  1. /scoreboard objectives add c9_t dummy
  2. /team add c9_red
  3. /team modify c9_red color red
  4. /fill ~-12 ~-1 ~-7 ~12 ~-1 ~7 obsidian
  5. /summon armor_stand ~ ~ ~ {Tags:["c9_worm_ctrl"],Invisible:1b,NoGravity:1b,Marker:1b}
  6. /summon marker ~ ~1 ~ {Tags:["c9_head"]}
  7. /scoreboard players set #tick c9_t 0

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #tick c9_t matches 2.. run scoreboard players set #tick c9_t 0
  3. /execute as @e[tag=c9_worm_ctrl] at @s run tp @s ~ ~ ~ ~9 ~
  4. /execute at @e[tag=c9_worm_ctrl] rotated ~ 0 run tp @e[tag=c9_head] ^ ^1 ^5.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}
  6. /team join c9_red @e[tag=c9_tnt,team=!c9_red]
  7. /execute as @e[tag=c9_tnt] at @s run tp @s ~0.32 ~ ~
  8. /execute as @e[tag=c9_tnt] at @s run data modify entity @s Motion set value [0.0d,0.0d,0.0d]
  9. /execute at @e[tag=c9_head] run particle flame ~-11 ~1 ~ 0.2 0.2 0.2 0.03 5 force
  10. /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
  11. /execute at @e[tag=c9_tnt] run particle soul_fire_flame ~ ~0.9 ~ 0.05 0.05 0.05 0.01 1 force
  12. /execute as @e[tag=c9_tnt] at @s run scoreboard players add @s c9_t 1
  13. /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
  14. /execute at @e[tag=c9_tnt,scores={c9_t=1}] run playsound entity.creeper.primed master @a ~ ~ ~ 0.3 1.8

How it works

Frames from the test run

Slithering Explosive Worm - frame 1Slithering Explosive Worm - frame 2Slithering Explosive Worm - frame 3

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.

Build it in your world

  1. Enable command blocks in your world and switch to Creative mode.
  2. Stand at the center of a flat area where you want the worm to slither and run each command from the Setup list in chat one by one.
  3. Place a Repeating Command Block nearby, set it to Always Active, and paste the first Loop command into it.
  4. Place 13 Chain Command Blocks set to Unconditional and Always Active in a line pointing away from the repeating block.
  5. Paste the remaining Loop commands in order into the chain blocks to watch the explosive sine wave begin.

Use it with real players

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.

Remove it again 6 commands

  1. /kill @e[tag=c9_tnt]
  2. /kill @e[tag=c9_worm_ctrl]
  3. /kill @e[tag=c9_head]
  4. /team remove c9_red
  5. /scoreboard objectives remove c9_t
  6. /fill ~-12 ~-1 ~-7 ~12 ~-1 ~7 grass_block

FAQ

Why doesn't the exploding TNT fling the other TNT blocks away?

Primed 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.

How can I make the worm longer or shorter?

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.

Commands used

/data/execute/fill/particle/playsound/scoreboard/summon/team/tp

Similar creations

Join 9Minecraft News & Guides