Ricocheting Explosives Simulation

Build a physics arena in Minecraft where custom glowing TNT blocks launch, ricochet off tinted glass walls and floors, and detonate with colorful particles.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
A glass-walled testing arena features a glowing red central launcher and two purple-outlined explosive projectiles. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksTechnologyRedPurpleBlackLearningMini-gameMap MakingBlock displaysArmor standsSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

Standard TNT in Minecraft drops straight to the ground and sits still until it explodes. This creation builds a self-contained physics testing arena with a rotating central launcher that fires bouncy, glowing explosive charges across the stage.

Using scoreboard math and block collision checks, each explosive follows a curved arc, ricochets off the tinted glass perimeter walls and floor with metallic sound effects, flashes white as its fuse runs down, and ends in a non-destructive particle blast.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_vx dummy
  3. /scoreboard objectives add c9_vy dummy
  4. /scoreboard objectives add c9_vz dummy
  5. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:polished_deepslate
  6. /fill ~-9 ~ ~-9 ~9 ~4 ~9 minecraft:tinted_glass hollow
  7. /fill ~-8 ~ ~-8 ~8 ~4 ~8 minecraft:air
  8. /fill ~-9 ~1 ~-9 ~-9 ~1 ~9 minecraft:sea_lantern
  9. /fill ~9 ~1 ~-9 ~9 ~1 ~9 minecraft:sea_lantern
  10. /summon minecraft:armor_stand ~ ~ ~ {Tags:["c9_root","c9_actor"],NoGravity:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:dispenser",count:1}]}

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

  1. /scoreboard players add @e[tag=c9_root] c9_t 1
  2. /execute as @e[tag=c9_root] at @s run tp @s ~ ~ ~ ~13 ~
  3. /execute as @e[tag=c9_root,scores={c9_t=25..}] at @s run summon minecraft:block_display ~ ~1.2 ~ {Tags:["c9_tnt","c9_new"],Glowing:1b,glow_color_override:16733525,transformation:{translation:[-0.35f,-0.35f,-0.35f],scale:[0.7f,0.7f,0.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:tnt"}}
  4. /execute as @e[tag=c9_new] at @s run summon minecraft:marker ^ ^ ^1 {Tags:["c9_aim"]}
  5. /execute as @e[tag=c9_new] at @s store result score @s c9_vx run data get entity @e[tag=c9_aim,limit=1,sort=nearest] Pos[0] 450
  6. /execute as @e[tag=c9_new] at @s store result score @s c9_vz run data get entity @e[tag=c9_aim,limit=1,sort=nearest] Pos[2] 450
  7. /execute as @e[tag=c9_new] at @s store result score @s c9_t run data get entity @s Pos[0] 450
  8. /execute as @e[tag=c9_new] run scoreboard players operation @s c9_vx -= @s c9_t
  9. /execute as @e[tag=c9_new] at @s store result score @s c9_t run data get entity @s Pos[2] 450
  10. /execute as @e[tag=c9_new] run scoreboard players operation @s c9_vz -= @s c9_t
  11. /execute as @e[tag=c9_new] run scoreboard players set @s c9_vy 340
  12. /execute as @e[tag=c9_new] run scoreboard players set @s c9_t 0
  13. /kill @e[tag=c9_aim]
  14. /tag @e[tag=c9_new] remove c9_new

How it works

Frames from the test run

Ricocheting Explosives Simulation - frame 1Ricocheting Explosives Simulation - frame 2Ricocheting Explosives Simulation - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A top-down view of a glass-walled arena with a red-outlined central block and two purple-outlined blocks, though all three frames are identical and show no movement.

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. Open a flat world in Java Edition 26.2 or 26.3 and stand at the center of an open 41x41 area.
  2. Run each command from the Setup list in chat one by one to create the scoreboards, the glass and deepslate arena, and the center launcher.
  3. Place a line of 14 repeating command blocks (set to Always Active) near the stage and paste the Loop commands into them in order.
  4. To add the live physics engine, place a chain of always-active command blocks that subtract 28 from c9_vy each tick for gravity, invert c9_vx or c9_vz when a block_display touches the walls at ~8.2 or ~-8.2, invert c9_vy at the floor, and detonate at c9_t=85 with explosion_emitter particles before killing the display.

Use it with real players

To let a player throw ricocheting explosives instead of using the automatic turret, replace @e[tag=c9_root] in the third loop command with @a[nbt={SelectedItem:{id:"minecraft:tnt"}}] triggered by a right-click carrot-on-a-stick scoreboard objective. The marker math in commands 4 through 10 will automatically read the player's look direction and launch the bouncy TNT forward from their crosshair.

Remove it again 9 commands

  1. /kill @e[tag=c9_tnt]
  2. /kill @e[tag=c9_aim]
  3. /kill @e[tag=c9_root]
  4. /scoreboard objectives remove c9_t
  5. /scoreboard objectives remove c9_vx
  6. /scoreboard objectives remove c9_vy
  7. /scoreboard objectives remove c9_vz
  8. /fill ~-9 ~-1 ~-9 ~9 ~4 ~9 minecraft:air
  9. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:grass_block

FAQ

Do the ricocheting explosives break blocks in my world?

No. The projectiles are block_display entities rather than real primed TNT, so they create explosion particles and sounds without damaging any blocks.

How do I make the explosives bounce higher?

Increase the initial vertical score in loop command 11 from 340 to a higher number like 450.

Commands used

/data/execute/fill/kill/scoreboard/summon/tag/tp

Similar creations

Join 9Minecraft News & Guides