Build a glowing prismatic laser array in Minecraft using command blocks. Watch rainbow beams reflect off obsidian mirrors and trigger explosive impacts.
Holy & Light MagicHoly & LightMysticTechnologyRainbowCyanWhiteMini-gameAdventure MapBoss FightBlock displaysSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
The Prismatic Block Laser Array places a glowing Sea Lantern turret at the center of an arena surrounded by four angled obsidian mirrors. As the core spins, it fires rapid beams made of glowing stained glass display blocks that shift through the colors of the rainbow.
Each beam travels outward until it hits one of the four corner reflector pillars, where it bounces at a 90-degree angle across the perimeter of the stage before detonating in a burst of flash particles and fireworks.
/scoreboard objectives add c9_t dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:crying_obsidian/setblock ~ ~-1 ~ minecraft:sea_lantern/fill ~-8 ~ ~-8 ~-8 ~3 ~-8 minecraft:crying_obsidian/fill ~8 ~ ~-8 ~8 ~3 ~-8 minecraft:crying_obsidian/fill ~8 ~ ~8 ~8 ~3 ~8 minecraft:crying_obsidian/fill ~-8 ~ ~8 ~-8 ~3 ~8 minecraft:crying_obsidian/summon minecraft:block_display ~ ~1.5 ~ {Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,1.2f,1.2f],translation:[-0.6f,-0.6f,-0.6f]}}/summon minecraft:block_display ~-8 ~1.5 ~-8 {Tags:["c9_all","c9_mirror"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0.3826834f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[1.4f,2.2f,0.4f],translation:[-0.7f,-1.1f,-0.2f]}}/summon minecraft:block_display ~8 ~1.5 ~8 {Tags:["c9_all","c9_mirror"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0.3826834f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[1.4f,2.2f,0.4f],translation:[-0.7f,-1.1f,-0.2f]}}/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 16.. run scoreboard players set #tick c9_t 0/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~9 ~/execute if score #tick c9_t matches 0 run summon minecraft:block_display ~ ~1.5 ~ {Tags:["c9_all","c9_b"],Rotation:[135f,0f],Glowing:1b,glow_color_override:16711680,brightness:{sky:15,block:15},block_state:{Name:"minecraft:red_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.45f,0.45f,1.2f],translation:[-0.225f,-0.225f,-0.6f]}}/execute if score #tick c9_t matches 4 run summon minecraft:block_display ~ ~1.5 ~ {Tags:["c9_all","c9_b"],Rotation:[-135f,0f],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},block_state:{Name:"minecraft:yellow_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.45f,0.45f,1.2f],translation:[-0.225f,-0.225f,-0.6f]}}/execute if score #tick c9_t matches 8 run summon minecraft:block_display ~ ~1.5 ~ {Tags:["c9_all","c9_b"],Rotation:[-45f,0f],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.45f,0.45f,1.2f],translation:[-0.225f,-0.225f,-0.6f]}}/execute if score #tick c9_t matches 12 run summon minecraft:block_display ~ ~1.5 ~ {Tags:["c9_all","c9_b"],Rotation:[45f,0f],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},block_state:{Name:"minecraft:magenta_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.45f,0.45f,1.2f],translation:[-0.225f,-0.225f,-0.6f]}}/scoreboard players add @e[tag=c9_b] c9_t 1/execute as @e[tag=c9_b] at @s run tp @s ^ ^ ^0.95/execute as @e[tag=c9_b,scores={c9_t=4}] run data merge entity @s {block_state:{Name:"minecraft:orange_stained_glass"},glow_color_override:16744448}/execute as @e[tag=c9_b,scores={c9_t=8}] run data merge entity @s {block_state:{Name:"minecraft:lime_stained_glass"},glow_color_override:65280}/execute as @e[tag=c9_b,scores={c9_t=12}] at @s run tp @s ~ ~ ~ ~90 ~/execute at @e[tag=c9_b] run particle minecraft:end_rod ~ ~ ~ 0.05 0.05 0.05 0.01 1 force/execute as @e[tag=c9_b,scores={c9_t=22..}] at @s run particle minecraft:explosion ~ ~ ~ 0.2 0.2 0.2 0.1 2 force/kill @e[tag=c9_b,scores={c9_t=22..}]setup #8 Summons the central glowing <code>block_display</code> core using a Sea Lantern block state centered with a negative translation offset.loop #4 Every 16 ticks, summons a diagonal laser beam segment aimed at the north-west obsidian reflector pillar with a custom glowing outline color.loop #9 Moves every active laser block forward by 0.95 blocks per tick along its local facing direction using caret notation (<code>^ ^ ^0.95</code>).loop #12 When a laser segment reaches a score of 12 ticks, it arrives at a corner pillar and rotates 90 degrees to simulate reflecting off the mirror.loop #14 Triggers an explosion particle burst right before the beam segment is removed at 22 ticks.


Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A glowing central Sea Lantern shoots colorful stained glass projectiles along particle paths that bounce off four corner obsidian pillars at 90-degree angles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the laser array damage players or mobs that walk into the beams, add a repeating command block with /execute at @e[tag=c9_b] run damage @e[distance=..1.2,tag=!c9_all] 4 minecraft:magic. You can also fire beams manually in the direction you are looking by replacing the timed summon with /execute at @p run summon minecraft:block_display ~ ~1.5 ~ and copying the player's rotation onto the summoned laser entity.
/kill @e[tag=c9_all]/scoreboard objectives remove c9_t/fill ~-8 ~-1 ~-8 ~8 ~3 ~8 minecraft:air replace minecraft:crying_obsidian/setblock ~ ~-1 ~ minecraft:grass_blockEach block_display entity uses the glow_color_override NBT tag paired with Glowing:1b, which forces the outline shader to render a specific RGB decimal color regardless of team settings.
No. A beam only spawns once every 4 ticks and is deleted after 22 ticks, meaning there are never more than 9 entity objects active at once.
/data/execute/fill/kill/particle/scoreboard/setblock/summon/tp
▶Gilded Scales of Judgment RitualHoly & Light MagicMedium24 cmds
▶Shattering Stained-Glass Cathedral DomeHoly & Light MagicExpert20 cmds
▶Aetherial Silk-Spindle Cocoon WeaverHoly & Light MagicExpert22 cmds
▶Arcane Matryoshka Doll UnsealingHoly & Light MagicMedium24 cmds
▶Arcane Prism Dispersion LighthouseHoly & Light MagicHard24 cmds
▶Astral Lighthouse Fresnel Lens SweepHoly & Light MagicHard24 cmds