Throw-And-Kaboom Dynamite

Toss a custom glowing dynamite stick that arcs through the air trailing sparks, pulses with warning flashes on the ground, and erupts in a fiery blast.

Java EditionWands, Weapons & ToolsEasy22 commandsTested on a real 26.2 & 26.3 server
A thrown dynamite block display trails smoke and sparks before exploding near a zombie target. Download the GIF Video & GIF © www.9minecraft.net

Projectiles & MissilesFireIndustrialRedOrangeWhitePvPMini-gameAdventure MapBlock displaysArmor standsSummoned mobsBlock building (fill/setblock/clone)Sounds21+ commands

The Throw-And-Kaboom Dynamite command setup turns a simple snowball throw into a timed explosive stick with custom block display visuals. When tossed, the dynamite arcs through the air trailing bright lava sparks and smoke before landing on the test target.

Once on the ground, the dynamite stick pulses with golden warning sparks and sound cues before detonating in a massive fireball and shockwave ring without destroying any terrain.

1. Setup - type these once 8 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:polished_deepslate
  3. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:red_concrete
  4. /setblock ~ ~-1 ~ minecraft:sea_lantern
  5. /summon minecraft:armor_stand ~ ~ ~7 {Tags:["c9_actor","c9_dyn_root"],NoGravity:1b,ShowArms:1b,Rotation:[180f,0f],CustomName:'{"text":"Demolitionist","color":"red"}',CustomNameVisible:1b,Pose:{RightArm:[-45f,0f,0f]},equipment:{mainhand:{id:"minecraft:tnt",count:1},head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":11546150}}}}
  6. /summon minecraft:armor_stand ~-2 ~ ~-1 {Tags:["c9_target","c9_dyn_root"],NoGravity:1b,CustomName:'{"text":"Test Dummy","color":"yellow"}',CustomNameVisible:1b,equipment:{head:{id:"minecraft:carved_pumpkin",count:1},chest:{id:"minecraft:chainmail_chestplate",count:1}}}
  7. /summon minecraft:armor_stand ~2 ~ ~-1 {Tags:["c9_target","c9_dyn_root"],NoGravity:1b,CustomName:'{"text":"Test Dummy","color":"yellow"}',CustomNameVisible:1b,equipment:{head:{id:"minecraft:carved_pumpkin",count:1},chest:{id:"minecraft:chainmail_chestplate",count:1}}}
  8. /scoreboard players set #c9_main c9_timer 0

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

  1. /scoreboard players add #c9_main c9_timer 1
  2. /execute if score #c9_main c9_timer matches 100.. run scoreboard players set #c9_main c9_timer 1
  3. /execute if score #c9_main c9_timer matches 5 run summon minecraft:snowball ~ ~1.6 ~6.5 {Tags:["c9_proj","c9_dyn_root"],Motion:[0.0,0.48,-0.41],Item:{id:"minecraft:red_candle",count:1}}
  4. /execute if score #c9_main c9_timer matches 5 run summon minecraft:block_display ~ ~1.6 ~6.5 {Tags:["c9_dyn","c9_dyn_root"],Glowing:1b,glow_color_override:16724787,block_state:{Name:"minecraft:tnt"},transformation:{translation:[-0.2f,0.0f,-0.2f],left_rotation:[0f,0f,0f,1f],scale:[0.4f,0.6f,0.4f],right_rotation:[0f,0f,0f,1f]}}
  5. /execute as @e[tag=c9_proj] at @s run tp @e[tag=c9_dyn,limit=1,sort=nearest] ~ ~ ~
  6. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 5..64 run particle minecraft:lava ~ ~0.4 ~ 0.05 0.05 0.05 0 1 force
  7. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 5..64 run particle minecraft:large_smoke ~ ~0.5 ~ 0.05 0.05 0.05 0.02 2 force
  8. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 35..64 run particle minecraft:dust{color:[1.0,0.85,0.1],scale:2.0} ~ ~0.7 ~ 0.25 0.25 0.25 0 6 force
  9. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 35 run playsound minecraft:block.note_block.pling master @a ~ ~ ~ 1.5 1.5
  10. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 50 run playsound minecraft:block.note_block.pling master @a ~ ~ ~ 1.5 1.9
  11. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 65 run particle minecraft:explosion_emitter ~ ~0.5 ~ 0 0 0 0 1 force
  12. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 65 run playsound minecraft:entity.generic.explode master @a ~ ~ ~ 2.0 0.7
  13. /execute at @e[tag=c9_dyn] if score #c9_main c9_timer matches 65..74 run particle minecraft:flame ~ ~0.2 ~ 2.8 0.1 2.8 0.15 60 force
  14. /execute if score #c9_main c9_timer matches 75 run kill @e[tag=c9_dyn]

How it works

Frames from the test run

Throw-And-Kaboom Dynamite - frame 1Throw-And-Kaboom Dynamite - frame 2Throw-And-Kaboom Dynamite - frame 3

Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: A small red dynamite block display trails smoke and sparks before exploding with flame particles near a zombie target.

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. Stand at the center of a flat open area where you want the target blast pad to be built.
  2. Run each of the 8 setup commands in your chat window to create the scoreboard, target pad, Demolitionist, and Test Dummies.
  3. Place 14 repeating command blocks in a line or stack nearby, all set to Repeating, Unconditional, and Always Active.
  4. Paste one loop command into each repeating command block in order from 1 to 14.
  5. Watch the Demolitionist throw glowing sticks of dynamite onto the center pad every 5 seconds.

Use it with real players

To let real players throw dynamite, remove the automated snowball summon in loop command 3 and instead tag any player-thrown snowball with /execute as @e[type=snowball,tag=!c9_proj] at @s run tag @s add c9_proj, summon the c9_dyn block display at the snowball, and give each c9_dyn display its own individual c9_timer score so it counts up to 65 ticks independently before exploding and dealing damage with /damage.

Remove it again 3 commands

  1. /kill @e[tag=c9_dyn_root]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:grass_block

FAQ

Does the dynamite explosion break blocks?

No. The explosion is created with particle emitters and sound effects, so your builds and terrain stay completely safe.

How do I make the dynamite throw travel further?

Increase the Y and Z speeds inside the snowball's Motion tag in the third loop command, for example changing Motion:[0.0,0.48,-0.41] to Motion:[0.0,0.6,-0.65].

Commands used

/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides