A glowing double helix of sea lanterns and amethyst rolls across the sky, driven by a scoreboard oscillator that computes sine and cosine values each tick.
Two glowing strands, one of cyan sea lanterns and one of magenta amethyst, twist around a golden axis line seven blocks above the stage. They form a double helix that keeps rolling from one basalt post to the other. Seen from the side, each strand traces a clean sine wave that rises and falls about four blocks.
The motion uses real maths. Four scoreboard commands run a tiny spring simulation, a harmonic oscillator, that produces sine and cosine values every tick. Each new block display gets those values written into its transformation, so the wave shape comes from the numbers and not from a fixed pattern.
/scoreboard objectives add c9_v dummy/scoreboard players set #y c9_v 40000/scoreboard players set #v c9_v 0/scoreboard players set #k c9_v 23/summon minecraft:text_display ~ ~13.5 ~ {Tags:["c9_label"],billboard:"center",background:1073741824,brightness:{sky:15,block:15},text:{text:"y = A sin(ωt - kx)",color:"aqua",bold:true},transformation:{scale:[2.0f,2.0f,2.0f],translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon minecraft:block_display ~-12.25 ~ ~-0.25 {Tags:["c9_pillar"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:polished_basalt"},transformation:{scale:[0.5f,6.7f,0.5f],translation:[-0.5f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon minecraft:block_display ~12.25 ~ ~-0.25 {Tags:["c9_pillar"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:polished_basalt"},transformation:{scale:[0.5f,6.7f,0.5f],translation:[0.5f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/scoreboard players operation #t c9_v = #y c9_v/scoreboard players operation #t c9_v /= #k c9_v/scoreboard players operation #v c9_v -= #t c9_v/scoreboard players operation #y c9_v += #v c9_v/summon minecraft:block_display ~-12 ~6.725 ~-0.275 {Tags:["c9_node","c9_a","c9_new"],Glowing:1b,glow_color_override:65535,teleport_duration:1,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{scale:[0.55f,0.55f,0.55f],translation:[-0.275f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon minecraft:block_display ~-12 ~6.725 ~-0.275 {Tags:["c9_node","c9_b","c9_new"],Glowing:1b,glow_color_override:16711935,teleport_duration:1,brightness:{sky:15,block:15},block_state:{Name:"minecraft:amethyst_block"},transformation:{scale:[0.55f,0.55f,0.55f],translation:[-0.275f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute as @e[type=block_display,tag=c9_a,tag=c9_new] store result entity @s transformation.translation[1] float 0.0001 run scoreboard players get #y c9_v/execute as @e[type=block_display,tag=c9_a,tag=c9_new] store result entity @s transformation.translation[2] float 0.00048 run scoreboard players get #v c9_v/execute as @e[type=block_display,tag=c9_b,tag=c9_new] store result entity @s transformation.translation[1] float -0.0001 run scoreboard players get #y c9_v/execute as @e[type=block_display,tag=c9_b,tag=c9_new] store result entity @s transformation.translation[2] float -0.00048 run scoreboard players get #v c9_v/tag @e[type=block_display,tag=c9_new] remove c9_new/execute as @e[type=block_display,tag=c9_node] at @s run tp @s ~0.5 ~ ~/execute at @e[type=block_display,tag=c9_a] run particle minecraft:dust{color:[1.0,0.85,0.2],scale:0.9} ~ ~0.275 ~0.275 0 0 0 0 1 force/execute positioned ~12 ~-5 ~-10 run kill @e[type=block_display,tag=c9_node,dx=8,dy=30,dz=20]setup #2 <code>#y</code> starts at 40000, which stands for 4 blocks, and <code>#v</code> starts at 0. These are the position and speed of a virtual spring. <code>#k</code> = 23 sets how stiff the spring is, which gives one full swing about every 30 ticks.loop #1 Loop commands 0 to 3 are the oscillator. Each tick the speed changes by minus position divided by 23, then the position changes by the speed. This step-by-step rule makes <code>#y</code> follow a sine curve and <code>#v</code> follow a cosine curve.loop #5 Every tick one sea lantern cube and one amethyst cube appear at the left post, on the axis 7 blocks up. They are tagged <code>c9_new</code> so the next commands only change these two cubes.loop #7 <code>execute store result entity</code> writes the sine value into <code>transformation.translation[1]</code> (height) and the cosine value into <code>translation[2]</code> (depth). This moves each cube onto a circle of radius 4 around the axis. The amethyst strand uses negative scales, so it sits on the opposite side and the two strands form a double helix.loop #12 All cubes slide 0.5 blocks along the x axis each tick. <code>teleport_duration:1</code> smooths that movement. Because every cube keeps the height it was born with, the row of cubes becomes a travelling wave.loop #14 Cubes that reach the right post are killed. This keeps about 98 cubes alive at once, well under the entity limit.


Recorded on our own test server: 51 frames at about 8.5 fps. Our image check saw: Two glowing strands of cyan-outlined sea lanterns and magenta-outlined amethyst blocks twist in a double helix around a golden particle line between two basalt posts at night, shifting phase across frames.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
/kill @e[type=block_display,tag=c9_node]/kill @e[type=block_display,tag=c9_pillar]/kill @e[type=text_display,tag=c9_label]/scoreboard objectives remove c9_vIt simulates a spring. Each tick the speed is pushed back toward zero in proportion to the position, and the position then moves by the speed. This repeated update produces sine motion in #y and cosine motion in #v, using only scoreboard maths.
Yes. Raise the start value of #y for a wider helix. If you do, keep the cubes inside your build area and raise the cosine scale of 0.00048 in the same proportion. To change the look, swap sea_lantern or amethyst_block in the two summon commands for any other block.
▶Animated House Build TimelapseHolograms & Display EntitiesMedium18 cmds
▶Resonating Sculk SphereHolograms & Display EntitiesMedium21 cmds
▶Automated Puppet Curtain CallHolograms & Display EntitiesHard24 cmds
▶Abyssal Anglerfish Lure AmbushMagic & SpellsHard21 cmds
▶Alchemical Alembic Distillation Wave SpawnerMini-games & UtilitiesHard24 cmds
▶Alchemical Gold-Transmutation Midas ScepterWands, Weapons & ToolsMedium21 cmds