Bouncing Polyhedron Laser Cage

Summon a spinning geometric laser cage made of cyan and magenta display planes that traps a bouncing firework orb before bursting in mid-air.

Java EditionFireworks & Light ShowsExpert23 commandsTested on a real 26.2 & 26.3 server
Glowing cyan and magenta intersecting planes rotate in mid-air amidst colorful dust and firework sparks. Download the GIF Video & GIF © www.9minecraft.net

Light Beams & LasersTechnologyCelebrationCyanPinkRainbowDecorationServer LobbyCinematicBlock displaysFireworksSmooth animation (interpolation)Rotation math21+ commands

The Bouncing Polyhedron Laser Cage builds a suspended geometric prison out of glowing cyan and magenta light planes. Six intersecting block display entities rotate across symmetry axes in mid-air, expanding and pulsing smoothly around a central point.

Inside the cage, a bright energy core ricochets rapidly off the shifting laser walls, leaving a trail of firework sparks and glowing dust before triggering an overload explosion.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /summon marker ~ ~7 ~ {Tags:["c9_all","c9_core"]}
  3. /summon block_display ~ ~7 ~ {Tags:["c9_all","c9_beam","c9_b1"],Rotation:[0f,35f],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-3.4f,-0.15f,-3.4f],left_rotation:[0f,0f,0f,1f],scale:[6.8f,0.3f,6.8f],right_rotation:[0f,0f,0f,1f]}}
  4. /summon block_display ~ ~7 ~ {Tags:["c9_all","c9_beam","c9_b2"],Rotation:[60f,35f],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:pearlescent_froglight"},transformation:{translation:[-3.4f,-0.15f,-3.4f],left_rotation:[0f,0f,0f,1f],scale:[6.8f,0.3f,6.8f],right_rotation:[0f,0f,0f,1f]}}
  5. /summon block_display ~ ~7 ~ {Tags:["c9_all","c9_beam","c9_b3"],Rotation:[120f,35f],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-3.4f,-0.15f,-3.4f],left_rotation:[0f,0f,0f,1f],scale:[6.8f,0.3f,6.8f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon block_display ~ ~7 ~ {Tags:["c9_all","c9_beam","c9_b4"],Rotation:[180f,35f],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:pearlescent_froglight"},transformation:{translation:[-3.4f,-0.15f,-3.4f],left_rotation:[0f,0f,0f,1f],scale:[6.8f,0.3f,6.8f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon block_display ~ ~7 ~ {Tags:["c9_all","c9_beam","c9_b5"],Rotation:[240f,35f],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-3.4f,-0.15f,-3.4f],left_rotation:[0f,0f,0f,1f],scale:[6.8f,0.3f,6.8f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon block_display ~ ~7 ~ {Tags:["c9_all","c9_beam","c9_b6"],Rotation:[300f,35f],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:pearlescent_froglight"},transformation:{translation:[-3.4f,-0.15f,-3.4f],left_rotation:[0f,0f,0f,1f],scale:[6.8f,0.3f,6.8f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon area_effect_cloud ~ ~7 ~ {Tags:["c9_all","c9_orb"],Radius:0f,Duration:2000000,Rotation:[35f,-25f]}

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

  1. /scoreboard players add @e[tag=c9_core] c9_tick 1
  2. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 1 as @e[tag=c9_beam] run data merge entity @s {start_interpolation:0,interpolation_duration:25,transformation:{translation:[-3.6f,-0.15f,-3.6f],left_rotation:[0f,0f,0f,1f],scale:[7.2f,0.3f,7.2f],right_rotation:[0f,0f,0f,1f]}}
  3. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 50 as @e[tag=c9_beam] run data merge entity @s {start_interpolation:0,interpolation_duration:25,transformation:{translation:[-2.2f,-0.25f,-2.2f],left_rotation:[0f,0f,0f,1f],scale:[4.4f,0.5f,4.4f],right_rotation:[0f,0f,0f,1f]}}
  4. /execute as @e[tag=c9_beam] at @s run tp @s ~ ~ ~ ~4 ~2
  5. /execute at @e[tag=c9_core] run particle dust{color:[0.0,1.0,1.0],scale:1.6} ~ ~ ~ 2.2 2.2 2.2 0 5 force
  6. /execute at @e[tag=c9_core] run particle dust{color:[1.0,0.0,1.0],scale:1.6} ~ ~ ~ 2.2 2.2 2.2 0 5 force
  7. /execute as @e[tag=c9_orb] at @s run tp @s ^ ^ ^0.95 ~4 ~-3
  8. /execute as @e[tag=c9_orb] at @s run particle firework ~ ~ ~ 0.08 0.08 0.08 0.04 10 force
  9. /execute as @e[tag=c9_orb] at @s run particle end_rod ~ ~ ~ 0.05 0.05 0.05 0.02 4 force
  10. /execute as @e[tag=c9_orb] at @s unless entity @e[tag=c9_core,distance=..3.3] run tp @s ~ ~ ~ ~135 ~-75
  11. /execute as @e[tag=c9_orb] at @s unless entity @e[tag=c9_core,distance=..4.2] at @e[tag=c9_core,limit=1] run tp @s ~ ~ ~ ~115 ~40
  12. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 95 at @e[tag=c9_core] run summon firework_rocket ~ ~ ~ {LifeTime:0,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"large_ball",has_twinkle:1b,colors:[I;65535,16711935,16776960],fade_colors:[I;16777215]}]}}}}
  13. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 95 as @e[tag=c9_beam] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[-6.0f,-0.04f,-6.0f],left_rotation:[0f,0f,0f,1f],scale:[12.0f,0.08f,12.0f],right_rotation:[0f,0f,0f,1f]}}
  14. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 115.. run scoreboard players set @e[tag=c9_core] c9_tick 0

How it works

Frames from the test run

Bouncing Polyhedron Laser Cage - frame 1Bouncing Polyhedron Laser Cage - frame 2Bouncing Polyhedron Laser Cage - frame 3

Recorded on our own test server: 54 frames at about 8.9 fps. Our image check saw: Intersecting translucent block planes with glowing cyan and magenta outlines rotate and scale in mid-air while colorful dust and firework particles burst around and inside them.

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. Create a flat stage with plenty of open air above it and stand at the center.
  2. Run each of the 9 setup commands once in chat or in impulse command blocks positioned at the stage center.
  3. Place 14 repeating command blocks in a row, set them all to Always Active, and paste one loop command into each block.
  4. Switch the time to night (/time set night) to see the glowing cyan and magenta outlines and bright display planes clearly.
  5. When you are done watching, run the two cleanup commands to remove the entities and scoreboard objective.

Use it with real players

To turn this into a player-activated spell or trap, replace @e[tag=c9_core] with an armor stand or marker summoned 3 blocks ahead of a target entity using /execute at @p run summon marker ^ ^2 ^8 {Tags:["c9_all","c9_core"]}, and teleport any trapped mob within 3.5 blocks of the core back toward the center each tick.

Remove it again 2 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_tick

FAQ

Why do the display blocks rotate smoothly instead of snapping each tick?

Each block_display entity has teleport_duration set to 2 and interpolation_duration set to 20, which tells the Minecraft client to smoothly blend rotation and scale changes between server ticks.

Can I change the colors of the laser cage?

Yes. Change the block_state Name to another bright block like glowstone or shroomlight, and adjust the decimal integer in glow_color_override along with the RGB values in the dust particles.

Commands used

/data/execute/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides