Prismatic Block Laser Array

Build a glowing prismatic laser array in Minecraft using command blocks. Watch rainbow beams reflect off obsidian mirrors and trigger explosive impacts.

Java EditionMagic & SpellsEasy25 commandsTested on a real 26.2 & 26.3 server
A central Sea Lantern turret fires colorful glowing beams that reflect off four corner obsidian pillars. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

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

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

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #tick c9_t matches 16.. run scoreboard players set #tick c9_t 0
  3. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~9 ~
  4. /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]}}
  5. /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]}}
  6. /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]}}
  7. /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]}}
  8. /scoreboard players add @e[tag=c9_b] c9_t 1
  9. /execute as @e[tag=c9_b] at @s run tp @s ^ ^ ^0.95
  10. /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}
  11. /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}
  12. /execute as @e[tag=c9_b,scores={c9_t=12}] at @s run tp @s ~ ~ ~ ~90 ~
  13. /execute at @e[tag=c9_b] run particle minecraft:end_rod ~ ~ ~ 0.05 0.05 0.05 0.01 1 force
  14. /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
  15. /kill @e[tag=c9_b,scores={c9_t=22..}]

How it works

Frames from the test run

Prismatic Block Laser Array - frame 1Prismatic Block Laser Array - frame 2Prismatic Block Laser Array - frame 3

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.

Build it in your world

  1. Find a flat open area and stand at the exact center block where you want the laser turret.
  2. Run each of the 10 setup commands in chat to build the obsidian mirror pillars, the center pad, and the glowing core.
  3. Place a column or line of 15 command blocks nearby.
  4. Set the first command block to Repeat, Unconditional, and Always Active, then paste the first loop command into it.
  5. Chain the remaining 14 loop commands using Chain, Unconditional, Always Active command blocks, or place each in its own Repeating command block positioned at the arena center.

Use it with real players

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.

Remove it again 4 commands

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

FAQ

Why do the laser beams glow in different colors?

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

Will the laser entities cause lag over time?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides