Build a glowing 3D coordinate grid that plots real-time parametric Lissajous curves in mid-air using display entities, particles, and rotation math.
Math CurvesTechnologyCyanPinkYellowLearningDecorationBlock displaysText displaysRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation turns a glowing 3D coordinate grid into a live mathematical graphing tool. Three reference markers spin at different speeds, and the system pulls the X coordinate from the first, the Z depth from the second, and the Y height from the third to drive two glowing plotting pens through a 3D Lissajous curve.
As the cyan and magenta pens weave around the central axes, they leave behind a trail of glowing diamond and amethyst block nodes along with color-shifting dust particles that slowly fade out as new points are drawn.
/scoreboard objectives add c9_math dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:black_concrete/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:coal_block/fill ~-8 ~-1 ~ ~8 ~-1 ~ minecraft:sea_lantern/fill ~ ~-1 ~-8 ~ ~-1 ~8 minecraft:sea_lantern/summon minecraft:block_display ~-8 ~0.02 ~-0.05 {Tags:["c9_all","c9_grid"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:cyan_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[16f,0.06f,0.1f]}}/summon minecraft:block_display ~-0.05 ~0.02 ~-8 {Tags:["c9_all","c9_grid"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:magenta_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.1f,0.06f,16f]}}/summon minecraft:block_display ~-0.05 ~ ~-0.05 {Tags:["c9_all","c9_grid"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:yellow_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.1f,10f,0.1f]}}/summon minecraft:text_display ~ ~10.8 ~ {Tags:["c9_all","c9_label"],billboard:"center",brightness:{sky:15,block:15},background:1073741824,text:{"text":"f(t) = [ 6.5 sin(6t), 4 sin(10t), 6.5 cos(9t) ]","color":"aqua"}}/summon minecraft:area_effect_cloud ~ ~5 ~ {Tags:["c9_all","c9_init"],Duration:2,Passengers:[{id:"minecraft:marker",Tags:["c9_all","c9_osc_a"]},{id:"minecraft:marker",Tags:["c9_all","c9_osc_b"]},{id:"minecraft:marker",Tags:["c9_all","c9_osc_c"]},{id:"minecraft:block_display",Tags:["c9_all","c9_pen1"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.3f,-0.3f,-0.3f],scale:[0.6f,0.6f,0.6f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_pen2"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.3f,-0.3f,-0.3f],scale:[0.6f,0.6f,0.6f]}}]}/execute as @e[tag=c9_osc_a] at @s run tp @s ~ ~ ~ ~6 ~/execute as @e[tag=c9_osc_b] at @s run tp @s ~ ~ ~ ~9 ~/execute as @e[tag=c9_osc_c] at @s run tp @s ~ ~ ~ ~ ~10/execute positioned ~ ~5 ~ rotated as @e[tag=c9_osc_a,limit=1] positioned ^ ^ ^6.5 align xz positioned ~0.5 ~ ~0.5 rotated as @e[tag=c9_osc_b,limit=1] positioned ^ ^ ^6.5 align z positioned ~ ~ ~0.5 rotated as @e[tag=c9_osc_c,limit=1] positioned ^ ^ ^4.0 run tp @e[tag=c9_pen1] ~ ~ ~/execute positioned ~ ~5 ~ rotated as @e[tag=c9_osc_a,limit=1] positioned ^ ^ ^-6.5 align xz positioned ~0.5 ~ ~0.5 rotated as @e[tag=c9_osc_b,limit=1] positioned ^ ^ ^-6.5 align z positioned ~ ~ ~0.5 rotated as @e[tag=c9_osc_c,limit=1] positioned ^ ^ ^-4.0 run tp @e[tag=c9_pen2] ~ ~ ~/execute at @e[tag=c9_pen1] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:diamond_block"},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]}}/execute at @e[tag=c9_pen2] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},block_state:{Name:"minecraft:amethyst_block"},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_node] c9_math 1/kill @e[tag=c9_node,scores={c9_math=55..}]/execute at @e[tag=c9_pen1] run particle minecraft:dust_color_transition{from_color:[0.0,1.0,1.0],to_color:[0.1,0.3,1.0],scale:2.0} ~ ~ ~ 0.08 0.08 0.08 0 8 force/execute at @e[tag=c9_pen2] run particle minecraft:dust_color_transition{from_color:[1.0,0.1,0.8],to_color:[1.0,0.8,0.0],scale:2.0} ~ ~ ~ 0.08 0.08 0.08 0 8 force/execute at @e[tag=c9_pen1] run particle minecraft:end_rod ~ ~ ~ 0.02 0.02 0.02 0.01 2 force/execute at @e[tag=c9_pen2] run particle minecraft:flame ~ ~ ~ 0.02 0.02 0.02 0.01 2 force/execute at @e[tag=c9_node] align y run particle minecraft:dust{color:[0.3,0.9,1.0],scale:1.2} ~ ~0.1 ~ 0.02 0.02 0.02 0 1 forcesetup #6 Summons stretched block displays for the X, Y, and Z axes with full brightness so the coordinate frame is crisp and visible at night.setup #10 Uses a temporary area effect cloud with passengers to spawn the three oscillator markers and both glowing plotting pens in a single setup command.loop #3 Rotates the third oscillator marker vertically by 10 degrees per tick, while the first two markers rotate horizontally at 6 and 9 degrees per tick.loop #4 Combines the yaw of oscillator A for the X position, the yaw of oscillator B for the Z depth, and the pitch of oscillator C for the Y height to move the first pen along a 3D Lissajous curve.loop #9 Tracks the age of each plotted 3D node on the <code>c9_math</code> scoreboard and removes nodes after 55 ticks so the curve continuously redraws without lag.


Recorded on our own test server: 55 frames at about 9.1 fps. Our image check saw: A 3D coordinate system in Minecraft with a floating mathematical formula at the top, where glowing cyan and magenta block trails trace curves around a central vertical yellow axis and crossed sea lantern axes.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player control one of the axes with their own camera rotation, replace @e[tag=c9_osc_c,limit=1] in loop commands 4 and 5 with @p. Looking up and down will immediately shift the vertical frequency and height of the 3D graph in real time.
/kill @e[tag=c9_all]/scoreboard objectives remove c9_math/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:grass_blockEdit the rotation speeds in the first three loop commands (currently 6, 9, and 10 degrees per tick). Different ratios produce different 3D Lissajous knots, torus coils, or synchronized waves.
No. Even though two display nodes are plotted every tick, loop command 9 deletes any node older than 55 ticks, capping the trail at 110 small display entities.
▶Spinning DNA Torus Knot SupercoilMath CurvesExpert23 cmds
▶Twisting Double-Pendulum Chaos Light PaintingMath CurvesHard24 cmds
▶Oscillating String Theory Calabi-Yau ManifoldMath CurvesExpert23 cmds
▶Self-Inverting Klein Bottle Manifold FlowMath CurvesExpert21 cmds
▶Chaotic Lorenz Attractor Butterfly PlotterMath CurvesHard25 cmds
▶Geometric Spirograph DrawerMath CurvesEasy21 cmds