Rotating Optical Prism Rainbow Splitter

A dark obsidian emitter fires a bright white laser into a spinning triangular glass prism, refracting into seven sweeping neon rainbow beams in the night.

Java EditionFireworks & Light ShowsHard24 commandsTested on a real 26.2 & 26.3 server
A white laser beam splits into seven glowing rainbow rays through a rotating glass prism in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

Light Beams & LasersTechnologyHoly & LightMysticRainbowWhiteBlackDecorationLearningServer LobbyBlock displaysArmor standsSmooth animation (interpolation)Riding & passengersSummoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

This command creation builds an optical physics experiment right on your stage. A dark obsidian emitter tower fires a concentrated white laser beam into a floating, rotating triangular glass prism suspended over a central pedestal.

As the prism spins, the white light refracts out the opposite side and splits into seven distinct neon rainbow rays. Each colored beam sweeps smoothly back and forth through the night air while glowing particles trail along the light paths.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9time dummy
  2. /fill ~-14 ~0 ~-1 ~-13 ~4 ~1 minecraft:obsidian
  3. /fill ~-1 ~0 ~-1 ~1 ~0 ~1 minecraft:obsidian
  4. /summon minecraft:armor_stand ~ ~4 ~ {Invisible:1b,NoGravity:1b,Tags:["c9_hub"],Passengers:[{id:"minecraft:block_display",Tags:["c9_p","c9_prism"],Rotation:[0f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:16777215,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.3f,-1.8f,0.68f],scale:[2.6f,3.6f,0.18f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_prism"],Rotation:[120f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:16777215,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.3f,-1.8f,0.68f],scale:[2.6f,3.6f,0.18f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_prism"],Rotation:[240f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:16777215,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.3f,-1.8f,0.68f],scale:[2.6f,3.6f,0.18f]}}]}
  5. /summon minecraft:armor_stand ~ ~4 ~ {Invisible:1b,NoGravity:1b,Tags:["c9_hub"],Passengers:[{id:"minecraft:block_display",Tags:["c9_p","c9_prism"],Rotation:[0f,0f],brightness:{sky:15,block:15},teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[1.21f,-1.85f,0.66f],scale:[0.22f,3.7f,0.22f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_prism"],Rotation:[120f,0f],brightness:{sky:15,block:15},teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[1.21f,-1.85f,0.66f],scale:[0.22f,3.7f,0.22f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_prism"],Rotation:[240f,0f],brightness:{sky:15,block:15},teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[1.21f,-1.85f,0.66f],scale:[0.22f,3.7f,0.22f]}}]}
  6. /summon minecraft:armor_stand ~ ~4 ~ {Invisible:1b,NoGravity:1b,Tags:["c9_hub"],Passengers:[{id:"minecraft:block_display",Tags:["c9_p"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-12.6f,-0.45f,-0.45f],scale:[0.8f,0.9f,0.9f]}},{id:"minecraft:block_display",Tags:["c9_p"],brightness:{sky:15,block:15},Glowing:1b,glow_color_override:16777215,block_state:{Name:"minecraft:white_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-11.9f,-0.15f,-0.15f],scale:[11.9f,0.3f,0.3f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_ray","c9_r1"],Rotation:[-132f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:16724787,block_state:{Name:"minecraft:red_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.12f,-0.12f,0.3f],scale:[0.24f,0.24f,14.5f]}}]}
  7. /summon minecraft:armor_stand ~ ~4 ~ {Invisible:1b,NoGravity:1b,Tags:["c9_hub"],Passengers:[{id:"minecraft:block_display",Tags:["c9_p","c9_ray","c9_r2"],Rotation:[-122f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:16744448,block_state:{Name:"minecraft:orange_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.12f,-0.12f,0.3f],scale:[0.24f,0.24f,14.5f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_ray","c9_r3"],Rotation:[-112f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:16770560,block_state:{Name:"minecraft:yellow_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.12f,-0.12f,0.3f],scale:[0.24f,0.24f,14.5f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_ray","c9_r4"],Rotation:[-102f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:3342130,block_state:{Name:"minecraft:lime_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.12f,-0.12f,0.3f],scale:[0.24f,0.24f,14.5f]}}]}
  8. /summon minecraft:armor_stand ~ ~4 ~ {Invisible:1b,NoGravity:1b,Tags:["c9_hub"],Passengers:[{id:"minecraft:block_display",Tags:["c9_p","c9_ray","c9_r5"],Rotation:[-92f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:58879,block_state:{Name:"minecraft:cyan_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.12f,-0.12f,0.3f],scale:[0.24f,0.24f,14.5f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_ray","c9_r6"],Rotation:[-82f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:3368703,block_state:{Name:"minecraft:blue_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.12f,-0.12f,0.3f],scale:[0.24f,0.24f,14.5f]}},{id:"minecraft:block_display",Tags:["c9_p","c9_ray","c9_r7"],Rotation:[-72f,0f],brightness:{sky:15,block:15},teleport_duration:1,Glowing:1b,glow_color_override:13379583,block_state:{Name:"minecraft:magenta_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.12f,-0.12f,0.3f],scale:[0.24f,0.24f,14.5f]}}]}
  9. /execute as @e[tag=c9_p] run ride @s dismount
  10. /kill @e[tag=c9_hub]

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

  1. /scoreboard players add #t c9time 1
  2. /execute if score #t c9time matches 80.. run scoreboard players set #t c9time 0
  3. /execute as @e[tag=c9_prism] at @s run tp @s ~ ~ ~ ~3 ~
  4. /execute if score #t c9time matches 0..39 as @e[tag=c9_ray] at @s run tp @s ~ ~ ~ ~1.2 ~
  5. /execute if score #t c9time matches 40..79 as @e[tag=c9_ray] at @s run tp @s ~ ~ ~ ~-1.2 ~
  6. /particle minecraft:end_rod ~-6 ~4 ~ 2.2 0.04 0.04 0.004 4
  7. /particle minecraft:firework ~ ~4 ~ 0.25 0.4 0.25 0.04 2
  8. /execute as @e[tag=c9_r1] at @s run particle minecraft:dust{color:[1.0,0.1,0.1],scale:2.0} ^ ^ ^8 0.1 0.1 0.1 0 3
  9. /execute as @e[tag=c9_r2] at @s run particle minecraft:dust{color:[1.0,0.45,0.0],scale:2.0} ^ ^ ^9 0.1 0.1 0.1 0 3
  10. /execute as @e[tag=c9_r3] at @s run particle minecraft:dust{color:[1.0,0.95,0.1],scale:2.0} ^ ^ ^10 0.1 0.1 0.1 0 3
  11. /execute as @e[tag=c9_r4] at @s run particle minecraft:dust{color:[0.15,1.0,0.2],scale:2.0} ^ ^ ^11 0.1 0.1 0.1 0 3
  12. /execute as @e[tag=c9_r5] at @s run particle minecraft:dust{color:[0.0,0.9,1.0],scale:2.0} ^ ^ ^10 0.1 0.1 0.1 0 3
  13. /execute as @e[tag=c9_r6] at @s run particle minecraft:dust{color:[0.2,0.35,1.0],scale:2.0} ^ ^ ^9 0.1 0.1 0.1 0 3
  14. /execute as @e[tag=c9_r7] at @s run particle minecraft:dust{color:[0.8,0.15,1.0],scale:2.0} ^ ^ ^8 0.1 0.1 0.1 0 3

How it works

Frames from the test run

Rotating Optical Prism Rainbow Splitter - frame 1Rotating Optical Prism Rainbow Splitter - frame 2Rotating Optical Prism Rainbow Splitter - frame 3

Recorded on our own test server: 56 frames at about 9.2 fps. Our image check saw: An obsidian tower shoots a white laser beam into a rotating glass prism over a pedestal, splitting the light into seven sweeping rainbow rays.

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 laser beams stand out clearly.
  2. Run each of the 10 setup commands in order from the exact same center position (or via a setup command block at the stage center).
  3. Place 14 Repeating Command Blocks set to Always Active at or aligned to the stage center.
  4. Paste one loop command into each repeating command block.
  5. Watch the white beam hit the spinning prism and split into seven sweeping neon rainbow rays.

Remove it again 5 commands

  1. /kill @e[tag=c9_p]
  2. /kill @e[tag=c9_hub]
  3. /fill ~-14 ~0 ~-1 ~-13 ~4 ~1 minecraft:air
  4. /fill ~-1 ~0 ~-1 ~1 ~0 ~1 minecraft:air
  5. /scoreboard objectives remove c9time

FAQ

Why do we summon the block displays as passengers on an armor stand first?

Summoning multiple block displays as passengers on an invisible armor stand lets us group 3 complex entities into a single setup command while keeping total setup commands under 10, and dismounting them unlocks independent rotation.

Can I change the speed of the prism rotation or rainbow sweep?

Yes! Change the ~3 rotation value in the third loop command to spin the prism faster or slower, and adjust the ~1.2 and ~-1.2 values in the fourth and fifth loop commands to widen or narrow the rainbow sweep.

Commands used

/execute/fill/kill/particle/ride/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides