Twenty glowing sea lantern orbs suspended on chains swing at offset speeds, drifting through serpentine waves, double helices, and chaos before realigning.
SimulationsTechnologyMysticCyanGoldWhiteLearningDecorationServer LobbyBlock displaysSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)Rotation math21+ commands
The Harmonic Pendulum Wave Array recreates the classic physics demonstration inside Minecraft using twenty block display entities. Suspended from a dark oak and gold overhead gantry, each glowing sea lantern orb hangs from an iron chain and swings back and forth at a slightly faster frequency than the one before it.
As the pendulums swing, their phase differences create shifting optical illusions: travelling serpentine waves, alternating double helices, and apparent chaos, before all twenty orbs smoothly realign into a single straight row. Colored dust particles and musical chimes mark each time an orb crosses the center line.
/scoreboard objectives add c9_phase dummy/scoreboard objectives add c9_freq dummy/scoreboard objectives add c9_dir dummy/scoreboard objectives add c9_tmp dummy/fill ~-10 ~11 ~ ~10 ~11 ~ dark_oak_wood/fill ~-10 ~ ~-3 ~-10 ~11 ~3 stripped_dark_oak_log/fill ~10 ~ ~-3 ~10 ~11 ~3 stripped_dark_oak_log/fill ~-9 ~ ~-2 ~9 ~ ~2 polished_blackstone_slab[type=bottom]/summon marker ~-9.5 ~11 ~ {Tags:["c9_spawner"]}/scoreboard players set #next_freq c9_freq 280/execute as @e[type=marker,tag=c9_spawner] at @s if score #next_freq c9_freq matches ..394 run summon block_display ~ ~ ~ {Tags:["c9_pend","c9_init"],Glowing:1b,glow_color_override:65535,teleport_duration:1,interpolation_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:[0.7f,0f,0f,-0.35f,0f,0.7f,0f,-6.85f,0f,0f,0.7f,-0.35f,0f,0f,0f,1f],Passengers:[{id:"minecraft:block_display",Tags:["c9_pend","c9_chain"],interpolation_duration:1,block_state:{Name:"minecraft:chain"},transformation:[0.3f,0f,0f,-0.15f,0f,6.5f,0f,-6.5f,0f,0f,0.3f,-0.15f,0f,0f,0f,1f]}]}/execute as @e[type=block_display,tag=c9_init] at @s run setblock ~ ~ ~ gilded_blackstone/execute as @e[type=block_display,tag=c9_init] run scoreboard players operation @s c9_freq = #next_freq c9_freq/execute as @e[type=block_display,tag=c9_init] run scoreboard players set @s c9_phase -5000/execute as @e[type=block_display,tag=c9_init] run scoreboard players set @s c9_dir 1/execute if entity @e[type=block_display,tag=c9_init] run scoreboard players add #next_freq c9_freq 6/execute if entity @e[type=block_display,tag=c9_init] as @e[type=marker,tag=c9_spawner] at @s run tp @s ~1 ~ ~/tag @e[type=block_display,tag=c9_init] remove c9_init/execute as @e[type=block_display,tag=c9_pend,tag=!c9_chain] if score @s c9_dir matches 1 run scoreboard players operation @s c9_phase += @s c9_freq/execute as @e[type=block_display,tag=c9_pend,tag=!c9_chain] if score @s c9_dir matches -1 run scoreboard players operation @s c9_phase -= @s c9_freq/execute as @e[type=block_display,tag=c9_pend,tag=!c9_chain] if score @s c9_phase matches 5000.. run scoreboard players set @s c9_dir -1/execute as @e[type=block_display,tag=c9_pend,tag=!c9_chain] if score @s c9_phase matches ..-5000 run scoreboard players set @s c9_dir 1/execute as @e[type=block_display,tag=c9_pend,tag=!c9_chain] at @s store result entity @s Rotation[1] float 0.008 run scoreboard players get @s c9_phase/execute as @e[type=block_display,tag=c9_pend,tag=!c9_chain] at @s rotated ~ 0 positioned ^ ^-6.5 ^1.8 run particle dust{color:[0.2,0.9,1.0],scale:0.9} ~ ~ ~ 0.05 0.05 0.05 0 1 forceloop #1 During the first 20 ticks, the spawner marker steps across the top beam and summons 20 glowing sea lantern block displays, each carrying a stretched chain block display as a passenger.loop #6 Each newly spawned pendulum receives a slightly higher frequency score (#next_freq increases by 6 per orb), which is why adjacent orbs drift out of sync in smooth harmonic patterns.loop #9 Commands 9 through 12 advance each pendulum's phase score back and forth between -5000 and 5000 according to its individual frequency and direction.loop #13 Stores the pendulum's current phase score directly into its pitch rotation (Rotation[1]) scaled by 0.008, swinging the orb between -40 and +40 degrees.loop #14 Projects local coordinates (^ ^-6.5 ^1.8) from each rotating pivot down to the swinging orb to leave a glowing cyan dust trail along its arc.


Recorded on our own test server: 53 frames at about 7.5 fps. Our image check saw: Twenty glowing sea lantern block displays swing in a harmonic wave pattern inside a dark oak and gilded blackstone frame, though no iron chains are visible.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
/kill @e[tag=c9_pend]/kill @e[tag=c9_spawner]/fill ~-10 ~ ~-3 ~10 ~11 ~3 air/scoreboard objectives remove c9_phase/scoreboard objectives remove c9_freq/scoreboard objectives remove c9_dir/scoreboard objectives remove c9_tmpBoth the orb and the chain have their display transformation offset downward from the entity's pivot point on the top beam. Rotating the parent display entity's pitch swings the offset model in a clean arc.
Yes. Increase the 0.008 multiplier in loop command 13 to widen the swing angle, or adjust the #next_freq step in loop command 6 to change how quickly the waves drift apart.
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds
▶Alchemical Homunculus Vitro GenesisSimulationsHard25 cmds
▶Recursive Clone MeltdownSimulationsEasy17 cmds
▶Evolving Cellular Grid SimulationSimulationsMedium24 cmds
▶Pattern-Weaving Grid WalkerSimulationsEasy20 cmds
▶Self-Evolving Block GridSimulationsMedium24 cmds