Watch glowing markers orbit a unit circle and race across a giant vertical coordinate grid to plot smooth cyan and magenta sine waves in real time.
Animated BlocksTechnologyCyanPinkWhiteLearningDecorationServer LobbyBlock displaysBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation builds a 31-by-20 vertical coordinate grid with a dark glass backdrop and crisp white axes, turning your Minecraft stage into a live mathematical oscilloscope. Two glowing block_display markers move in sync: a magenta marker orbits a central unit circle while a cyan sea lantern marker sweeps from left to right across the grid.
As the cyan marker races across the screen, it matches the exact vertical height of the orbiting circle marker, plotting a smooth cosine wave out of glowing cyan trail cubes and particles so you can watch circular motion unroll into a wave in real time.
/scoreboard objectives add c9_math dummy/fill ~-15 ~2 ~-1 ~15 ~21 ~-1 black_stained_glass/fill ~-15 ~11 ~-1 ~15 ~11 ~-1 white_concrete/fill ~ ~2 ~-1 ~ ~21 ~-1 white_concrete/summon marker ~ ~11 ~ {Tags:["c9_all","c9_rotor1"]}/summon marker ~ ~11 ~ {Tags:["c9_all","c9_probe"]}/summon block_display ~-14 ~11 ~ {Tags:["c9_all","c9_wave1","c9_y_sync"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.35f,-0.35f,-0.35f],scale:[0.7f,0.7f,0.7f]}}/summon block_display ~ ~19 ~ {Tags:["c9_all","c9_circle","c9_y_sync"],Glowing:1b,glow_color_override:16724991,block_state:{Name:"minecraft:magenta_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.35f,-0.35f,-0.35f],scale:[0.7f,0.7f,0.7f]}}/execute store result score #y0 c9_math run data get entity @e[tag=c9_rotor1,limit=1] Pos[1] 1000/execute store result score #z0 c9_math run data get entity @e[tag=c9_rotor1,limit=1] Pos[2] 1000/execute as @e[tag=c9_rotor1,limit=1] at @s run tp @s ~ ~ ~ ~9 ~/execute as @e[tag=c9_wave1,limit=1] at @s run tp @s ~0.35 ~ ~/execute positioned ~14 ~0 ~-3 run tp @e[tag=c9_wave1,dx=6,dy=26,dz=6] ~-28 ~11 ~3/execute at @e[tag=c9_rotor1,limit=1] run tp @e[tag=c9_probe,limit=1] ^ ^ ^8/execute store result score #v c9_math run data get entity @e[tag=c9_probe,limit=1] Pos[2] 1000/scoreboard players operation #v c9_math += #y0 c9_math/scoreboard players operation #v c9_math -= #z0 c9_math/execute as @e[tag=c9_y_sync] store result entity @s Pos[1] double 0.001 run scoreboard players get #v c9_math/data modify entity @e[tag=c9_circle,limit=1] Pos[0] set from entity @e[tag=c9_probe,limit=1] Pos[0]/execute at @e[tag=c9_circle,limit=1] run particle dust{color:[1.0,0.2,0.85],scale:1.7} ~ ~ ~ 0 0 0 0 3 force/execute at @e[tag=c9_wave1,limit=1] run particle dust{color:[0.0,0.95,1.0],scale:1.5} ~ ~ ~ 0 0 0 0 2 force/execute at @e[tag=c9_wave1,limit=1] run summon block_display ~ ~ ~ {Tags:["c9_all","c9_dot"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.14f,-0.14f,-0.14f],scale:[0.28f,0.28f,0.28f]}}/scoreboard players add @e[tag=c9_dot] c9_math 1/kill @e[tag=c9_dot,scores={c9_math=72..}]setup #9 Stores the grid center's Y coordinate (<code>#y0</code>) and Z coordinate (<code>#z0</code>) multiplied by 1000 so the wave math works cleanly at any world location.loop #1 Spins the invisible <code>c9_rotor1</code> marker by 9 degrees every tick, acting as the angle clock for both the unit circle and the wave.loop #4 Places <code>c9_probe</code> 8 blocks forward from the rotating marker's facing direction, automatically computing <code>8 * sin(θ)</code> on X and <code>8 * cos(θ)</code> on Z.loop #8 Converts the probe's Z offset into the vertical Y coordinate for both <code>c9_wave1</code> and <code>c9_circle</code>, turning horizontal rotation into a vertical sine/cosine wave.loop #12 Drops a small glowing cyan <code>block_display</code> node at the wave head each tick, while the last two loop commands age those nodes and clear them after 72 ticks.


Recorded on our own test server: 50 frames at about 9.8 fps. Our image check saw: A large vertical dark glass grid with white axes displays a glowing cyan sine wave being plotted in sync with an orbiting magenta marker around a pink-dotted circle.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
/fill ~-15 ~2 ~-1 ~15 ~21 ~-1 air/kill @e[tag=c9_all]/scoreboard objectives remove c9_mathEdit <code>~9 ~</code> in the first loop command to a larger angle like <code>~12 ~</code> for tighter, faster waves, or <code>~6 ~</code> for longer, slower waves.
No. The last two loop commands add 1 to each <code>c9_dot</code> score every tick and delete dots at age 72, keeping total active entities around 76.
▶Tesseract 4D Hypercube ProjectionAnimated BlocksExpert24 cmds
▶Floating Polyhedral Origami MorphAnimated BlocksExpert21 cmds
▶Holographic Chess Endgame Battle RoyalAnimated BlocksHard24 cmds
▶Holographic Solar Flare MagnetosphereAnimated BlocksExpert24 cmds
▶Hydraulic Origami Crane Folding MatrixAnimated BlocksHard24 cmds
▶Magnetic Ferrofluid Spike VisualizerAnimated BlocksExpert24 cmds