Four autonomous minecarts glide around a powered rail loop, passing target sensors to launch synchronized multi-colored fireworks into the night sky.
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.
/scoreboard objectives add c9_t dummy/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 redstone_block/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 polished_deepslate/fill ~-6 ~ ~-6 ~6 ~ ~6 rail/fill ~-5 ~ ~-5 ~5 ~ ~5 air/fill ~-5 ~ ~-6 ~5 ~ ~-6 powered_rail/fill ~-5 ~ ~6 ~5 ~ ~6 powered_rail/fill ~-6 ~ ~-5 ~-6 ~ ~5 powered_rail/fill ~6 ~ ~-5 ~6 ~ ~5 powered_rail/setblock ~ ~ ~-7 target/scoreboard players remove @e[tag=c9_cart,scores={c9_t=1..}] c9_t 1/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}/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}]}}}}/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}]}}}}/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}]}}}}/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}]}}}}/execute at @e[tag=c9_new] run particle firework ~ ~ ~ 0.25 0.25 0.25 0.1 18/execute at @e[tag=c9_new] run playsound minecraft:block.note_block.chime master @a ~ ~ ~ 1 1.4/execute at @e[tag=c9_new] run scoreboard players set @e[tag=c9_cart,distance=..3] c9_t 15/tag @e[tag=c9_new] remove c9_new/execute at @e[tag=c9_cart] run particle end_rod ~ ~0.4 ~ 0.08 0.08 0.08 0.01 1/execute unless block ~7 ~ ~ target run setblock ~7 ~ ~ target/execute unless block ~ ~ ~7 target run setblock ~ ~ ~7 target/execute unless block ~-7 ~ ~ target run setblock ~-7 ~ ~ targetsetup #2 Fills a 13x13 square of redstone blocks one block underground, and the next command fills the inner 11x11 with polished deepslate so only the outer rail ring sits on redstone power.setup #4 Creates a hollow square of regular rails first so the four corners curve automatically before the straight edges are replaced with powered rails.loop #2 Spawns a new minecart at the north midpoint whenever no existing cart is within 8.3 blocks. Because each side is 12 blocks from midpoint to midpoint, this automatically spaces four minecarts 90 degrees apart.loop #3 Detects when any minecart with an expired cooldown reaches the north sensor and launches a ruby-and-gold star firework straight into the sky.loop #9 Sets the passing minecart's c9_t cooldown to 15 ticks so it only triggers one firework per sensor pass before moving on.loop #11 Emits end_rod particles from every circling minecart so you can track their motion clearly at night.


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.
/kill @e[tag=c9_cart]/kill @e[tag=c9_fw]/scoreboard objectives remove c9_t/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block/fill ~-7 ~ ~-7 ~7 ~ ~7 airThe 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.
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.
/execute/fill/particle/playsound/scoreboard/setblock/summon/tag
▶Harmonic Tuning Fork Crystal Shatter ResonanceFirework ShowsHard23 cmds
▶Luminous Glass Harp Water-Rim Resonance RingsFirework ShowsMedium24 cmds
▶Automated Firework SymphonyFirework ShowsMedium21 cmds
▶Bouncing Xylophone Light-Mallet SymphonyFirework ShowsMedium24 cmds
▶Celestial Harpist Plucking Starlight StringsFirework ShowsExpert24 cmds
▶Choreographed Pyrotechnic SymphonyFirework ShowsHard24 cmds