Floating Klein Bottle Infinite Light Loop

Summon a rotating 4D Klein bottle sculpture made of glowing cyan and magenta glass rings, complete with an animated figure-eight light loop and fireworks.

Java EditionFireworks & Light ShowsExpert24 commandsTested on a real 26.2 & 26.3 server
A glowing magenta and cyan glass bottle sculpture rotates above a sea lantern amidst colorful particles at night. Download the GIF Video & GIF © www.9minecraft.net

Neon GlowTechnologyMysticSpaceCyanPinkPurpleDecorationServer LobbyLearningBlock displaysFireworksSoundsRotation math21+ commands

The Floating Klein Bottle Infinite Light Loop constructs a recognizable non-orientable topological vessel above an obsidian pedestal using 54 choreographed block_display entities. Unlike standard blocks, these displays use lowercase Tags and staggered yaw rotations so the cyan outer bulb, sea-lantern core, and magenta neck sweep smoothly around a shared central axis.

As the glass vessel turns, a pair of orbital plasma emitters trace a continuous figure-eight infinity curve from the base up through the self-intersecting neck, punctuated by multi-color firework bursts at the core.

1. Setup - type these once 8 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #tick c9_t 0
  3. /scoreboard players set #build c9_t 0
  4. /summon block_display ~ ~0.5 ~ {Tags:["c9_kb","c9_ped"],Glowing:1b,glow_color_override:5636095,brightness:{sky:15,block:15},block_state:{Name:"minecraft: crying_obsidian"},transformation:{translation:[-1.8f,-0.5f,-1.8f],scale:[3.6f,0.6f,3.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /summon block_display ~ ~1.1 ~ {Tags:["c9_kb","c9_ped"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-1.1f,-0.2f,-1.1f],scale:[2.2f,0.3f,2.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon marker ~ ~5.0 ~ {Tags:["c9_kb","c9_orb1"]}
  7. /summon marker ~ ~8.2 ~ {Tags:["c9_kb","c9_orb2"]}
  8. /playsound minecraft:block.beacon.activate ambient @a ~ ~6 ~ 2.0 1.2

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

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #build c9_t matches ..17 run scoreboard players add #build c9_t 1
  3. /execute if score #build c9_t matches 1..12 run summon block_display ~ ~4.5 ~ {Tags:["c9_kb","c9_rot"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{translation:[-2.2f,-1.8f,-0.35f],scale:[4.4f,3.6f,0.7f],left_rotation:[0f,0f,0.195f,0.981f],right_rotation:[0f,0f,0f,1f]}}
  4. /execute if score #build c9_t matches 1..12 run summon block_display ~ ~6.8 ~ {Tags:["c9_kb","c9_rot"],Glowing:1b,glow_color_override:11272191,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-1.1f,-1.3f,-0.3f],scale:[2.2f,2.6f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /execute if score #build c9_t matches 1..12 run summon block_display ~ ~9.2 ~ {Tags:["c9_kb","c9_rot"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},block_state:{Name:"minecraft:magenta_stained_glass"},transformation:{translation:[-1.6f,-1.0f,-0.25f],scale:[3.2f,2.0f,0.5f],left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f]}}
  6. /execute if score #build c9_t matches 1..12 as @e[tag=c9_rot] at @s run tp @s ~ ~ ~ ~15 ~
  7. /execute if score #build c9_t matches 13..18 run summon block_display ~ ~6.8 ~ {Tags:["c9_kb","c9_loop"],Glowing:1b,glow_color_override:16733695,brightness:{sky:15,block:15},block_state:{Name:"minecraft:magenta_stained_glass"},transformation:{translation:[1.3f,-2.7f,-0.35f],scale:[0.85f,5.4f,0.7f],left_rotation:[0f,0f,0.131f,0.991f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score #build c9_t matches 13..18 run summon block_display ~ ~4.5 ~ {Tags:["c9_kb","c9_loop"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:amethyst_block"},transformation:{translation:[-0.6f,-2.2f,-0.6f],scale:[1.2f,4.4f,1.2f],left_rotation:[0f,0f,-0.174f,0.985f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score #build c9_t matches 13..18 as @e[tag=c9_loop] at @s run tp @s ~ ~ ~ ~60 ~
  10. /execute as @e[tag=c9_kb,tag=!c9_ped] at @s run tp @s ~ ~ ~ ~2.5 ~
  11. /execute as @e[tag=c9_orb1] at @s run tp @s ~ ~ ~ ~14 ~10
  12. /execute at @e[tag=c9_orb1] positioned ^ ^ ^2.8 run particle minecraft:dust_color_transition{from_color:[0.0,1.0,1.0],to_color:[1.0,0.0,1.0],scale:2.0} ~ ~ ~ 0.15 0.15 0.15 0 6 force
  13. /execute as @e[tag=c9_orb2] at @s run tp @s ~ ~ ~ ~-16 ~-12
  14. /execute at @e[tag=c9_orb2] positioned ^ ^ ^2.2 run particle minecraft:end_rod ~ ~ ~ 0.12 0.12 0.12 0.03 5 force
  15. /execute if score #tick c9_t matches 90.. run scoreboard players set #tick c9_t 0
  16. /execute if score #tick c9_t matches 85 run summon firework_rocket ~ ~6.8 ~ {Life:0,LifeTime:0,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"large_ball",has_twinkle:1b,has_trail:1b,colors:[I;65535,16711935,5636095],fade_colors:[I;16777215]}]}}}}

How it works

Frames from the test run

Floating Klein Bottle Infinite Light Loop - frame 1Floating Klein Bottle Infinite Light Loop - frame 2Floating Klein Bottle Infinite Light Loop - frame 3

Recorded on our own test server: 56 frames at about 9.2 fps. Our image check saw: A glowing magenta and cyan glass bottle-like structure built from angled display entities rotates above a sea lantern base while surrounded by colorful particles.

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. Create a flat stage and stand at the exact centre block where you want the Klein bottle pedestal to appear.
  2. Run each command from the Setup list once in chat (or place them in impulse/chain command blocks triggered by a button).
  3. Place 14 repeating command blocks (or 1 repeating followed by 13 chain command blocks, all set to Always Active) near the stage.
  4. Paste the Loop commands in order into those blocks, making sure they execute positioned at the same centre coordinate.
  5. Watch the 18-tick assembly sequence build the cyan bulb, sea-lantern core, and magenta neck loop before settling into its continuous glow and firework cycle.

Use it with real players

To bind the Klein Bottle light loop above a player's head or a magic staff pedestal, replace the fixed coordinate origin in the loop with /execute at @p positioned ~ ~2 ~ run ... after building the displays, and teleport the c9_kb entities relative to the player each tick.

Remove it again 2 commands

  1. /kill @e[tag=c9_kb]
  2. /scoreboard objectives remove c9_t

FAQ

Why did the previous version fail to rotate or form a bottle shape?

In Minecraft Java Edition, the entity NBT tag list is case-sensitive and must be written as Tags with a capital T. Using lowercase tags prevented @e[tag=...] selectors from rotating the ribs into a 3D bottle.

Will the repeating summon commands lag my server?

No. The #build scoreboard counter stops at 18 ticks, capping the sculpture at exactly 50 block_display entities and 2 markers.

Commands used

/execute/particle/playsound/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides