Bouncing Physics Spheres Arena

Build an automated dark prismarine and blackstone arena that fires glowing cyan and magenta physics spheres that bounce off floors and walls with sparks.

Java EditionComplex Contraptions & CinematicsHard23 commandsTested on a real 26.2 & 26.3 server
Glowing cyan and magenta cubes with colorful particle trails fall from dispensers inside a blackstone arena. Download the GIF Video & GIF © www.9minecraft.net

SimulationsTechnologyCyanPinkBlackLearningMini-gameDecorationBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Sounds21+ commands

This command creation builds an open-front dark prismarine and blackstone arena equipped with two automated launchers. Every second, glowing cyan and magenta spheres shoot across the room, pulled down by custom gravity while ricocheting off the floor and walls with a burst of musical chimes and colourful sparks.

It works by storing velocity values in entity NBT and updating them every tick, reversing horizontal motion when a sphere hits a wall and giving it an upward bounce whenever it touches the floor.

1. Setup - type these once 7 commands

  1. /scoreboard objectives add c9_age dummy
  2. /fill ~-8 ~-1 ~-8 ~8 ~5 ~8 minecraft:polished_blackstone_bricks outline
  3. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:dark_prismarine
  4. /fill ~-7 ~0 ~-7 ~7 ~5 ~8 minecraft:air
  5. /fill ~-8 ~5 ~-8 ~8 ~5 ~8 minecraft:sea_lantern replace minecraft:polished_blackstone_bricks
  6. /setblock ~-7 ~3 ~-2 minecraft:dispenser[facing=east]
  7. /setblock ~7 ~3 ~2 minecraft:dispenser[facing=west]

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

  1. /scoreboard players add #c9_tick c9_age 1
  2. /execute if score #c9_tick c9_age matches 15 run summon minecraft:block_display ~-6 ~3 ~-2 {Tags:["c9_orb","c9_cyan"],Glowing:1b,glow_color_override:65535,teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],translation:[-0.4f,0f,-0.4f]},Motion:[0.38d,0.15d,0.22d]}
  3. /execute if score #c9_tick c9_age matches 30 run summon minecraft:block_display ~6 ~3 ~2 {Tags:["c9_orb","c9_mag"],Glowing:1b,glow_color_override:16711935,teleport_duration:1,block_state:{Name:"minecraft:pearlescent_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],translation:[-0.4f,0f,-0.4f]},Motion:[-0.36d,0.18d,-0.24d]}
  4. /execute if score #c9_tick c9_age matches 30.. run scoreboard players set #c9_tick c9_age 0
  5. /execute as @e[tag=c9_orb] at @s run tp @s ~ ~-0.08 ~
  6. /execute as @e[tag=c9_orb] at @s unless block ~ ~-0.2 ~ minecraft:air run data modify entity @s Motion[1] set value 0.42d
  7. /execute as @e[tag=c9_orb] at @s unless block ~ ~-0.2 ~ minecraft:air run particle minecraft:firework ~ ~ ~ 0.2 0.1 0.2 0.15 12 force
  8. /execute as @e[tag=c9_orb] at @s unless block ~ ~-0.2 ~ minecraft:air run playsound minecraft:block.amethyst_block.chime master @a ~ ~ ~ 1 1.4
  9. /execute as @e[tag=c9_orb] at @s unless block ~0.6 ~ ~ minecraft:air run data modify entity @s Motion[0] set value -0.35d
  10. /execute as @e[tag=c9_orb] at @s unless block ~-0.6 ~ ~ minecraft:air run data modify entity @s Motion[0] set value 0.35d
  11. /execute as @e[tag=c9_orb] at @s unless block ~ ~ ~0.6 minecraft:air run data modify entity @s Motion[2] set value -0.25d
  12. /execute as @e[tag=c9_orb] at @s unless block ~ ~ ~-0.6 minecraft:air run data modify entity @s Motion[2] set value 0.25d
  13. /execute as @e[tag=c9_cyan] at @s run particle minecraft:dust{color:[0.0,1.0,1.0],scale:1.8} ~ ~0.4 ~ 0.15 0.15 0.15 0 4 force
  14. /execute as @e[tag=c9_mag] at @s run particle minecraft:dust{color:[1.0,0.0,1.0],scale:1.8} ~ ~0.4 ~ 0.15 0.15 0.15 0 4 force
  15. /scoreboard players add @e[tag=c9_orb] c9_age 1
  16. /kill @e[tag=c9_orb,scores={c9_age=140..}]

How it works

Frames from the test run

Bouncing Physics Spheres Arena - frame 1Bouncing Physics Spheres Arena - frame 2Bouncing Physics Spheres Arena - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: A dark prismarine and blackstone arena with two dispensers dropping glowing cyan and magenta cubes that sink into the floor with particle trails.

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 centre of a flat area where you want the arena built.
  2. Run each command from the setup list once in chat to create the scoreboard objective and build the arena.
  3. Place a repeating command block set to Always Active and paste the first loop command into it.
  4. Chain the remaining loop commands into Always Active chain command blocks connected to the repeating block.
  5. Watch the launchers automatically fire bouncing cyan and magenta spheres across the arena.

Use it with real players

To let players launch spheres themselves instead of using the automated dispensers, replace the two timed summon commands with /execute as @a at @s anchored eyes run summon minecraft:block_display ^ ^ ^1 ... triggered whenever a player holds or uses a custom item.

Remove it again 4 commands

  1. /kill @e[tag=c9_orb]
  2. /scoreboard objectives remove c9_age
  3. /fill ~-8 ~-1 ~-8 ~8 ~5 ~8 minecraft:air
  4. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:grass_block

FAQ

How do I change how high the spheres bounce?

Increase or decrease the 0.42d value in loop command 6, which sets the upward vertical velocity whenever a sphere hits the floor.

Will the spheres cause lag over time?

No, the final two loop commands track each sphere's age in ticks and automatically remove any sphere after 7 seconds (140 ticks).

Commands used

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

Similar creations

Join 9Minecraft News & Guides