Newton Cradle Kinetic Firework Pendulum

Five giant glowing display spheres swing on laser tethers, colliding to send rainbow shockwaves across the frame and launching firework bursts at each apex.

Java EditionFireworks & Light ShowsMedium23 commandsTested on a real 26.2 & 26.3 server
A glowing five-block Newton's cradle swings in the night sky, emitting colorful firework bursts. Download the GIF Video & GIF © www.9minecraft.net

Firework ShowsCelebrationTechnologyRainbowWhiteDecorationServer LobbyLearningParticlesBlock displaysFireworksSmooth animation (interpolation)Scoreboard timersExecute chainsSummoned mobsBlock building (fill/setblock/clone)SoundsGlowing outlines21+ commands

This command creation builds a giant kinetic Newton's cradle in the sky using interpolated block display entities and glowing particle spheres. Five suspended orbs hang from a central beam by laser tethers, swinging back and forth in a smooth rhythm.

Each time an outer sphere swings down and strikes the row, a rainbow shockwave ripples through the three stationary center spheres, transferring momentum to the opposite side and firing a fan of colorful fireworks at the peak of every swing.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #tick c9_t 0
  3. /fill ~-9 ~15 ~-1 ~9 ~15 ~1 minecraft:netherite_block
  4. /fill ~-8 ~15 ~ ~8 ~15 ~ minecraft:sea_lantern
  5. /summon minecraft:block_display ~-6 ~15 ~ {Tags:["c9_all","c9_pend","c9_b1"],Glowing:1b,glow_color_override:16724787,teleport_duration:2,interpolation_duration:14,block_state:{Name:"minecraft:sea_lantern"},transformation:[1.4f,0f,0f,-0.7f,0f,1.4f,0f,-10.7f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  6. /summon minecraft:block_display ~-3 ~5 ~ {Tags:["c9_all","c9_pend","c9_mid","c9_b2"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:shroomlight"},transformation:[1.4f,0f,0f,-0.7f,0f,1.4f,0f,-0.7f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  7. /summon minecraft:block_display ~ ~5 ~ {Tags:["c9_all","c9_pend","c9_mid","c9_b3"],Glowing:1b,glow_color_override:65340,block_state:{Name:"minecraft:ochre_froglight"},transformation:[1.4f,0f,0f,-0.7f,0f,1.4f,0f,-0.7f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  8. /summon minecraft:block_display ~3 ~5 ~ {Tags:["c9_all","c9_pend","c9_mid","c9_b4"],Glowing:1b,glow_color_override:43775,block_state:{Name:"minecraft:verdant_froglight"},transformation:[1.4f,0f,0f,-0.7f,0f,1.4f,0f,-0.7f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  9. /summon minecraft:block_display ~6 ~15 ~ {Tags:["c9_all","c9_pend","c9_b5"],Glowing:1b,glow_color_override:11141375,teleport_duration:2,interpolation_duration:14,block_state:{Name:"minecraft:pearlescent_froglight"},transformation:[1.4f,0f,0f,-0.7f,0f,1.4f,0f,-10.7f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}

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 60.. run scoreboard players set #tick c9_t 0
  3. /execute as @e[tag=c9_mid] at @s run particle minecraft:end_rod ~ ~5 ~ 0.02 2.2 0.02 0 2 force
  4. /execute if score #tick c9_t matches 1 as @e[tag=c9_b1] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:[0.99f,0.99f,0f,-7.77f,-0.99f,0.99f,0f,-7.07f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  5. /execute if score #tick c9_t matches 15 as @e[tag=c9_b1] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:[1.4f,0f,0f,-0.7f,0f,1.4f,0f,-10.7f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  6. /execute if score #tick c9_t matches 31 as @e[tag=c9_b5] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:[0.99f,-0.99f,0f,6.37f,0.99f,0.99f,0f,-7.07f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  7. /execute if score #tick c9_t matches 45 as @e[tag=c9_b5] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:[1.4f,0f,0f,-0.7f,0f,1.4f,0f,-10.7f,0f,0f,1.4f,-0.7f,0f,0f,0f,1f]}
  8. /execute if score #tick c9_t matches 1..28 run particle minecraft:dust{color:[1.0,0.2,0.5],scale:2.0} ~-9.5 ~6.5 ~ 2.0 1.2 0.2 0 12 force
  9. /execute if score #tick c9_t matches 31..58 run particle minecraft:dust{color:[0.6,0.2,1.0],scale:2.0} ~9.5 ~6.5 ~ 2.0 1.2 0.2 0 12 force
  10. /execute if score #tick c9_t matches 29..31 run particle minecraft:dust_color_transition{from_color:[1.0,0.1,0.3],to_color:[0.1,1.0,0.9],scale:3.0} ~ ~5 ~ 4.5 0.6 0.6 0 45 force
  11. /execute if score #tick c9_t matches 58..59 run particle minecraft:dust_color_transition{from_color:[0.7,0.1,1.0],to_color:[1.0,0.8,0.1],scale:3.0} ~ ~5 ~ 4.5 0.6 0.6 0 45 force
  12. /execute if score #tick c9_t matches 15 run summon minecraft:firework_rocket ~-13 ~8 ~ {LifeTime:12,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"large_ball",has_twinkle:1b,colors:[I;16711782,16755200],fade_colors:[I;65535]}]}}}}
  13. /execute if score #tick c9_t matches 45 run summon minecraft:firework_rocket ~13 ~8 ~ {LifeTime:12,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"star",has_twinkle:1b,colors:[I;11141375,43775],fade_colors:[I;16776960]}]}}}}
  14. /execute if score #tick c9_t matches 29 run playsound minecraft:block.amethyst_block.chime master @a ~ ~5 ~ 3 1.2

How it works

Frames from the test run

Newton Cradle Kinetic Firework Pendulum - frame 1Newton Cradle Kinetic Firework Pendulum - frame 2Newton Cradle Kinetic Firework Pendulum - frame 3

Recorded on our own test server: 53 frames at about 8.8 fps. Our image check saw: A floating Newton's cradle made of five glowing rainbow-outlined blocks suspended from a top beam by particle strings, swinging back and forth while releasing firework explosions.

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 in the center of a flat open area and run each command from the setup list once in chat.
  2. Place a stack of 14 command blocks near the center: one Repeating Always Active block at the base, pointing into 13 Chain Always Active blocks.
  3. Paste the 14 loop commands in order into the command blocks.
  4. Watch the outer spheres swing outward, fire off fireworks at their peaks, and send rainbow shockwaves through the middle spheres upon impact.
  5. Run the remove commands when you want to clear the frame, display entities, and scoreboard.

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-9 ~15 ~-1 ~9 ~15 ~1 minecraft:air
  3. /scoreboard objectives remove c9_t

FAQ

How do the outer spheres swing on a curved path without dozens of teleport commands?

Each outer block display is summoned at the top support bar (~ ~15 ~) with its visual model offset 10 blocks downward in its transformation matrix. Rotating the matrix swings the offset model around the top pivot automatically.

Can I change the speed of the pendulum cycle?

Yes. Adjust the 60-tick reset in the second loop command and scale the tick numbers and interpolation_duration values on the four swing commands proportionally.

Commands used

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

Similar creations

Join 9Minecraft News & Guides