Build an oversized glowing 2x2 Rubik's Cube that hovers above a dark prismarine pedestal and smoothly rotates its faces by itself using display entities.
SimulationsTechnologyRainbowCyanDecorationLearningServer LobbyBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds21+ commands
Above a glowing dark prismarine and sea lantern pedestal floats an oversized 2x2 Rubik's Cube built from eight colorful glowing block display entities. All eight cubies share a single central pivot point at the heart of the puzzle and use translation offsets to lock together into a solid, cohesive 3x3-block cube.
Using smooth transformation interpolation and exact quaternion rotation keyframes, the upper layer, front layer, and entire cube twist through crisp 90-degree turns automatically without ever drifting out of alignment, surrounded by glowing dust and enchantment particles.
/scoreboard objectives add c9_t dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 dark_prismarine/setblock ~ ~ ~ sea_lantern/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c1"],Glowing:1b,glow_color_override:16720418,transformation:{translation:[-1.45f,-1.45f,-1.45f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:red_concrete"}}/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c2"],Glowing:1b,glow_color_override:16750848,transformation:{translation:[0.05f,-1.45f,-1.45f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:orange_concrete"}}/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c3"],Glowing:1b,glow_color_override:16770560,transformation:{translation:[-1.45f,-1.45f,0.05f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:yellow_concrete"}}/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c4"],Glowing:1b,glow_color_override:5635925,transformation:{translation:[0.05f,-1.45f,0.05f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:lime_concrete"}}/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c5"],Glowing:1b,glow_color_override:5636095,transformation:{translation:[-1.45f,0.05f,-1.45f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:cyan_concrete"}}/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c6"],Glowing:1b,glow_color_override:3368703,transformation:{translation:[0.05f,0.05f,-1.45f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:blue_concrete"}}/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c7"],Glowing:1b,glow_color_override:16733695,transformation:{translation:[-1.45f,0.05f,0.05f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:magenta_concrete"}}/summon block_display ~ ~3.5 ~ {Tags:["c9_c","c9_c8"],Glowing:1b,glow_color_override:16777215,transformation:{translation:[0.05f,0.05f,0.05f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:white_concrete"}}/scoreboard players add #t c9_t 1/execute if score #t c9_t matches 100.. run scoreboard players set #t c9_t 0/execute if score #t c9_t matches 5 as @e[tag=c9_c] if entity @s[tag=!c9_c1,tag=!c9_c2,tag=!c9_c3,tag=!c9_c4] run data merge entity @s {start_interpolation:0,interpolation_duration:16,transformation:{left_rotation:[0f,0.7071f,0f,0.7071f]}}/execute if score #t c9_t matches 30 as @e[tag=c9_c] if entity @s[tag=!c9_c1,tag=!c9_c2,tag=!c9_c6,tag=!c9_c8] run data merge entity @s {start_interpolation:0,interpolation_duration:16,transformation:{right_rotation:[0f,0f,0.7071f,0.7071f]}}/execute if score #t c9_t matches 55 as @e[tag=c9_c] if entity @s[tag=!c9_c1,tag=!c9_c2,tag=!c9_c6,tag=!c9_c8] run data merge entity @s {start_interpolation:0,interpolation_duration:16,transformation:{right_rotation:[0f,0f,0f,1f]}}/execute if score #t c9_t matches 80 as @e[tag=c9_c] run data merge entity @s {start_interpolation:0,interpolation_duration:16,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #t c9_t matches 5 run playsound block.piston.extend master @a ~ ~3.5 ~ 0.7 1.4/execute if score #t c9_t matches 30 run playsound block.piston.contract master @a ~ ~3.5 ~ 0.7 1.5/execute if score #t c9_t matches 55 run playsound block.piston.extend master @a ~ ~3.5 ~ 0.7 1.6/execute if score #t c9_t matches 80 run playsound block.beacon.activate master @a ~ ~3.5 ~ 0.8 1.8/execute if score #t c9_t matches 21 run particle end_rod ~ ~4.2 ~ 1.1 0.2 1.1 0.04 16/execute if score #t c9_t matches 46 run particle end_rod ~ ~3.5 ~1.1 0.9 0.9 0.2 0.04 16/execute if score #t c9_t matches 96 run particle totem_of_undying ~ ~3.5 ~ 1.2 1.2 1.2 0.15 25/particle dust{color:[0.2,0.95,1.0],scale:1.3} ~ ~2.0 ~ 1.1 0.2 1.1 0 2setup #4 Every cubie is summoned at the exact same central pivot coordinate (~ ~3.5 ~) with a 1.4x scale and a translation offset from the center, so applying a rotation matrix orbits the cubie cleanly around the cube's core without ever drifting apart.loop #3 At tick 5, the four top-layer cubies (c9_c5 through c9_c8) interpolate their left_rotation to a 90-degree Y-axis quaternion over 16 ticks, smoothly twisting the upper face.loop #4 At tick 30, the four cubies now occupying the front face interpolate their right_rotation to a 90-degree Z-axis quaternion, rotating perpendicular to the first turn.loop #5 At tick 55 and tick 80, the Rubik's Cube reverses the front and top face rotations back to the solved identity state and triggers a celebratory particle burst.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A 2x2 cube of glowing colored blocks floats above a dark prismarine and sea lantern pedestal, though the cubies are single-colored blocks and translate disjointedly rather than rotating like a solved Rubik's cube.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
/kill @e[tag=c9_c]/scoreboard objectives remove c9_t/fill ~-2 ~-1 ~-2 ~2 ~ ~2 air/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_blockInstead of using relative teleport steps that accumulate rounding errors, all eight block displays stay anchored at the exact same center point (~ ~3.5 ~) and rotate around that pivot using exact quaternion keyframes in their transformation data.
Yes. Increase or decrease the interpolation_duration value (currently 16 ticks) inside the data merge commands in the loop to make each 90-degree twist slower or faster.
/data/execute/fill/particle/playsound/scoreboard/setblock/summon
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds
▶Holographic DNA Double-Helix SplicerSimulationsHard24 cmds
▶Magnetic Ferrofluid Audio VisualizerSimulationsHard24 cmds
▶Microscopic Bacteriophage Viral InjectionSimulationsHard24 cmds
▶Monumental Dam Spillway Floodgate ReleaseSimulationsHard24 cmds