Watch a glowing four-dimensional hypercube constructed from block displays and end rods turn itself inside-out in mid-air using smooth matrix transformations.
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.
/scoreboard objectives add c9_tick dummy/scoreboard players set #t c9_tick 0/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:obsidian/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:crying_obsidian/setblock ~ ~-1 ~ minecraft:beacon/summon minecraft:marker ~ ~5 ~ {Tags:["c9_tes","c9_core"],Rotation:[0.0f,0.0f]}/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]}}/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]}}/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]}}/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]}}/scoreboard players add #t c9_tick 1/execute if score #t c9_tick matches 80.. run scoreboard players set #t c9_tick 0/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~4.5 ~2.25/execute as @e[tag=c9_tes,tag=!c9_core] at @e[tag=c9_core,limit=1] run tp @s ~ ~ ~ ~ ~/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]}}/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]}}/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]}}/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]}}/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]}}/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]}}/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]}}/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]}}/execute at @e[tag=c9_core] run particle minecraft:end_rod ^ ^ ^2.1 0.05 0.05 0.05 0.01 1 force/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 forcesetup #7 Summons the outer 3D cell of the tesseract using a glowing cyan stained-glass block display. Its translation is set to exactly negative half of its scale (-1.6 for a 3.2 scale) so that it scales and rotates cleanly around its true center point.setup #9 Creates the diagonal 4D vertex connector struts out of stretched end-rod block displays tilted with a quaternion left_rotation.loop #3 Spins the invisible core marker by 4.5 degrees of yaw and 2.25 degrees of pitch every tick. The next command locks all block displays to this marker's rotation, giving the whole projection a smooth tumbling motion.loop #5 Every 20 ticks (1 second), the four phase commands update the transformation matrix of Cell A and Cell B. By flattening one axis while rotating the quaternion, the outer cube folds through the fourth dimension to become the inner cube while the inner cube expands outward.


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.
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.
/kill @e[tag=c9_tes]/scoreboard objectives remove c9_tick/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:grass_blockBlock 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.
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.
▶The Impossible Circle: Seamless Block Display Rings & SphereAnimated BlocksMedium19 cmds
▶Luminous Tesseract CoreAnimated BlocksMedium24 cmds
▶The Levitating Geometric AnomalyAnimated BlocksMedium24 cmds
▶Floating Polyhedral Origami MorphAnimated BlocksExpert21 cmds
▶Holographic Chess Endgame Battle RoyalAnimated BlocksHard24 cmds
▶Holographic Solar Flare MagnetosphereAnimated BlocksExpert24 cmds