A pure white beam hits a spinning glass prism over an obsidian arena, splitting into seven rainbow rays reflected skyward by tilting mirrors.
SimulationsHoly & LightTechnologyWhiteRainbowBlackLearningDecorationCinematicBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
Watch a high-intensity beam of white light fire across a dark obsidian arena and strike a spinning, floating glass prism at the center. On contact, the beam splits into a full seven-color rainbow spectrum that fans out across the floor.
Each colored ray hits an array of automated, tilting iron mirrors arranged in a semicircle. As the mirrors tilt back and forth using smooth display interpolation, they redirect the rainbow beams high into the night sky.
/scoreboard objectives add c9_t dummy/fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 minecraft:polished_blackstone/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 minecraft:obsidian/setblock ~ ~-1 ~ minecraft:sea_lantern/fill ~-12 ~ ~-1 ~-10 ~2 ~1 minecraft:iron_block/setblock ~-10 ~2 ~ minecraft:sea_lantern/summon minecraft:block_display ~ ~2.5 ~ {Tags:["c9_all","c9_prism"],Glowing:1b,glow_color_override:16777215,block_state:{Name:"minecraft:white_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.353f,0.353f,0.146f,0.853f],scale:[2.2f,2.2f,2.2f],translation:[-1.1f,-1.1f,-1.1f]}}/summon minecraft:block_display ~8 ~2.5 ~-6 {Tags:["c9_all","c9_mirror"],Glowing:1b,glow_color_override:16733525,block_state:{Name:"minecraft:iron_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,-0.5f,0f,0.866f],scale:[2.4f,3.0f,0.4f],translation:[-1.2f,-1.5f,-0.2f]}}/summon minecraft:block_display ~10 ~2.5 ~ {Tags:["c9_all","c9_mirror"],Glowing:1b,glow_color_override:5635925,block_state:{Name:"minecraft:iron_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,-0.707f,0f,0.707f],scale:[2.4f,3.0f,0.4f],translation:[-1.2f,-1.5f,-0.2f]}}/summon minecraft:block_display ~8 ~2.5 ~6 {Tags:["c9_all","c9_mirror"],Glowing:1b,glow_color_override:11141375,block_state:{Name:"minecraft:iron_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,-0.866f,0f,0.5f],scale:[2.4f,3.0f,0.4f],translation:[-1.2f,-1.5f,-0.2f]}}/scoreboard players add #tick c9_t 1/scoreboard players set #mod c9_t 60/scoreboard players operation #phase c9_t = #tick c9_t/scoreboard players operation #phase c9_t %= #mod c9_t/execute as @e[tag=c9_prism] at @s run tp @s ~ ~ ~ ~5 ~/execute if score #phase c9_t matches 0 as @e[tag=c9_mirror] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0.258f,0.965f],right_rotation:[0f,-0.707f,0f,0.707f],scale:[2.4f,3.0f,0.4f],translation:[-1.2f,-1.5f,-0.2f]}}/execute if score #phase c9_t matches 30 as @e[tag=c9_mirror] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,-0.173f,0.984f],right_rotation:[0f,-0.707f,0f,0.707f],scale:[2.4f,3.0f,0.4f],translation:[-1.2f,-1.5f,-0.2f]}}/particle minecraft:end_rod ~-5 ~2.5 ~ 2.4 0.05 0.05 0 20 force/particle minecraft:dust{color:[1.0,1.0,1.0],scale:1.8} ~-5 ~2.5 ~ 2.4 0.04 0.04 0 25 force/particle minecraft:dust{color:[1.0,0.1,0.1],scale:1.6} ~4 ~2.5 ~-3 1.8 0.05 1.3 0 18 force/particle minecraft:dust{color:[1.0,0.6,0.0],scale:1.6} ~4.5 ~2.5 ~-1.5 2.0 0.05 0.6 0 18 force/particle minecraft:dust{color:[0.1,1.0,0.2],scale:1.6} ~5 ~2.5 ~ 2.2 0.05 0.05 0 20 force/particle minecraft:dust{color:[0.1,0.6,1.0],scale:1.6} ~4.5 ~2.5 ~1.5 2.0 0.05 0.6 0 18 force/execute as @e[tag=c9_mirror] at @s run particle minecraft:dust{color:[0.8,0.3,1.0],scale:1.8} ~ ~4.5 ~ 0.25 2.5 0.25 0 18 forcesetup #7 Summons the central glass prism as a <code>block_display</code> rotated on two axes so it hangs like a diamond, centered on its pivot with a negative translation.setup #8 Creates the first tilting mirror out of an iron block display scaled into a tall, flat slab and outlined with a colored glow.loop #6 Every 60 ticks (3 seconds), starts a 30-tick smooth interpolation that tilts all mirrors upward by updating their <code>left_rotation</code> quaternion.loop #9 Renders the incoming high-intensity white light beam stretching from the emitter on the left directly into the center of the floating prism.loop #14 Projects vertical columns of colored light shooting straight into the sky above every mirror in the array.


Recorded on our own test server: 44 frames at about 7.2 fps. Our image check saw: A white particle beam shoots from an iron emitter into a rotating glass block, splitting into a rainbow of colored particles that strike glowing, tilting iron mirrors on a dark platform.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player aim the refracted beams manually, replace the automated mirror rotation in loop commands 6 and 7 with /execute as @e[tag=c9_mirror] at @s facing entity @p eyes run tp @s ~ ~ ~ ~ ~ so the mirror array tracks the closest player's movement.
/kill @e[tag=c9_all]/scoreboard objectives remove c9_t/fill ~-14 ~ ~-14 ~14 ~4 ~14 minecraft:air/fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 minecraft:grass_blockCommand names in Minecraft are strictly lowercase (<code>/execute</code>, not <code>/Execute</code>), block IDs must be exact (<code>minecraft:quartz_block</code>), and relative <code>~</code> coordinates cannot be typed inside raw NBT <code>Pos</code> arrays.
Block display entities support built-in transformation interpolation. Setting <code>interpolation_duration:30</code> and <code>start_interpolation:0</code> tells the client to blend smoothly between the two rotation angles over 1.5 seconds.
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds
▶Holographic DNA Double-Helix SplicerSimulationsHard24 cmds
▶Magnetic Ferrofluid Audio VisualizerSimulationsHard24 cmds
▶Microscopic Bacteriophage Viral InjectionSimulationsHard24 cmds
▶Monumental Dam Spillway Floodgate ReleaseSimulationsHard24 cmds