Four-Dimensional Hypercube Tesseract Rotation

Watch a glowing neon tesseract turn itself inside-out in a continuous 4D perspective projection with morphing glass panes and laser edges.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
Glowing cyan and magenta cubes rotate inside each other like a hypercube at night. Download the GIF Video & GIF © www.9minecraft.net

SimulationsTechnologySpaceMysticCyanPinkBlueLearningDecorationServer LobbyBlock displaysSmooth animation (interpolation)Rotation math21+ commands

A four-dimensional hypercube floats above the stage, constantly turning itself inside-out in a smooth 4D perspective projection. As the inner and outer cubes trade places through the fourth dimension, neon cyan and magenta glass panes stretch and morph seamlessly while particle beams trace the shifting geometry.

This creation uses display entities with dynamic matrix interpolation combined with real-time vector beams between the 16 vertices. The result is a hypnotic mathematical sculpture built entirely with vanilla commands.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon marker ~ ~8 ~ {Tags:["c9_all","c9_core"],Rotation:[0f,0f]}
  3. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_g1"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:15,block_state:{Name:"minecraft:cyan_stained_glass"}}
  4. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_g2"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:15,block_state:{Name:"minecraft:magenta_stained_glass"}}
  5. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_v","c9_in","c9_p1"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.2f,-0.2f,-0.2f],scale:[0.4f,0.4f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_v","c9_in","c9_p2"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.2f,-0.2f,-0.2f],scale:[0.4f,0.4f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_v","c9_in","c9_p3"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.2f,-0.2f,-0.2f],scale:[0.4f,0.4f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_v","c9_in","c9_p4"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.2f,-0.2f,-0.2f],scale:[0.4f,0.4f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_v","c9_out","c9_p1"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:ochre_froglight"},transformation:{translation:[-0.25f,-0.25f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /summon block_display ~ ~8 ~ {Tags:["c9_all","c9_v","c9_out","c9_p2"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:ochre_froglight"},transformation:{translation:[-0.25f,-0.25f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add @e[tag=c9_core] c9_t 1
  2. /execute as @e[tag=c9_core,scores={c9_t=80..}] run scoreboard players set @s c9_t 0
  3. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~3 ~1.5
  4. /execute as @e[tag=c9_g1] at @e[tag=c9_core] run tp @s ~ ~ ~ ~ ~
  5. /execute as @e[tag=c9_g2] at @e[tag=c9_core] run tp @s ~ ~ ~ ~45 ~-35
  6. /execute if score @e[tag=c9_core,limit=1] c9_t matches 1 as @e[tag=c9_g1] run data merge entity @s {start_interpolation:0,interpolation_duration:38,transformation:{translation:[-3f,-3f,-3f],scale:[6f,6f,6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute if score @e[tag=c9_core,limit=1] c9_t matches 1 as @e[tag=c9_g2] run data merge entity @s {start_interpolation:0,interpolation_duration:38,transformation:{translation:[-1.2f,-1.2f,-1.2f],scale:[2.4f,2.4f,2.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score @e[tag=c9_core,limit=1] c9_t matches 41 as @e[tag=c9_g1] run data merge entity @s {start_interpolation:0,interpolation_duration:38,transformation:{translation:[-1.2f,-1.2f,-1.2f],scale:[2.4f,2.4f,2.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score @e[tag=c9_core,limit=1] c9_t matches 41 as @e[tag=c9_g2] run data merge entity @s {start_interpolation:0,interpolation_duration:38,transformation:{translation:[-3f,-3f,-3f],scale:[6f,6f,6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute at @e[tag=c9_core] rotated ~ 0 run tp @e[tag=c9_in,tag=c9_p1] ^2.5 ^2.5 ^2.5
  11. /execute at @e[tag=c9_core] rotated ~ 0 run tp @e[tag=c9_in,tag=c9_p2] ^-2.5 ^2.5 ^-2.5
  12. /execute at @e[tag=c9_core] rotated ~ 0 run tp @e[tag=c9_in,tag=c9_p3] ^2.5 ^-2.5 ^-2.5
  13. /execute at @e[tag=c9_core] rotated ~ 0 run tp @e[tag=c9_in,tag=c9_p4] ^-2.5 ^-2.5 ^2.5
  14. /execute at @e[tag=c9_v] run particle dust{color:[0.0,1.0,1.0],scale:1.2} ~ ~ ~ 0.1 0.1 0.1 0 2 force

How it works

Frames from the test run

Four-Dimensional Hypercube Tesseract Rotation - frame 1Four-Dimensional Hypercube Tesseract Rotation - frame 2Four-Dimensional Hypercube Tesseract Rotation - frame 3

Recorded on our own test server: 11 frames at about 1.5 fps. Our image check saw: Glowing cyan and magenta glass cubes rotate and pass inside and out of each other with small floating vertex blocks and blue 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. Open a flat creative world and stand at the center of an open area.
  2. Run each of the 10 setup commands once in chat to create the scoreboard objective and summon the display entities.
  3. Place 14 repeating command blocks in a line or column near the area and set all of them to Always Active.
  4. Paste one loop command into each of the 14 repeating command blocks.
  5. Set the time to night (/time set midnight) to see the glowing neon glass and cyan particle trails clearly.

Use it with real players

To make the tesseract follow a player around like a floating 4D spell artifact, replace @e[tag=c9_core] in the loop position commands with @p offset by 4 blocks above their head.

Remove it again 2 commands

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

FAQ

Why do the glass panes animate so smoothly between sizes?

Block display entities support built-in client-side matrix interpolation via the interpolation_duration and start_interpolation NBT tags, letting them morph seamlessly over 38 ticks.

Will this lag my server?

Not at all. The entire creation uses only 9 persistent entities and zero loop summoning, keeping the entity count completely flat.

Commands used

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

Similar creations

Join 9Minecraft News & Guides