Self-Solving Sky Cube

Summon a giant floating puzzle cube above a gold and obsidian pedestal that smoothly twists its glowing colored slices and solves itself with magic particles.

Java EditionComplex Contraptions & CinematicsExpert25 commandsTested on a real 26.2 & 26.3 server
A glowing multicolored puzzle cube floats and twists above a gold and crying obsidian pedestal at night. Download the GIF Video & GIF © www.9minecraft.net

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

The Self-Solving Sky Cube brings a floating geometric puzzle into your Minecraft world using smooth block display entities. Suspended above a crying obsidian and gold pedestal, the giant cube autonomously twists its horizontal and vertical slices while surrounded by glowing particles.

Each slice glows with a distinct color—red, gold, diamond blue, emerald green, and amethyst purple—rotating cleanly around the cube's core before snapping back into a solved state with a celebratory burst of energy.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #tick c9_timer 0
  3. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:crying_obsidian
  4. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:gold_block
  5. /setblock ~ ~-1 ~ minecraft:beacon
  6. /summon minecraft:marker ~ ~4.5 ~ {Tags:["c9_cube","c9_core"]}
  7. /summon minecraft:block_display ~ ~4.5 ~ {Tags:["c9_cube","c9_inner"],Glowing:1b,glow_color_override:16755200,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]},block_state:{Name:"minecraft:sea_lantern"}}
  8. /summon minecraft:block_display ~ ~4.5 ~ {Tags:["c9_cube","c9_top"],Glowing:1b,glow_color_override:16724787,transformation:{translation:[-1.5f,0.55f,-1.5f],scale:[3.0f,0.9f,3.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:red_concrete"}}
  9. /summon minecraft:block_display ~ ~4.5 ~ {Tags:["c9_cube","c9_mid"],Glowing:1b,glow_color_override:16766720,transformation:{translation:[-1.5f,-0.45f,-1.5f],scale:[3.0f,0.9f,3.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:gold_block"}}
  10. /summon minecraft:block_display ~ ~4.5 ~ {Tags:["c9_cube","c9_bot"],Glowing:1b,glow_color_override:5636095,transformation:{translation:[-1.5f,-1.45f,-1.5f],scale:[3.0f,0.9f,3.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:diamond_block"}}

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

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 1 run summon minecraft:block_display ~ ~4.5 ~ {Tags:["c9_cube","c9_v1"],Glowing:1b,glow_color_override:5635925,transformation:{translation:[-1.55f,-1.55f,-0.45f],scale:[3.1f,3.1f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:emerald_block"}}
  3. /execute if score #tick c9_timer matches 1 run summon minecraft:block_display ~ ~4.5 ~ {Tags:["c9_cube","c9_v2"],Glowing:1b,glow_color_override:11141290,transformation:{translation:[-0.45f,-1.55f,-1.55f],scale:[0.9f,3.1f,3.1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:amethyst_block"}}
  4. /execute as @e[tag=c9_cube] at @s run tp @s ~ ~ ~ ~1.5 ~
  5. /execute if score #tick c9_timer matches 10 as @e[tag=c9_top] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[-1.5f,0.55f,1.5f],scale:[3.0f,0.9f,3.0f],left_rotation:[0f,0.7071f,0f,0.7071f],right_rotation:[0f,0f,0f,1f]}}
  6. /execute if score #tick c9_timer matches 28 as @e[tag=c9_bot] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[1.5f,-1.45f,-1.5f],scale:[3.0f,0.9f,3.0f],left_rotation:[0f,-0.7071f,0f,0.7071f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute if score #tick c9_timer matches 46 as @e[tag=c9_v1] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[1.55f,-1.55f,-0.45f],scale:[3.1f,3.1f,0.9f],left_rotation:[0f,0f,0.7071f,0.7071f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score #tick c9_timer matches 64 as @e[tag=c9_v2] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[-0.45f,1.55f,-1.55f],scale:[0.9f,3.1f,3.1f],left_rotation:[0.7071f,0f,0f,0.7071f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score #tick c9_timer matches 84 as @e[tag=c9_top] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[-1.5f,0.55f,-1.5f],scale:[3.0f,0.9f,3.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute if score #tick c9_timer matches 84 as @e[tag=c9_bot] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[-1.5f,-1.45f,-1.5f],scale:[3.0f,0.9f,3.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  11. /execute if score #tick c9_timer matches 84 as @e[tag=c9_v1] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[-1.55f,-1.55f,-0.45f],scale:[3.1f,3.1f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  12. /execute if score #tick c9_timer matches 84 as @e[tag=c9_v2] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{translation:[-0.45f,-1.55f,-1.55f],scale:[0.9f,3.1f,3.1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  13. /execute at @e[tag=c9_core] run particle minecraft:end_rod ~ ~ ~ 1.6 1.6 1.6 0.02 2 force
  14. /execute if score #tick c9_timer matches 100.. at @e[tag=c9_core] run particle minecraft:totem_of_undying ~ ~ ~ 1.2 1.2 1.2 0.35 15 force
  15. /execute if score #tick c9_timer matches 110.. run scoreboard players set #tick c9_timer 5

How it works

Frames from the test run

Self-Solving Sky Cube - frame 1Self-Solving Sky Cube - frame 2Self-Solving Sky Cube - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A floating cube made of glowing red, gold, diamond, emerald, and amethyst block slices rotates above a gold and crying 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. Stand at the center of a flat open area where you want the pedestal and floating cube to appear.
  2. Run each of the 10 setup commands in order to create the scoreboard timer, build the crying obsidian and gold pedestal, and summon the core and horizontal slices.
  3. Place a column or line of 14 command blocks nearby: set the first one to Repeating and Always Active, and chain the remaining 13 as Chain, Unconditional, and Always Active.
  4. Paste the loop commands in order into the command blocks. Notice how the vertical slices spawn on tick 1 and the cube immediately begins its twisting cycle.
  5. Watch the slices twist along the X, Y, and Z axes in sequence before snapping back together in a burst of green and gold particles.

Use it with real players

To let players trigger the cube solve sequence on demand instead of looping automatically, replace the last loop command with /execute if entity @a[distance=..8] if score #tick c9_timer matches 110.. run scoreboard players set #tick c9_timer 5 so the puzzle only scrambles and solves when someone approaches the pedestal.

Remove it again 3 commands

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

FAQ

Why do the block displays need a new translation when they rotate?

Block displays pivot around their minimum corner (0,0,0) rather than their center. When rotating 90 degrees, shifting the translation vector keeps the slice centered on the entity's coordinates.

Can I change the colors or blocks of the puzzle slices?

Yes! Change the block_state Name in the setup and first two loop commands to any block you like, and adjust glow_color_override to any decimal RGB color value.

Commands used

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

Similar creations

Join 9Minecraft News & Guides