Bouncing Xylophone Light-Mallet Symphony

Two glowing light-mallets bounce across a giant neon xylophone, erupting each struck key into a flame pillar, chime melody, and color-matched firework.

Java EditionFireworks & Light ShowsMedium24 commandsTested on a real 26.2 & 26.3 server
Glowing mallets strike a giant rainbow glass xylophone, triggering tall pillars of flame and fireworks at night. Download the GIF Video & GIF © www.9minecraft.net

Firework ShowsMusicCelebrationFireRainbowOrangeDecorationServer LobbyCinematicBlock displaysItem displaysFireworksScoreboard timersExecute chainsBlock building (fill/setblock/clone)Glowing outlines21+ commands

Two glowing orbs of light arc in smooth parabolic paths across a giant seven-key rainbow xylophone resting on dark oak rails. Every time a light-mallet strikes a glass key, the bar flashes upwards, rings out a musical chime note, erupts into a towering pillar of flame, and launches a color-matched aerial firework into the night sky.

By running two mallets on counter-rotating patterns at different rhythms, the stage plays an automated duet of rising and falling harmonies synchronized with bursts of colored dust and fireworks.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-11 ~ ~-4 ~11 ~ ~-4 dark_oak_log[axis=x]
  3. /fill ~-11 ~ ~4 ~11 ~ ~4 dark_oak_log[axis=x]
  4. /summon block_display ~-9 ~0.2 ~-5.5 {Tags:["c9_e","c9_key","c9_k0"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.0f,0f,0f],scale:[2.0f,0.5f,11.0f]},block_state:{Name:"minecraft:red_stained_glass"}}
  5. /summon block_display ~-6 ~0.2 ~-5.0 {Tags:["c9_e","c9_key","c9_k1"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.0f,0f,0f],scale:[2.0f,0.5f,10.0f]},block_state:{Name:"minecraft:orange_stained_glass"}}
  6. /summon block_display ~-3 ~0.2 ~-4.5 {Tags:["c9_e","c9_key","c9_k2"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.0f,0f,0f],scale:[2.0f,0.5f,9.0f]},block_state:{Name:"minecraft:yellow_stained_glass"}}
  7. /summon block_display ~0 ~0.2 ~-4.0 {Tags:["c9_e","c9_key","c9_k3"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.0f,0f,0f],scale:[2.0f,0.5f,8.0f]},block_state:{Name:"minecraft:lime_stained_glass"}}
  8. /summon block_display ~3 ~0.2 ~-3.5 {Tags:["c9_e","c9_key","c9_k4"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.0f,0f,0f],scale:[2.0f,0.5f,7.0f]},block_state:{Name:"minecraft:cyan_stained_glass"}}
  9. /summon block_display ~6 ~0.2 ~-3.0 {Tags:["c9_e","c9_key","c9_k5"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.0f,0f,0f],scale:[2.0f,0.5f,6.0f]},block_state:{Name:"minecraft:blue_stained_glass"}}
  10. /summon block_display ~9 ~0.2 ~-2.5 {Tags:["c9_e","c9_key","c9_k6"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.0f,0f,0f],scale:[2.0f,0.5f,5.0f]},block_state:{Name:"minecraft:magenta_stained_glass"}}

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

  1. /execute unless entity @e[tag=c9_m1] run summon item_display ~-9 ~1 ~-1.5 {Tags:["c9_e","c9_m1"],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},item:{id:"minecraft:sea_lantern",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.9f,0.9f,0.9f]}}
  2. /execute unless entity @e[tag=c9_m2] run summon item_display ~9 ~1 ~1.5 {Tags:["c9_e","c9_m2"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},item:{id:"minecraft:ochre_froglight",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.9f,0.9f,0.9f]}}
  3. /scoreboard players add #t c9_t 1
  4. /execute if score #t c9_t matches 140.. run scoreboard players set #t c9_t 0
  5. /execute as @e[tag=c9_m1] at @s run tp @s ~0.3 ~ ~
  6. /execute if score #t c9_t matches 120.. as @e[tag=c9_m1] run tp @s ~-9 ~1 ~-1.5
  7. /execute as @e[tag=c9_m2] at @s run tp @s ~-0.3 ~ ~
  8. /execute if score #t c9_t matches 120.. as @e[tag=c9_m2] run tp @s ~9 ~1 ~1.5
  9. /execute as @e[tag=c9_m1] at @s run tp @s ~ ~1 ~
  10. /execute if score #t c9_t matches 1..9 as @e[tag=c9_m1] at @s run tp @s ~ ~3.2 ~
  11. /execute if score #t c9_t matches 21..29 as @e[tag=c9_m1] at @s run tp @s ~ ~3.2 ~
  12. /execute if score #t c9_t matches 41..49 as @e[tag=c9_m1] at @s run tp @s ~ ~3.2 ~
  13. /execute if score #t c9_t matches 61..69 as @e[tag=c9_m1] at @s run tp @s ~ ~3.2 ~
  14. /execute as @e[tag=c9_key] at @s if entity @e[tag=c9_m1,distance=..2.2] if score #t c9_t matches ..80 if block ~ ~-1 ~ grass_block run summon firework_rocket ~ ~1 ~2 {LifeTime:18,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"large_ball",has_twinkle:1b,colors:[I;16724787,16766720,65408,52479,16711935]}]}}}}

How it works

Frames from the test run

Bouncing Xylophone Light-Mallet Symphony - frame 1Bouncing Xylophone Light-Mallet Symphony - frame 2Bouncing Xylophone Light-Mallet Symphony - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A rainbow stained-glass xylophone on dark rails is struck by moving glowing cubes, producing huge pillars of fire and fireworks.

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. Find a flat area at least 25x25 blocks wide and stand at the center.
  2. Run each of the 10 setup commands in chat to create the scoreboard, wooden rails, and the 7 glowing glass xylophone bars.
  3. Place a line of 14 Repeating Command Blocks set to Always Active nearby.
  4. Paste one loop command into each repeating command block in order.
  5. Set the time to night (/time set midnight) to see the neon glass keys, glowing light-mallets, and firework bursts clearly.

Use it with real players

To let real players play the giant xylophone instead of the automated light-mallets, replace @e[tag=c9_m1,distance=..2.2] in the final loop command with @a[distance=..2.2]. Whenever a player jumps or runs across the neon glass bars, the keys beneath their feet will launch fireworks.

Remove it again 4 commands

  1. /kill @e[tag=c9_e]
  2. /fill ~-11 ~ ~-4 ~11 ~ ~-4 air
  3. /fill ~-11 ~ ~4 ~11 ~ ~4 air
  4. /scoreboard objectives remove c9_t

FAQ

Why use block_display entities for the xylophone bars instead of normal stained glass blocks?

Block displays let us set custom non-grid lengths (Tapering from 11 blocks down to 5 blocks) and force full 15 brightness so the stained glass glows brightly in the dark without needing hidden light blocks.

How do I change the speed of the light-mallets?

Adjust the X movement offset in loop commands 4 and 6 (currently 0.3 and -0.3) and scale the reset time in loop command 3 to match.

Commands used

/execute/fill/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides