Build a working laser and prism puzzle in vanilla Minecraft using glowing block displays, smooth crystal rotations, and colored dust beams.
Doors & ElevatorsMysticTechnologyRedYellowCyanAdventure MapMini-gameMap MakingBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)SoundsGlowing outlines21+ commands
The Crystal Prism Beam Redirection Puzzle turns an ordinary temple floor into an active light puzzle using only vanilla command blocks. An emitter tower shoots a ruby particle beam across a dark prismarine arena toward two floating amethyst monoliths. As the crystals smoothly rotate into alignment, the light refracts into golden and cyan beams that strike a central beacon core and shatter a sealed vault door.
Everything runs through four glowing block_display entities and a single scoreboard clock, keeping entity counts fixed and server performance smooth.
/scoreboard objectives add c9_timer dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 dark_prismarine/fill ~-5 ~ ~-9 ~5 ~5 ~-6 polished_blackstone_bricks/fill ~-2 ~ ~-8 ~2 ~3 ~-6 air/setblock ~ ~ ~-7 chest[facing=south]{Items:[{Slot:13b,id:"minecraft:nether_star",count:1}]}/fill ~-1 ~ ~-6 ~1 ~2 ~-6 crying_obsidian/summon block_display ~-6 ~1.5 ~6 {Tags:["c9_ent","c9_emit"],Glowing:1b,glow_color_override:16724787,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.6f,-0.6f,-0.6f],scale:[1.2f,1.2f,1.2f]}}/summon block_display ~6 ~1.5 ~6 {Tags:["c9_ent","c9_p1"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-1.1f,-0.5f],scale:[1.0f,2.2f,1.0f]}}/summon block_display ~6 ~1.5 ~-3 {Tags:["c9_ent","c9_p2"],Glowing:1b,glow_color_override:5636095,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-1.1f,-0.5f],scale:[1.0f,2.2f,1.0f]}}/summon block_display ~ ~1.5 ~-3 {Tags:["c9_ent","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.6f,-0.6f,-0.6f],scale:[1.2f,1.2f,1.2f]}}/scoreboard players add #t c9_timer 1/execute if score #t c9_timer matches 160.. run scoreboard players set #t c9_timer 1/execute if score #t c9_timer matches 1 run fill ~-1 ~ ~-6 ~1 ~2 ~-6 crying_obsidian/particle dust{color:[1.0,0.15,0.3],scale:2.0} ~ ~1.5 ~6 3.0 0.03 0.03 0 35 force/execute if score #t c9_timer matches 1..29 run particle dust{color:[1.0,0.6,0.1],scale:2.0} ~6 ~1.5 ~8 0.03 0.03 1.0 0 15 force/execute if score #t c9_timer matches 25 as @e[tag=c9_p1] run data merge entity @s {start_interpolation:0,interpolation_duration:10,transformation:{left_rotation:[0f,0.3826834f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],translation:[0f,-1.1f,-0.707f],scale:[1.0f,2.2f,1.0f]}}/execute if score #t c9_timer matches 30.. run particle dust{color:[1.0,0.75,0.1],scale:2.0} ~6 ~1.5 ~1.5 0.03 0.03 2.25 0 30 force/execute if score #t c9_timer matches 30..59 run particle dust{color:[0.2,1.0,0.4],scale:2.0} ~8 ~1.5 ~-3 1.0 0.03 0.03 0 15 force/execute if score #t c9_timer matches 55 as @e[tag=c9_p2] run data merge entity @s {start_interpolation:0,interpolation_duration:10,transformation:{left_rotation:[0f,0.3826834f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],translation:[0f,-1.1f,-0.707f],scale:[1.0f,2.2f,1.0f]}}/execute if score #t c9_timer matches 60.. run particle dust{color:[0.1,0.9,1.0],scale:2.0} ~3 ~1.5 ~-3 1.5 0.03 0.03 0 25 force/execute if score #t c9_timer matches 60..95 at @e[tag=c9_core] run particle enchant ~ ~0.6 ~ 0.8 0.8 0.8 0.5 20 force/execute if score #t c9_timer matches 95 run fill ~-1 ~ ~-6 ~1 ~2 ~-6 air destroy/execute if score #t c9_timer matches 95 at @e[tag=c9_core] run playsound block.beacon.activate master @a ~ ~ ~ 2 1.2/execute if score #t c9_timer matches 95..155 run particle end_rod ~ ~1.5 ~-7 0.8 0.8 0.5 0.03 6 forcesetup #8 Summons the first amethyst prism as a stretched <code>block_display</code> with a custom orange glow outline (<code>glow_color_override:16755200</code>) and centered translation offsets.loop #4 Draws the primary ruby laser beam from the emitter at X=-6 to the first prism at X=6 by stretching a <code>dust</code> particle box across 3.0 blocks along the X axis.loop #6 Smoothly rotates the first prism 45 degrees over 10 ticks using display entity interpolation and a Y-axis quaternion (<code>[0f, 0.3826834f, 0f, 0.9238795f]</code>).loop #12 Once the cyan beam finishes charging the central beacon core at tick 95, this command breaks the crying obsidian vault door using <code>fill ... air destroy</code> so blocks burst into particles.


Recorded on our own test server: 66 frames at about 9.4 fps. Our image check saw: A red particle beam shoots across a dark prismarine platform, refracting off two glowing rotated amethyst blocks into yellow and cyan beams that hit a beacon and open a blackstone doorway.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players solve the puzzle manually instead of using the automatic timer, summon an interaction entity at each prism (~6 ~1 ~6 and ~6 ~1 ~-3) and increment a prism state score whenever a player right-clicks it, triggering the 45-degree data merge rotation and enabling the next particle beam only when the score matches the aligned angle.
/kill @e[tag=c9_ent]/kill @e[type=item,distance=..15]/fill ~-9 ~ ~-9 ~9 ~6 ~9 air/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block/scoreboard objectives remove c9_timerThe /particle command uses axial spread values (dx, dy, dz) such as 3.0 0.03 0.03 with 35 particles per tick, creating a solid beam along one axis with zero entity overhead.
Block displays pivot around their bottom-North-West corner (0,0,0). Shifting the translation to [0f, -1.1f, -0.707f] keeps the 1.0-wide crystal centered on its pedestal when rotated 45 degrees.
/data/execute/fill/particle/playsound/scoreboard/setblock/summon
▶Seamless Levitating PlatformDoors & ElevatorsMedium16 cmds
▶Automated Elevator ShowcaseDoors & ElevatorsMedium23 cmds
▶Clockwork Birdcage Arena ElevatorDoors & ElevatorsHard24 cmds
▶Parting Waterfall GateDoors & ElevatorsMedium24 cmds
▶Self-Constructing Pathway BridgeDoors & ElevatorsMedium24 cmds
▶Automated Rising PlatformDoors & ElevatorsMedium24 cmds