Live 3D Mathematical Curve Plotter

Build a glowing 3D coordinate grid that plots real-time parametric Lissajous curves in mid-air using display entities, particles, and rotation math.

Java EditionParticle ArtHard24 commandsTested on a real 26.2 & 26.3 server
Glowing cyan and magenta trails trace a 3D mathematical curve around a coordinate grid in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_math dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:black_concrete
  3. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:coal_block
  4. /fill ~-8 ~-1 ~ ~8 ~-1 ~ minecraft:sea_lantern
  5. /fill ~ ~-1 ~-8 ~ ~-1 ~8 minecraft:sea_lantern
  6. /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]}}
  7. /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]}}
  8. /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]}}
  9. /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"}}
  10. /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]}}]}

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

  1. /execute as @e[tag=c9_osc_a] at @s run tp @s ~ ~ ~ ~6 ~
  2. /execute as @e[tag=c9_osc_b] at @s run tp @s ~ ~ ~ ~9 ~
  3. /execute as @e[tag=c9_osc_c] at @s run tp @s ~ ~ ~ ~ ~10
  4. /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] ~ ~ ~
  5. /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] ~ ~ ~
  6. /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]}}
  7. /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]}}
  8. /scoreboard players add @e[tag=c9_node] c9_math 1
  9. /kill @e[tag=c9_node,scores={c9_math=55..}]
  10. /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
  11. /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
  12. /execute at @e[tag=c9_pen1] run particle minecraft:end_rod ~ ~ ~ 0.02 0.02 0.02 0.01 2 force
  13. /execute at @e[tag=c9_pen2] run particle minecraft:flame ~ ~ ~ 0.02 0.02 0.02 0.01 2 force
  14. /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 force

How it works

Frames from the test run

Live 3D Mathematical Curve Plotter - frame 1Live 3D Mathematical Curve Plotter - frame 2Live 3D Mathematical Curve Plotter - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area where you want the 3D coordinate grid to appear.
  2. Run each command from the Setup list once in chat or from impulse command blocks positioned at the stage center.
  3. Place 14 repeating command blocks (or 1 repeating command block feeding 13 chain command blocks) and set them all to Always Active.
  4. Paste the 14 Loop commands into the repeating chain, making sure their execution origin points to the center of the coordinate grid.
  5. Switch the time to night to see the glowing nodes, axes, and color-transition particles at full contrast.

Use it with real players

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.

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_math
  3. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:grass_block

FAQ

How can I change the shape of the 3D mathematical curve?

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

Does this creation cause lag if left running?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides