Tesseract Dimensional Folding Gate

Build a glowing four-dimensional tesseract gate that continuously folds inside-out in mid-air while orbiting runes and warping particles into its core.

Java EditionMagic & SpellsExpertTested on a real 26.2 & 26.3 server
A glowing cyan and magenta hypercube floats in Minecraft at night, surrounded by runes and purple particles. Download the GIF

This creation suspends a glowing cyan and magenta hypercube four blocks in the air. Two nested stained-glass cubes continuously swap places—expanding outward, shrinking inward, and tumbling through one another around a spinning beacon core and crossed end-rod axes.

Four glowing enchanting-table runes orbit the structure along tilted rings while portal and color-shifting dust particles rush inward from the surrounding air into the center.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon item_display ~ ~4.2 ~ {Tags:["c9_cube_a"],item:{id:"minecraft:cyan_stained_glass",count:1},item_display:"none",Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[3.8f,3.8f,3.8f]}}
  3. /summon item_display ~ ~4.2 ~ {Tags:["c9_cube_b"],item:{id:"minecraft:magenta_stained_glass",count:1},item_display:"none",Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},interpolation_duration:20,transformation:{left_rotation:[0f,0.3827f,0f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}
  4. /summon item_display ~ ~4.2 ~ {Tags:["c9_cube_c","c9_core","c9_spin"],item:{id:"minecraft:beacon",count:1},item_display:"none",Glowing:1b,glow_color_override:11141375,brightness:{sky:15,block:15},teleport_duration:2,transformation:{left_rotation:[0.3827f,0f,0f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.1f,1.1f,1.1f]}}
  5. /summon item_display ~ ~4.2 ~ {Tags:["c9_strut_a","c9_spin"],item:{id:"minecraft:end_rod",count:1},item_display:"none",Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,transformation:{left_rotation:[0f,0f,0.3827f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.45f,6.2f,0.45f]}}
  6. /summon item_display ~ ~4.2 ~ {Tags:["c9_strut_b","c9_spin"],item:{id:"minecraft:end_rod",count:1},item_display:"none",Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},teleport_duration:2,transformation:{left_rotation:[0f,0f,-0.3827f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.45f,6.2f,0.45f]}}
  7. /summon text_display ~ ~4.2 ~ {Tags:["c9_rune"],Rotation:[0f,25f],billboard:"center",background:0,shadow:1b,see_through:0b,brightness:{sky:15,block:15},teleport_duration:2,text:{"text":"a x q","font":"minecraft:alt","color":"aqua","bold":true},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.2f,2.2f,2.2f]}}
  8. /summon text_display ~ ~4.2 ~ {Tags:["c9_rune"],Rotation:[90f,-25f],billboard:"center",background:0,shadow:1b,see_through:0b,brightness:{sky:15,block:15},teleport_duration:2,text:{"text":"m z k","font":"minecraft:alt","color":"light_purple","bold":true},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.2f,2.2f,2.2f]}}
  9. /summon text_display ~ ~4.2 ~ {Tags:["c9_rune"],Rotation:[180f,25f],billboard:"center",background:0,shadow:1b,see_through:0b,brightness:{sky:15,block:15},teleport_duration:2,text:{"text":"v r e","font":"minecraft:alt","color":"aqua","bold":true},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.2f,2.2f,2.2f]}}
  10. /summon text_display ~ ~4.2 ~ {Tags:["c9_rune"],Rotation:[270f,-25f],billboard:"center",background:0,shadow:1b,see_through:0b,brightness:{sky:15,block:15},teleport_duration:2,text:{"text":"t w f","font":"minecraft:alt","color":"light_purple","bold":true},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.2f,2.2f,2.2f]}}

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

  1. /scoreboard players add @e[tag=c9_core,limit=1] c9_t 1
  2. /execute if score @e[tag=c9_core,limit=1] c9_t matches 80.. run scoreboard players set @e[tag=c9_core,limit=1] c9_t 0
  3. /execute if score @e[tag=c9_core,limit=1] c9_t matches 0 run data merge entity @e[tag=c9_cube_a,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[3.8f,3.8f,3.8f]}}
  4. /execute if score @e[tag=c9_core,limit=1] c9_t matches 20 run data merge entity @e[tag=c9_cube_a,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.5f,0.5f,0.5f,0.5f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}
  5. /execute if score @e[tag=c9_core,limit=1] c9_t matches 40 run data merge entity @e[tag=c9_cube_a,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.7071f,0f,0.7071f,0f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[3.8f,3.8f,3.8f]}}
  6. /execute if score @e[tag=c9_core,limit=1] c9_t matches 60 run data merge entity @e[tag=c9_cube_a,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.5f,-0.5f,0.5f,0.5f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}
  7. /execute if score @e[tag=c9_core,limit=1] c9_t matches 0 run data merge entity @e[tag=c9_cube_b,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0f,0.3827f,0f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}
  8. /execute if score @e[tag=c9_core,limit=1] c9_t matches 20 run data merge entity @e[tag=c9_cube_b,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.5f,-0.5f,-0.5f,0.5f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[3.8f,3.8f,3.8f]}}
  9. /execute if score @e[tag=c9_core,limit=1] c9_t matches 40 run data merge entity @e[tag=c9_cube_b,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0f,-0.9239f,0f,0.3827f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}
  10. /execute if score @e[tag=c9_core,limit=1] c9_t matches 60 run data merge entity @e[tag=c9_cube_b,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[-0.5f,-0.5f,0.5f,0.5f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[3.8f,3.8f,3.8f]}}
  11. /execute as @e[tag=c9_spin] at @s run tp @s ~ ~ ~ ~4 ~
  12. /execute as @e[tag=c9_rune] at @e[tag=c9_core,limit=1] rotated as @s run tp @s ^ ^ ^3.4 ~4 ~
  13. /particle portal ~ ~4.2 ~ 3.5 2.4 3.5 1.8 40 force
  14. /particle dust_color_transition{from_color:[0.0,1.0,1.0],to_color:[1.0,0.0,1.0],scale:1.5} ~ ~4.2 ~ 2.6 2.0 2.6 0.05 20 force

How it works

Frames from the test run

Tesseract Dimensional Folding Gate - frame 1Tesseract Dimensional Folding Gate - frame 2Tesseract Dimensional Folding Gate - frame 3

Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: Two nested glowing cyan and magenta stained-glass cubes rotate and swap sizes in mid-air around a spinning beacon core with crossed end-rod axes, surrounded by orbiting neon runes and blue-purple particles.

Build it in your world

  1. Stand in an open flat area with at least 6 blocks of clear space above and around you.
  2. Run each of the 10 setup commands once in chat or from impulse command blocks at the center spot.
  3. Place 14 repeating, always-active command blocks nearby and paste one loop command into each.
  4. If your command blocks are not directly at the center spot, wrap the loop commands in execute positioned <x> <y> <z> run ... pointing to where you ran the setup commands.
  5. Switch the time to night with /time set night to see the glowing outlines, runes, and warping particles clearly.

Use it with real players

To make the gate act as a functional portal for players, add one more repeating command block running /execute at @e[tag=c9_core,limit=1] positioned ~ ~-3 ~ run effect give @a[distance=..3] minecraft:levitation 2 1 true so anyone stepping beneath the tesseract is lifted into its core, or replace the effect with a /tp to a destination pad.

Remove it again 6 commands

  1. /kill @e[tag=c9_cube_a]
  2. /kill @e[tag=c9_cube_b]
  3. /kill @e[tag=c9_core]
  4. /kill @e[tag=c9_spin]
  5. /kill @e[tag=c9_rune]
  6. /scoreboard objectives remove c9_t

FAQ

Why do the stained-glass cubes pass through each other smoothly instead of snapping?

Each cube is an item_display with interpolation_duration:20. Whenever the loop triggers a new phase at ticks 0, 20, 40, and 60, it sets start_interpolation:0 so the client blends both scale and rotation over a full second.

Can I change the colors of the tesseract?

Yes. Replace minecraft:cyan_stained_glass and minecraft:magenta_stained_glass in the setup commands with any other stained glass colors, and adjust the decimal RGB values in glow_color_override and dust_color_transition to match.

Commands used

/data/execute/particle/scoreboard/summon/tp

More magic & spells