Tesseract 4D Hypercube Projection

Watch a glowing four-dimensional hypercube constructed from block displays and end rods turn itself inside-out in mid-air using smooth matrix transformations.

Java EditionHolograms & Display EntitiesExpert24 commandsTested on a real 26.2 & 26.3 server
Nested glass cubes rotating like a 4D hypercube Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksSpaceTechnologyMysticCyanPinkBlackDecorationServer LobbyLearningBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

Bringing four-dimensional geometry into a three-dimensional block game creates a mesmerizing optical illusion. This command creation projects a rotating 4D Tesseract above a dark obsidian pedestal. Using glowing cyan and magenta stained-glass block displays paired with end-rod connectors and sea-lantern vertices, the inner and outer cubes continuously trade places.

Rather than teleporting blocks step-by-step, the hypercube uses Minecraft's display entity transformation matrices and client-side interpolation. Every second, the inner and outer 3D cells invert their scale, translation, and 4D perspective skew while dual-axis rotations keep the entire structure spinning smoothly through hyperspace.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard players set #t c9_tick 0
  3. /fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:obsidian
  4. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:crying_obsidian
  5. /setblock ~ ~-1 ~ minecraft:beacon
  6. /summon minecraft:marker ~ ~5 ~ {Tags:["c9_tes","c9_core"],Rotation:[0.0f,0.0f]}
  7. /summon minecraft:block_display ~ ~5 ~ {Tags:["c9_tes","c9_cell_a"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},interpolation_duration:20,teleport_duration:2,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[3.2f,3.2f,3.2f],translation:[-1.6f,-1.6f,-1.6f]}}
  8. /summon minecraft:block_display ~ ~5 ~ {Tags:["c9_tes","c9_cell_b"],Glowing:1b,glow_color_override:16711935,brightness:{sky:15,block:15},interpolation_duration:20,teleport_duration:2,block_state:{Name:"minecraft:magenta_stained_glass"},transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[1.2f,1.2f,1.2f],translation:[-0.6f,-0.6f,-0.6f]}}
  9. /summon minecraft:block_display ~ ~5 ~ {Tags:["c9_tes","c9_axis1"],Glowing:1b,glow_color_override:16777215,brightness:{sky:15,block:15},interpolation_duration:20,teleport_duration:2,block_state:{Name:"minecraft:end_rod",Properties:{facing:"up"}},transformation:{left_rotation:[0.35f,0.35f,0.15f,0.85f],right_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[0.35f,5.2f,0.35f],translation:[-0.17f,-2.6f,-0.17f]}}
  10. /summon minecraft:block_display ~ ~5 ~ {Tags:["c9_tes","c9_axis2"],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},interpolation_duration:20,teleport_duration:2,block_state:{Name:"minecraft:end_rod",Properties:{facing:"up"}},transformation:{left_rotation:[-0.35f,0.35f,-0.15f,0.85f],right_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[0.35f,5.2f,0.35f],translation:[-0.17f,-2.6f,-0.17f]}}

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

  1. /scoreboard players add #t c9_tick 1
  2. /execute if score #t c9_tick matches 80.. run scoreboard players set #t c9_tick 0
  3. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~4.5 ~2.25
  4. /execute as @e[tag=c9_tes,tag=!c9_core] at @e[tag=c9_core,limit=1] run tp @s ~ ~ ~ ~ ~
  5. /execute if score #t c9_tick matches 1 as @e[tag=c9_cell_a] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.382f,0.0f,0.0f,0.924f],scale:[2.4f,2.4f,1.4f],translation:[-1.2f,-1.2f,-0.7f]}}
  6. /execute if score #t c9_tick matches 1 as @e[tag=c9_cell_b] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.0f,0.382f,0.0f,0.924f],scale:[1.4f,2.4f,2.4f],translation:[-0.7f,-1.2f,-1.2f]}}
  7. /execute if score #t c9_tick matches 21 as @e[tag=c9_cell_a] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.707f,0.0f,0.0f,0.707f],scale:[1.1f,1.1f,1.1f],translation:[-0.55f,-0.55f,-0.55f]}}
  8. /execute if score #t c9_tick matches 21 as @e[tag=c9_cell_b] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.0f,0.707f,0.0f,0.707f],scale:[3.4f,3.4f,3.4f],translation:[-1.7f,-1.7f,-1.7f]}}
  9. /execute if score #t c9_tick matches 41 as @e[tag=c9_cell_a] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.382f,0.0f,0.0f,-0.924f],scale:[1.4f,2.4f,2.4f],translation:[-0.7f,-1.2f,-1.2f]}}
  10. /execute if score #t c9_tick matches 41 as @e[tag=c9_cell_b] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.0f,0.382f,0.0f,-0.924f],scale:[2.4f,2.4f,1.4f],translation:[-1.2f,-1.2f,-0.7f]}}
  11. /execute if score #t c9_tick matches 61 as @e[tag=c9_cell_a] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[3.4f,3.4f,3.4f],translation:[-1.7f,-1.7f,-1.7f]}}
  12. /execute if score #t c9_tick matches 61 as @e[tag=c9_cell_b] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[1.1f,1.1f,1.1f],translation:[-0.55f,-0.55f,-0.55f]}}
  13. /execute at @e[tag=c9_core] run particle minecraft:end_rod ^ ^ ^2.1 0.05 0.05 0.05 0.01 1 force
  14. /execute at @e[tag=c9_core] run particle minecraft:dust{color:[0.1,0.9,1.0],scale:1.4} ~ ~ ~ 1.3 1.3 1.3 0 3 force

How it works

Frames from the test run

Tesseract 4D Hypercube Projection - frame 1Tesseract 4D Hypercube Projection - frame 2Tesseract 4D Hypercube Projection - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: Nested glass cubes rotate in and out of each other above an obsidian base.

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. Make sure you are in Creative mode with cheats enabled in Minecraft Java Edition 26.x.
  2. Stand at the center of your build area and run each command from the Setup list in chat once to build the obsidian pedestal and summon the tesseract display entities.
  3. Place 14 Repeating Command Blocks set to Always Active (or chain 13 Chain Command Blocks to 1 Repeating Command Block) nearby.
  4. Paste one command from the Loop list into each command block in order.
  5. Watch the hypercube spin and turn itself inside-out above the pedestal. Switch the time to night for the best glowing contrast.

Use it with real players

To make the tesseract orbit a player as a cosmic artifact instead of floating above the pedestal, replace the third loop command with /execute as @e[tag=c9_core] at @p run tp @s ~ ~3.5 ~ ~4.5 ~2.25. The entire 4D hypercube will smoothly follow above your head as you walk.

Remove it again 3 commands

  1. /kill @e[tag=c9_tes]
  2. /scoreboard objectives remove c9_tick
  3. /fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:grass_block

FAQ

Why do the cubes stay centered when they grow and shrink?

Block displays normally scale from their bottom-north-west corner. By setting the translation vector in the transformation matrix to negative half of the scale vector on every keyframe, the cube stays locked to its center pivot.

Does this creation cause lag if left running?

No. It only uses five persistent entities in total (one marker and four block displays), and all smooth scaling and rotation animations are interpolated directly on the client.

Commands used

/data/execute/fill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides