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.
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.
/scoreboard objectives add c9_timer dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:polished_deepslate/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:red_concrete/setblock ~ ~-1 ~ minecraft:sea_lantern/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}}}}/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}}}/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}}}/scoreboard players set #c9_main c9_timer 0/scoreboard players add #c9_main c9_timer 1/execute if score #c9_main c9_timer matches 100.. run scoreboard players set #c9_main c9_timer 1/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}}/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]}}/execute as @e[tag=c9_proj] at @s run tp @e[tag=c9_dyn,limit=1,sort=nearest] ~ ~ ~/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/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/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/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/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/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/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/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/execute if score #c9_main c9_timer matches 75 run kill @e[tag=c9_dyn]loop #3 Summons a snowball with custom <code>Motion</code> values so it arcs cleanly from the Demolitionist's hand to the center target pad.loop #4 Summons a glowing TNT <code>block_display</code> scaled down to <code>[0.4f, 0.6f, 0.4f]</code> to look like a compact stick of dynamite.loop #5 Teleports the dynamite display entity to the snowball every tick while it is in flight. When the snowball hits the floor and disappears, the dynamite stays behind on the ground.loop #8 Once the stick has landed on the target pad (ticks 35 to 64), emits bright yellow <code>dust</code> particles above the fuse to warn nearby players.loop #11 At tick 65, triggers an <code>explosion_emitter</code> burst along with a wide ring of flame particles before removing the dynamite entity.


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.
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.
/kill @e[tag=c9_dyn_root]/scoreboard objectives remove c9_timer/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:grass_blockNo. The explosion is created with particle emitters and sound effects, so your builds and terrain stay completely safe.
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].
/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp
▶Magnetic Rail-Track Javelin AssemblerProjectiles & MissilesExpert22 cmds
▶Molten Glassblower Sphere-Launcher PipeProjectiles & MissilesHard22 cmds
▶Old-West Gatling-Organ Steam Calliope CartProjectiles & MissilesHard24 cmds
▶Steampunk Piston-Hammer Pilebunker GauntletProjectiles & MissilesMedium24 cmds
▶16-Way Automated ArtilleryProjectiles & MissilesHard25 cmds
▶Heat-Seeking Rocket LauncherProjectiles & MissilesMedium19 cmds