Chaotic Lorenz Attractor Butterfly Plotter

Build a live 3D Lorenz Attractor in Minecraft using scoreboard differential equations, two glowing comet heads, and persistent block display ribbons.

Java EditionParticle ArtHard25 commandsTested on a real 26.2 & 26.3 server
Glowing cyan and magenta blocks trace a chaotic Lorenz attractor path above an obsidian pedestal at night. Download the GIF Video & GIF © www.9minecraft.net

Math CurvesTechnologySpaceCyanPinkPurpleLearningDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands

The Lorenz attractor is a famous system of three differential equations that produces a chaotic, double-spiraling butterfly shape. In this command creation, two glowing comet heads—one cyan and one magenta—start with slightly different coordinates and calculate their next 3D positions every tick using pure scoreboard math.

As the comets race through the air above an obsidian pedestal, they leave behind glowing block-display trail nodes and vibrant particle streams. You can watch both trajectories weave through the two wings of the butterfly attractor in real time.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_x dummy
  2. /scoreboard objectives add c9_y dummy
  3. /scoreboard objectives add c9_z dummy
  4. /scoreboard objectives add c9_t dummy
  5. /fill ~-2 ~ ~-2 ~2 ~ ~2 polished_blackstone_slab[type=bottom]
  6. /fill ~-1 ~ ~-1 ~1 ~ ~1 crying_obsidian
  7. /setblock ~ ~ ~ beacon
  8. /summon block_display ~ ~9 ~ {Tags:["c9_lor","c9_head","c9_h1"],Glowing:1b,glow_color_override:65535,teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.65f,0.65f,0.65f],translation:[-0.325f,-0.325f,-0.325f]}}
  9. /summon block_display ~ ~9 ~ {Tags:["c9_lor","c9_head","c9_h2"],Glowing:1b,glow_color_override:16711935,teleport_duration:1,block_state:{Name:"minecraft:pearlescent_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.65f,0.65f,0.65f],translation:[-0.325f,-0.325f,-0.325f]}}
  10. /scoreboard players set #c2800 c9_t 2800

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

  1. /execute as @e[tag=c9_h1] unless score @s c9_t matches 1.. run scoreboard players set @s c9_x 200
  2. /execute as @e[tag=c9_h2] unless score @s c9_t matches 1.. run scoreboard players set @s c9_x -750
  3. /execute as @e[tag=c9_head] unless score @s c9_t matches 1.. run scoreboard players set @s c9_y 800
  4. /execute as @e[tag=c9_head] unless score @s c9_t matches 1.. run scoreboard players set @s c9_z 2300
  5. /scoreboard players set #c100 c9_t 100
  6. /scoreboard players set #c80 c9_t 80
  7. /scoreboard players set #c3 c9_t 3
  8. /execute as @e[tag=c9_head] run scoreboard players add @s c9_t 1
  9. /execute as @e[tag=c9_head] store result score @s c9_x run scoreboard players operation @s c9_x += @s c9_y
  10. /execute as @e[tag=c9_head] run scoreboard players operation @s c9_x *= #c80 c9_t
  11. /execute as @e[tag=c9_head] run scoreboard players operation @s c9_x /= #c100 c9_t
  12. /execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t = #c2800 c9_t
  13. /execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t -= @s c9_z
  14. /execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t *= @s c9_x
  15. /execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t /= #c100 c9_t

Frames from the test run

Chaotic Lorenz Attractor Butterfly Plotter - frame 1Chaotic Lorenz Attractor Butterfly Plotter - frame 2Chaotic Lorenz Attractor Butterfly Plotter - frame 3

Recorded on our own test server: 55 frames at about 8.7 fps. Our image check saw: Over an obsidian and crying obsidian pedestal, two glowing blocks—one cyan leaving a curved trail and one magenta floating high above—are plotting a path in the night sky.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Commands used

/execute/fill/scoreboard/setblock/summon

Similar creations

Join 9Minecraft News & Guides