Five giant glowing display spheres swing on laser tethers, colliding to send rainbow shockwaves across the frame and launching firework bursts at each apex.
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.
/scoreboard objectives add c9_t dummy/scoreboard players set #tick c9_t 0/fill ~-9 ~15 ~-1 ~9 ~15 ~1 minecraft:netherite_block/fill ~-8 ~15 ~ ~8 ~15 ~ minecraft:sea_lantern/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]}/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]}/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]}/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]}/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]}/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 60.. run scoreboard players set #tick c9_t 0/execute as @e[tag=c9_mid] at @s run particle minecraft:end_rod ~ ~5 ~ 0.02 2.2 0.02 0 2 force/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]}/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]}/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]}/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]}/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/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/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/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/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]}]}}}}/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]}]}}}}/execute if score #tick c9_t matches 29 run playsound minecraft:block.amethyst_block.chime master @a ~ ~5 ~ 3 1.2setup #5 Summons the left outer sphere as a block display positioned at the top bar (~-6 ~15 ~) with an offset transformation matrix that places the visible sphere 10 blocks below its pivot point so rotations swing it along an arc.loop #4 At tick 1, applies a 45-degree rotated transformation matrix to the left sphere over 14 ticks of interpolation, swinging it outward and upward to the left apex.loop #10 When the left sphere returns and collides at tick 29, emits a horizontal color-transition dust shockwave across the three stationary middle spheres before transferring motion to the right sphere.loop #12 At the left swing apex (tick 15), summons a short-fused firework rocket using the <code>minecraft:fireworks</code> item component to burst behind the suspended orb.


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.
/kill @e[tag=c9_all]/fill ~-9 ~15 ~-1 ~9 ~15 ~1 minecraft:air/scoreboard objectives remove c9_tEach 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.
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.
▶Victorian Zoetrope Animated Firework CylinderFirework ShowsExpert24 cmds
▶Mechanical Hummingbird Nectar Blossom Light FeedFirework ShowsExpert24 cmds
▶Sonic Boom Mach-Cone Firework JetFirework ShowsMedium20 cmds
▶Multi-Stage Missile SiloFirework ShowsHard25 cmds
▶Automated Skyward Pyrotechnic SymphonyFirework ShowsMedium24 cmds
▶Rhythmic Equalizer Firework WallFirework ShowsMedium24 cmds