Build a live 3D Lorenz Attractor in Minecraft using scoreboard differential equations, two glowing comet heads, and persistent block display ribbons.
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.
/scoreboard objectives add c9_x dummy/scoreboard objectives add c9_y dummy/scoreboard objectives add c9_z dummy/scoreboard objectives add c9_t dummy/fill ~-2 ~ ~-2 ~2 ~ ~2 polished_blackstone_slab[type=bottom]/fill ~-1 ~ ~-1 ~1 ~ ~1 crying_obsidian/setblock ~ ~ ~ beacon/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]}}/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]}}/scoreboard players set #c2800 c9_t 2800/execute as @e[tag=c9_h1] unless score @s c9_t matches 1.. run scoreboard players set @s c9_x 200/execute as @e[tag=c9_h2] unless score @s c9_t matches 1.. run scoreboard players set @s c9_x -750/execute as @e[tag=c9_head] unless score @s c9_t matches 1.. run scoreboard players set @s c9_y 800/execute as @e[tag=c9_head] unless score @s c9_t matches 1.. run scoreboard players set @s c9_z 2300/scoreboard players set #c100 c9_t 100/scoreboard players set #c80 c9_t 80/scoreboard players set #c3 c9_t 3/execute as @e[tag=c9_head] run scoreboard players add @s c9_t 1/execute as @e[tag=c9_head] store result score @s c9_x run scoreboard players operation @s c9_x += @s c9_y/execute as @e[tag=c9_head] run scoreboard players operation @s c9_x *= #c80 c9_t/execute as @e[tag=c9_head] run scoreboard players operation @s c9_x /= #c100 c9_t/execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t = #c2800 c9_t/execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t -= @s c9_z/execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t *= @s c9_x/execute as @e[tag=c9_head] run scoreboard players operation #dy c9_t /= #c100 c9_t


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.
▶Spinning DNA Torus Knot SupercoilMath CurvesExpert23 cmds
▶Oscillating String Theory Calabi-Yau ManifoldMath CurvesExpert23 cmds
▶Self-Inverting Klein Bottle Manifold FlowMath CurvesExpert21 cmds
▶Flowing Klein Bottle Surface MeshMath CurvesExpert24 cmds
▶Twisted Mobius Strip Infinity TrackMath CurvesHard23 cmds
▶Twisting Double-Pendulum Chaos Light PaintingMath CurvesHard24 cmds