Build a self-intersecting 4D Klein bottle projection in Minecraft using rotating command markers and color-shifting particle streams without any mods.
Math CurvesSpaceMysticTechnologyRainbowWhitePurpleLearningDecorationServer LobbyItem displaysSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
A Klein bottle is a non-orientable four-dimensional surface where the inside seamlessly flows into the outside. In this command creation, a rotating 3D figure-8 immersion of a Klein bottle hovers above an obsidian pedestal, woven from eight glowing, color-shifting particle streams that trace the manifold in real time.
By combining local ^ ^ ^ caret coordinates with synchronized rotation speeds and phase-shifted scoreboard timers, four invisible tracer entities sweep out a continuous topological mesh of cyan, magenta, gold, and lime gradients while a central 4D core pulses at the self-intersection point.
/scoreboard objectives add c9_t dummy/scoreboard objectives add c9_phase dummy/fill ~-2 ~ ~-2 ~2 ~ ~2 minecraft:crying_obsidian/setblock ~ ~ ~ minecraft:sea_lantern/summon minecraft:marker ~ ~7 ~ {Tags:["c9_kb","c9_core"],Rotation:[0f,0f]}/summon minecraft:marker ~ ~7 ~ {Tags:["c9_kb","c9_u","c9_u0"],Rotation:[0f,-90f]}/summon minecraft:marker ~ ~7 ~ {Tags:["c9_kb","c9_u","c9_u1"],Rotation:[90f,0f]}/summon minecraft:marker ~ ~7 ~ {Tags:["c9_kb","c9_u","c9_u2"],Rotation:[180f,90f]}/summon minecraft:marker ~ ~7 ~ {Tags:["c9_kb","c9_u","c9_u3"],Rotation:[-90f,0f]}/summon minecraft:item_display ~ ~7 ~ {Tags:["c9_kb","c9_disp"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:amethyst_Cluster",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.4f,0f],scale:[1.6f,1.6f,1.6f]}}/scoreboard players add @e[tag=c9_kb] c9_t 1/execute as @e[tag=c9_core,scores={c9_t=1}] run scoreboard players set @e[tag=c9_u0] c9_phase 0/execute as @e[tag=c9_core,scores={c9_t=1}] run scoreboard players set @e[tag=c9_u1] c9_phase 30/execute as @e[tag=c9_core,scores={c9_t=1}] run scoreboard players set @e[tag=c9_u2] c9_phase 60/execute as @e[tag=c9_core,scores={c9_t=1}] run scoreboard players set @e[tag=c9_u3] c9_phase 90/execute as @e[tag=c9_u] run scoreboard players add @s c9_phase 1/execute as @e[tag=c9_u,scores={c9_phase=120..}] run scoreboard players set @s c9_phase 0/execute as @e[tag=c9_u,scores={c9_phase=0..59}] at @s run tp @s ~ ~ ~ ~4 ~3/execute as @e[tag=c9_u,scores={c9_phase=60..119}] at @s run tp @s ~ ~ ~ ~4 ~-3/execute as @e[tag=c9_u] at @s rotated ~ 0 positioned ^ ^ ^3.4 rotated as @s run particle minecraft:dust_color_transition{from_color:[0.0,0.95,1.0],to_color:[0.95,0.1,1.0],scale:1.4} ^ ^ ^1.7 0.05 0.05 0.05 0 2 force/execute as @e[tag=c9_u] at @s rotated ~ 0 positioned ^ ^ ^3.4 rotated as @s run particle minecraft:dust_color_transition{from_color:[0.95,0.1,1.0],to_color:[0.0,0.95,1.0],scale:1.4} ^ ^ ^-1.7 0.05 0.05 0.05 0 2 force/execute as @e[tag=c9_u] at @s rotated ~ 0 positioned ^ ^ ^3.4 rotated as @s run particle minecraft:dust_color_transition{from_color:[1.0,0.85,0.1],to_color:[0.1,1.0,0.45],scale:1.3} ^ ^1.7 ^ 0.05 0.05 0.05 0 2 force/execute as @e[tag=c9_u] at @s rotated ~ 0 positioned ^ ^ ^3.4 rotated as @s run particle minecraft:dust_color_transition{from_color:[0.1,1.0,0.45],to_color:[1.0,0.85,0.1],scale:1.3} ^ ^-1.7 ^ 0.05 0.05 0.05 0 2 force/execute as @e[tag=c9_u] at @s rotated ~ 0 positioned ^ ^ ^3.4 rotated as @s run particle minecraft:end_rod ^1.1 ^ ^ 0 0 0 0.01 1 forcesetup #6 Four tracer markers (<code>c9_u0</code> to <code>c9_u3</code>) are summoned 90 degrees apart in yaw and staggered across the vertical pitch range (-90 to +90) so they simultaneously trace four quadrants of the bottle.loop #8 Minecraft clamps entity pitch between -90 and +90 degrees. By splitting a 120-tick cycle into two 60-tick halves (+3 pitch per tick, then -3 pitch per tick) while rotating yaw at +4 degrees per tick, the markers sweep a 3:2 Lissajous figure-8 twist.loop #10 Using <code>rotated ~ 0 positioned ^ ^ ^3.4</code> moves the execution point out along the horizontal major circle of radius 3.4 blocks, then <code>rotated as @s</code> restores the 3D twist pitch so particles spawned at <code>^ ^ ^1.7</code> and <code>^ ^ ^-1.7</code> swap between the inside and outside after one revolution.loop #12 A second pair of orthogonal streams at <code>^ ^1.7 ^</code> and <code>^ ^-1.7 ^</code> completes the four-sided tubular cross-section in gold-to-lime transition particles, while <code>end_rod</code> sparkles highlight the self-intersecting ribs.


Recorded on our own test server: 55 frames at about 9.1 fps. Our image check saw: Colorful curving particle streams and a horizontal white particle ring hover and rotate above a crying obsidian pedestal with a sea lantern center at night.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the Klein bottle mesh follow a player as an arcane 4D aura, add a repeating command block running /execute at @p run tp @e[tag=c9_kb] ~ ~3 ~ without overriding the entities' rotation (use /execute as @e[tag=c9_kb] at @p run tp @s ~ ~3 ~ ~ ~).
/kill @e[tag=c9_kb]/fill ~-2 ~ ~-2 ~2 ~ ~2 minecraft:air/scoreboard objectives remove c9_t/scoreboard objectives remove c9_phaseMinecraft hard-clamps entity pitch between -90 degrees (straight up) and +90 degrees (straight down). Bouncing pitch smoothly between -90 and +90 over 120 ticks while yaw rotates continuously produces the exact cosine elevation wave needed for a figure-8 Klein bottle immersion.
No. The entire surface mesh uses only 6 entities total (5 invisible markers and 1 glowing crystal core), and all particles decay naturally within a couple of seconds.
▶Spinning DNA Torus Knot SupercoilMath CurvesExpert23 cmds
▶Oscillating String Theory Calabi-Yau ManifoldMath CurvesExpert23 cmds
▶Self-Inverting Klein Bottle Manifold FlowMath CurvesExpert21 cmds
▶Twisted Mobius Strip Infinity TrackMath CurvesHard23 cmds
▶Twisting Double-Pendulum Chaos Light PaintingMath CurvesHard24 cmds
▶Chaotic Lorenz Attractor Butterfly PlotterMath CurvesHard25 cmds