Rolling Firework Symphony

Four autonomous minecarts glide around a powered rail loop, passing target sensors to launch synchronized multi-colored fireworks into the night sky.

Java EditionFireworks & Light ShowsEasy24 commandsTested on a real 26.2 & 26.3 server
Four glowing minecarts circle a square track, triggering colorful fireworks in the night sky. Download the GIF Video & GIF © www.9minecraft.net

Firework ShowsCelebrationMusicRainbowWhiteBlackDecorationServer LobbyCinematicFireworksSummoned mobsBlock building (fill/setblock/clone)Sounds21+ commands

Rolling Firework Symphony turns a square powered rail track into an automated firework stage. Four lantern-lit minecarts chase one another at even intervals, leaving trails of glowing sparks as they circle a dark stone plaza.

Each time the minecarts pass the four cardinal target sensors, they trigger a synchronized volley of red, emerald, sapphire, and sunset fireworks that burst in two height tiers overhead.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 redstone_block
  3. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 polished_deepslate
  4. /fill ~-6 ~ ~-6 ~6 ~ ~6 rail
  5. /fill ~-5 ~ ~-5 ~5 ~ ~5 air
  6. /fill ~-5 ~ ~-6 ~5 ~ ~-6 powered_rail
  7. /fill ~-5 ~ ~6 ~5 ~ ~6 powered_rail
  8. /fill ~-6 ~ ~-5 ~-6 ~ ~5 powered_rail
  9. /fill ~6 ~ ~-5 ~6 ~ ~5 powered_rail
  10. /setblock ~ ~ ~-7 target

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

  1. /scoreboard players remove @e[tag=c9_cart,scores={c9_t=1..}] c9_t 1
  2. /execute positioned ~ ~0.1 ~-6 unless entity @e[tag=c9_cart,distance=..8.3] run summon minecart ~ ~ ~ {Tags:["c9_cart"],Motion:[0.4,0.0,0.0],CustomDisplayTile:1b,DisplayState:{Name:"minecraft:sea_lantern"},DisplayOffset:6}
  3. /execute positioned ~ ~ ~-6 as @e[tag=c9_cart,distance=..1.1] unless score @s c9_t matches 1.. run summon firework_rocket ~ ~1.5 ~-1 {Tags:["c9_fw","c9_new"],LifeTime:18,Motion:[0.0,0.35,0.0],FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1b,explosions:[{shape:"star",colors:[I;16724787,16777215],fade_colors:[I;16766720],has_trail:1b,has_twinkle:1b}]}}}}
  4. /execute positioned ~6 ~ ~ as @e[tag=c9_cart,distance=..1.1] unless score @s c9_t matches 1.. run summon firework_rocket ~1 ~1.5 ~ {Tags:["c9_fw","c9_new"],LifeTime:20,Motion:[0.0,0.4,0.0],FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1b,explosions:[{shape:"large_ball",colors:[I;2293589,65535],fade_colors:[I;16777215],has_trail:1b,has_twinkle:1b}]}}}}
  5. /execute positioned ~ ~ ~6 as @e[tag=c9_cart,distance=..1.1] unless score @s c9_t matches 1.. run summon firework_rocket ~ ~1.5 ~1 {Tags:["c9_fw","c9_new"],LifeTime:18,Motion:[0.0,0.35,0.0],FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1b,explosions:[{shape:"star",colors:[I;3381759,16724991],fade_colors:[I;65535],has_trail:1b,has_twinkle:1b}]}}}}
  6. /execute positioned ~-6 ~ ~ as @e[tag=c9_cart,distance=..1.1] unless score @s c9_t matches 1.. run summon firework_rocket ~-1 ~1.5 ~ {Tags:["c9_fw","c9_new"],LifeTime:20,Motion:[0.0,0.4,0.0],FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1b,explosions:[{shape:"burst",colors:[I;16746496,11154431],fade_colors:[I;16766720],has_trail:1b,has_twinkle:1b}]}}}}
  7. /execute at @e[tag=c9_new] run particle firework ~ ~ ~ 0.25 0.25 0.25 0.1 18
  8. /execute at @e[tag=c9_new] run playsound minecraft:block.note_block.chime master @a ~ ~ ~ 1 1.4
  9. /execute at @e[tag=c9_new] run scoreboard players set @e[tag=c9_cart,distance=..3] c9_t 15
  10. /tag @e[tag=c9_new] remove c9_new
  11. /execute at @e[tag=c9_cart] run particle end_rod ~ ~0.4 ~ 0.08 0.08 0.08 0.01 1
  12. /execute unless block ~7 ~ ~ target run setblock ~7 ~ ~ target
  13. /execute unless block ~ ~ ~7 target run setblock ~ ~ ~7 target
  14. /execute unless block ~-7 ~ ~ target run setblock ~-7 ~ ~ target

How it works

Frames from the test run

Rolling Firework Symphony - frame 1Rolling Firework Symphony - frame 2Rolling Firework Symphony - frame 3

Recorded on our own test server: 56 frames at about 9.1 fps. Our image check saw: Four minecarts containing sea lanterns circle a square dark-stone plaza on powered rails with white spark trails, passing four target blocks at the cardinal points while multi-colored fireworks explode at two altitudes above.

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. Clear a flat 17x17 grass area and stand at the center block.
  2. Set the world time to night with /time set midnight and turn off daylight cycle if you want a permanent night show.
  3. Run the 10 setup commands in order from chat or impulse command blocks positioned at the stage center.
  4. Place 14 always-active repeating command blocks (or 1 repeating plus 13 chain command blocks) referencing the stage center and paste in the loop commands.
  5. Wait about 5 seconds for all four minecarts to space themselves evenly around the track and launch synchronized fireworks.

Remove it again 5 commands

  1. /kill @e[tag=c9_cart]
  2. /kill @e[tag=c9_fw]
  3. /scoreboard objectives remove c9_t
  4. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block
  5. /fill ~-7 ~ ~-7 ~7 ~ ~7 air

FAQ

Why do the minecarts spawn one by one at the start?

The loop checks an 8.3-block radius at the north sensor so a new minecart only spawns once the previous cart reaches the east side, spacing all four carts evenly without manual timing.

Can I change the firework colors or explosion shapes?

Yes. Edit the <code>colors</code>, <code>fade_colors</code>, and <code>shape</code> fields inside the four <code>/summon firework_rocket</code> commands in the loop.

Commands used

/execute/fill/particle/playsound/scoreboard/setblock/summon/tag

Similar creations

Join 9Minecraft News & Guides