Create an automated row of seven beacons with shifting stained glass that paints a continuous flowing rainbow wave across the night sky in Minecraft.
Machines & MechanismsCelebrationHoly & LightRainbowWhiteDecorationServer LobbySummoned mobsBlock building (fill/setblock/clone)21+ commands
The Rainbow Beacon Wave builds a sleek quartz and iron stage housing seven active beacons in a neat row. A scoreboard timer shifts stained glass blocks across the beams from left to right, sending a smooth wave of red, orange, yellow, lime, light blue, blue, and magenta light straight up into the sky.
Notice how the /clone command moves the entire row of glass one block over before placing the next color, while glittering end rod and colored dust particles highlight each shift.
/scoreboard objectives add c9_timer dummy/scoreboard objectives add c9_phase dummy/fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 minecraft:smooth_quartz/fill ~-4 ~-1 ~-1 ~4 ~-1 ~1 minecraft:iron_block/fill ~-3 ~ ~ ~3 ~ ~ minecraft:beacon/fill ~-5 ~ ~-2 ~5 ~ ~-2 minecraft:smooth_quartz_slab/fill ~-5 ~ ~2 ~5 ~ ~2 minecraft:smooth_quartz_slab/setblock ~-3 ~2 ~ minecraft:red_stained_glass/summon minecraft:marker ~ ~1 ~ {Tags:["c9_ctrl"]}/scoreboard players set @e[tag=c9_ctrl] c9_phase 0/scoreboard players add @e[tag=c9_ctrl] c9_timer 1/execute as @e[tag=c9_ctrl,scores={c9_timer=6..}] run scoreboard players add @s c9_phase 1/execute as @e[tag=c9_ctrl,scores={c9_phase=7..}] run scoreboard players set @s c9_phase 0/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..}] run clone ~-3 ~2 ~ ~2 ~2 ~ ~-2 ~2 ~ replace move/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..,c9_phase=0}] run setblock ~-3 ~2 ~ minecraft:red_stained_glass/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..,c9_phase=1}] run setblock ~-3 ~2 ~ minecraft:orange_stained_glass/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..,c9_phase=2}] run setblock ~-3 ~2 ~ minecraft:yellow_stained_glass/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..,c9_phase=3}] run setblock ~-3 ~2 ~ minecraft:lime_stained_glass/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..,c9_phase=4}] run setblock ~-3 ~2 ~ minecraft:light_blue_stained_glass/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..,c9_phase=5}] run setblock ~-3 ~2 ~ minecraft:blue_stained_glass/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..,c9_phase=6}] run setblock ~-3 ~2 ~ minecraft:magenta_stained_glass/execute if entity @e[tag=c9_ctrl,scores={c9_timer=6..}] run particle minecraft:end_rod ~ ~2.2 ~ 3 0.2 0.2 0.02 18/execute as @e[tag=c9_ctrl,scores={c9_timer=6..}] run scoreboard players set @s c9_timer 0/particle minecraft:dust{color:[1.0,0.85,0.3],scale:1.5} ~ ~4 ~ 3 2 0.2 0 5setup #4 Embeds a 9x3 base of <code>iron_block</code> in the floor so all seven beacons placed on top have a complete 3x3 mineral pyramid underneath them.setup #5 Fills a line of seven <code>beacon</code> blocks from <code>~-3</code> to <code>~3</code> along the X axis.loop #4 Uses <code>/clone ... replace move</code> every 6 ticks to shift the six glass blocks from <code>~-3..~2</code> one block to the right (<code>~-2..~3</code>), advancing the wave across the beams.loop #5 Places the new color of stained glass at the leftmost beacon (<code>~-3 ~2 ~</code>) based on the current value of <code>c9_phase</code> (0 through 6).loop #13 Resets <code>c9_timer</code> back to 0 at the end of the shift tick so the next color change waits another 6 ticks.Recorded on our own test server: 57 frames at about 9.4 fps. Our image check saw: Seven beacons on a quartz and iron platform shoot rainbow-colored beams into the night sky as stained glass blocks shift horizontally across them.
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_ctrl]/fill ~-5 ~-1 ~-2 ~5 ~3 ~2 minecraft:air/fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 minecraft:grass_block/scoreboard objectives remove c9_timer/scoreboard objectives remove c9_phaseBeacons require an unobstructed path to the sky and a full 3x3 layer of mineral blocks underneath. Make sure there are no solid blocks above the glass row and that the iron base from setup command 4 was placed at ~ ~-1 ~.
Change the score check <code>c9_timer=6..</code> in the loop commands to a smaller number like <code>4..</code> for a faster wave, or a larger number like <code>12..</code> for a slower shift.
▶Victorian Carousel of Mythical BeastsMachines & MechanismsHard24 cmds
▶Holographic Casino Roulette Ball SpinMachines & MechanismsMedium20 cmds
▶Holographic Pinball Machine Autonomous JackpotMachines & MechanismsHard24 cmds
▶Prismatic Light Refraction Prism ExperimentMachines & MechanismsMedium24 cmds
▶Self-Playing Acoustic Guitar StrummerMachines & MechanismsMedium24 cmds
▶Automated Jackpot ReelsMachines & MechanismsMedium24 cmds