Live Mathematical Wave Plotter

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.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A live mathematical wave plotter draws a glowing cyan sine curve on a glass coordinate grid in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_math dummy
  2. /fill ~-15 ~2 ~-1 ~15 ~21 ~-1 black_stained_glass
  3. /fill ~-15 ~11 ~-1 ~15 ~11 ~-1 white_concrete
  4. /fill ~ ~2 ~-1 ~ ~21 ~-1 white_concrete
  5. /summon marker ~ ~11 ~ {Tags:["c9_all","c9_rotor1"]}
  6. /summon marker ~ ~11 ~ {Tags:["c9_all","c9_probe"]}
  7. /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]}}
  8. /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]}}
  9. /execute store result score #y0 c9_math run data get entity @e[tag=c9_rotor1,limit=1] Pos[1] 1000
  10. /execute store result score #z0 c9_math run data get entity @e[tag=c9_rotor1,limit=1] Pos[2] 1000

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

  1. /execute as @e[tag=c9_rotor1,limit=1] at @s run tp @s ~ ~ ~ ~9 ~
  2. /execute as @e[tag=c9_wave1,limit=1] at @s run tp @s ~0.35 ~ ~
  3. /execute positioned ~14 ~0 ~-3 run tp @e[tag=c9_wave1,dx=6,dy=26,dz=6] ~-28 ~11 ~3
  4. /execute at @e[tag=c9_rotor1,limit=1] run tp @e[tag=c9_probe,limit=1] ^ ^ ^8
  5. /execute store result score #v c9_math run data get entity @e[tag=c9_probe,limit=1] Pos[2] 1000
  6. /scoreboard players operation #v c9_math += #y0 c9_math
  7. /scoreboard players operation #v c9_math -= #z0 c9_math
  8. /execute as @e[tag=c9_y_sync] store result entity @s Pos[1] double 0.001 run scoreboard players get #v c9_math
  9. /data modify entity @e[tag=c9_circle,limit=1] Pos[0] set from entity @e[tag=c9_probe,limit=1] Pos[0]
  10. /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
  11. /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
  12. /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]}}
  13. /scoreboard players add @e[tag=c9_dot] c9_math 1
  14. /kill @e[tag=c9_dot,scores={c9_math=72..}]

How it works

Frames from the test run

Live Mathematical Wave Plotter - frame 1Live Mathematical Wave Plotter - frame 2Live Mathematical Wave Plotter - frame 3

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.

Build it in your world

  1. Find a flat open area at least 35 blocks wide and 24 blocks tall, and stand at the center block where you want the grid to face.
  2. Run each of the 10 setup commands in order from chat or a chain of impulse command blocks at that center point.
  3. Place 14 repeating command blocks set to Always Active (Unconditional) near the center, or anchor their execution at the center with execute positioned.
  4. Paste each of the 14 loop commands into the repeating command blocks in order so the rotor, wave sweep, coordinate sync, and trail cleanup run every tick.
  5. Step back to watch the magenta unit-circle marker orbit while the cyan wave marker draws smooth glowing sine waves across the grid.
  6. To remove everything later, turn off the repeating command blocks and run the cleanup commands.

Remove it again 3 commands

  1. /fill ~-15 ~2 ~-1 ~15 ~21 ~-1 air
  2. /kill @e[tag=c9_all]
  3. /scoreboard objectives remove c9_math

FAQ

How do I change the wave frequency or speed?

Edit <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.

Can this creation lag my world with too many entities?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides