Pendulum Laser Wave Machine

Build a pendulum laser wave machine with fourteen glowing orbs swinging out of phase and trailing bright cyan-to-magenta ribbons across the night sky.

Java EditionFireworks & Light ShowsMedium24 commandsTested on a real 26.2 & 26.3 server
Glowing sea lanterns swing in wave patterns, leaving trails of cyan and purple particles at night. Download the GIF Video & GIF © www.9minecraft.net

Neon GlowTechnologyCelebrationCyanPurpleWhiteDecorationServer LobbyLearningItem displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)21+ commands

Fourteen glowing sea lantern orbs hang in a neat row beneath an overhead light rail, then swing back and forth at slightly different speeds. Because each orb has its own oscillation frequency, they drift out of sync and weave shifting waves, double helixes, and crisscrossing patterns in midair.

Each orb leaves behind a dense trail of dust_color_transition particles that fade from electric cyan to bright magenta against a dark deepslate floor.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_x dummy
  2. /scoreboard objectives add c9_v dummy
  3. /scoreboard objectives add c9_k dummy
  4. /scoreboard objectives add c9_y dummy
  5. /scoreboard players set #100k c9_v 100000
  6. /summon minecraft:area_effect_cloud ~ ~5.5 ~-6.5 {Tags:["c9_spawner"],Duration:14,WaitTime:0,Radius:0.0f}
  7. /execute store result score #cx c9_v run data get entity @e[tag=c9_spawner,limit=1] Pos[0] 10000
  8. /scoreboard players set @e[tag=c9_spawner,limit=1] c9_k 260
  9. /fill ~-6 ~-1 ~-8 ~6 ~-1 ~8 minecraft:deepslate_tiles
  10. /fill ~ ~12 ~-8 ~ ~12 ~8 minecraft:sea_lantern

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

  1. /execute at @e[tag=c9_spawner] run summon minecraft:item_display ~ ~ ~ {Tags:["c9_orb"],item:{id:"minecraft:sea_lantern",count:1},brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.55f,0.55f,0.55f]},teleport_duration:1}
  2. /execute as @e[tag=c9_orb] unless score @s c9_k matches 1.. run scoreboard players operation @s c9_k = @e[tag=c9_spawner,limit=1] c9_k
  3. /execute if entity @e[tag=c9_spawner] run scoreboard players set @e[tag=c9_orb] c9_x 45000
  4. /execute as @e[tag=c9_spawner] at @s run tp @s ~ ~ ~1
  5. /scoreboard players add @e[tag=c9_spawner,limit=1] c9_k 55
  6. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] run scoreboard players operation @s c9_y = @s c9_x
  7. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] run scoreboard players operation @s c9_y *= @s c9_k
  8. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] run scoreboard players operation @s c9_y /= #100k c9_v
  9. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] run scoreboard players operation @s c9_v -= @s c9_y
  10. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] run scoreboard players operation @s c9_x += @s c9_v
  11. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] run scoreboard players operation @s c9_y = @s c9_x
  12. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] run scoreboard players operation @s c9_y += #cx c9_v
  13. /execute unless entity @e[tag=c9_spawner] as @e[tag=c9_orb] store result entity @s Pos[0] double 0.0001 run scoreboard players get @s c9_y
  14. /execute unless entity @e[tag=c9_spawner] at @e[tag=c9_orb] run particle minecraft:dust_color_transition{from_color:[0.0,1.0,1.0],to_color:[1.0,0.1,0.9],scale:1.8} ~ ~ ~ 0.05 0.05 0.05 0 3 force

How it works

Frames from the test run

Pendulum Laser Wave Machine - frame 1Pendulum Laser Wave Machine - frame 2Pendulum Laser Wave Machine - frame 3

Recorded on our own test server: 58 frames at about 9.5 fps. Our image check saw: Fourteen sea lantern blocks swing back and forth out of sync beneath an overhead rail of sea lanterns, leaving trails of cyan-to-purple transition particles.

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 at least 15 by 19 blocks wide and stand at the centre.
  2. Place 14 Repeating Command Blocks in a row nearby, set all of them to Always Active, and paste the 14 loop commands into them in order.
  3. Wait to power the setup or run the 10 setup commands in chat while standing on the centre block of your stage.
  4. Wait one second for the spawner cloud to place all 14 orbs along the Z axis.
  5. Set the time to midnight with /time set midnight to see the glowing cyan-to-magenta ribbons clearly against the dark floor.

Remove it again 8 commands

  1. /kill @e[tag=c9_orb]
  2. /kill @e[tag=c9_spawner]
  3. /scoreboard objectives remove c9_x
  4. /scoreboard objectives remove c9_v
  5. /scoreboard objectives remove c9_k
  6. /scoreboard objectives remove c9_y
  7. /fill ~-6 ~-1 ~-8 ~6 ~-1 ~8 minecraft:grass_block
  8. /fill ~ ~12 ~-8 ~ ~12 ~8 minecraft:air

FAQ

Why do the orbs pause in a straight line for a brief moment at the start?

During the first 14 ticks (less than one second), the invisible spawner places all 14 orbs along the rail. Once it expires, every orb releases from the same starting side at once so the wave forms cleanly.

Can I change the laser ribbon colours?

Yes. In the final loop command, edit the <code>from_color</code> and <code>to_color</code> RGB values (each from 0.0 to 1.0) inside <code>dust_color_transition</code> to pick any gradient you like.

Commands used

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

Similar creations

Join 9Minecraft News & Guides