Prismatic Light-Refraction Prism Array

A pure white beam hits a spinning glass prism over an obsidian arena, splitting into seven rainbow rays reflected skyward by tilting mirrors.

Java EditionComplex Contraptions & CinematicsMedium24 commandsTested on a real 26.2 & 26.3 server
A white particle beam splits through a spinning glass prism into a rainbow hitting tilting iron mirrors. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 minecraft:polished_blackstone
  3. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 minecraft:obsidian
  4. /setblock ~ ~-1 ~ minecraft:sea_lantern
  5. /fill ~-12 ~ ~-1 ~-10 ~2 ~1 minecraft:iron_block
  6. /setblock ~-10 ~2 ~ minecraft:sea_lantern
  7. /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]}}
  8. /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]}}
  9. /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]}}
  10. /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]}}

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

  1. /scoreboard players add #tick c9_t 1
  2. /scoreboard players set #mod c9_t 60
  3. /scoreboard players operation #phase c9_t = #tick c9_t
  4. /scoreboard players operation #phase c9_t %= #mod c9_t
  5. /execute as @e[tag=c9_prism] at @s run tp @s ~ ~ ~ ~5 ~
  6. /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]}}
  7. /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]}}
  8. /particle minecraft:end_rod ~-5 ~2.5 ~ 2.4 0.05 0.05 0 20 force
  9. /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
  10. /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
  11. /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
  12. /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
  13. /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
  14. /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 force

How it works

Frames from the test run

Prismatic Light-Refraction Prism Array - frame 1Prismatic Light-Refraction Prism Array - frame 2Prismatic Light-Refraction Prism Array - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area and set the time to night so the glowing prism and light beams stand out.
  2. Run each of the 10 setup commands in chat or in impulse command blocks placed at the arena center.
  3. Place a line of 14 repeating command blocks set to Always Active underneath or beside the stage.
  4. Paste one loop command into each repeating command block, making sure coordinates are executed relative to the stage center.
  5. Watch the white beam strike the rotating glass prism, refract into rainbow rays, and bounce skyward off the tilting mirrors.

Use it with real players

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.

Remove it again 4 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-14 ~ ~-14 ~14 ~4 ~14 minecraft:air
  4. /fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 minecraft:grass_block

FAQ

Why did the previous setup command fail with an error?

Command 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.

How do the mirrors tilt smoothly instead of snapping?

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.

Commands used

/data/execute/fill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides