Self-Solving Particle Puzzle Cube

Summon a giant glowing 2x2x2 Rubik's cube woven entirely from vibrant dust particles that rotates its layers and solves itself in mid-air.

Java EditionParticle ArtExpert24 commandsTested on a real 26.2 & 26.3 server
A giant, colorful 2x2x2 puzzle cube made of glowing dust particles floats and rotates at night. Download the GIF Video & GIF © www.9minecraft.net

Shapes & GeometryTechnologyRainbowRedBlueDecorationServer LobbyLearningRotation math21+ commands

The Self-Solving Particle Puzzle Cube suspends a giant, glowing 2x2x2 puzzle cube in mid-air above your world. Instead of using solid blocks, each of the 8 sub-cubes is woven from dense, colorful dust particles that leave radiant trails as they move.

Controlled by invisible marker pivots and a scoreboard clock, the cube automatically twists its top and bottom layers in opposite directions before reversing the moves to solve itself in a seamless loop.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /summon marker ~ ~5.5 ~ {Tags:["c9_cube","c9_core"]}
  3. /summon marker ~-1.6 ~3.9 ~-1.6 {Tags:["c9_cube","c9_node"]}
  4. /summon marker ~1.6 ~3.9 ~-1.6 {Tags:["c9_cube","c9_node"]}
  5. /summon marker ~-1.6 ~7.1 ~-1.6 {Tags:["c9_cube","c9_node"]}
  6. /summon marker ~1.6 ~7.1 ~-1.6 {Tags:["c9_cube","c9_node"]}
  7. /summon marker ~-1.6 ~3.9 ~1.6 {Tags:["c9_cube","c9_node"]}
  8. /summon marker ~1.6 ~3.9 ~1.6 {Tags:["c9_cube","c9_node"]}
  9. /summon marker ~-1.6 ~7.1 ~1.6 {Tags:["c9_cube","c9_node"]}
  10. /summon marker ~1.6 ~7.1 ~1.6 {Tags:["c9_cube","c9_node"]}

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

  1. /scoreboard players add @e[tag=c9_core] c9_tick 1
  2. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 111.. run scoreboard players set @e[tag=c9_core] c9_tick 1
  3. /execute at @e[tag=c9_core] run particle end_rod ~ ~ ~ 2.2 2.2 2.2 0.02 4 force
  4. /execute as @e[tag=c9_node] at @s rotated ~ 0 run particle dust{color:[0.15,0.15,0.15],scale:2.5} ~ ~ ~ 0.5 0.5 0.5 0 8 force
  5. /execute as @e[tag=c9_node] at @s rotated ~ 0 run particle dust{color:[1.0,0.15,0.15],scale:2.2} ^ ^ ^1.35 0.45 0.45 0.05 0 10 force
  6. /execute as @e[tag=c9_node] at @s rotated ~ 0 run particle dust{color:[1.0,0.55,0.0],scale:2.2} ^ ^ ^-1.35 0.45 0.45 0.05 0 10 force
  7. /execute as @e[tag=c9_node] at @s rotated ~ 0 run particle dust{color:[0.1,0.45,1.0],scale:2.2} ^1.35 ^ ^ 0.05 0.45 0.45 0 10 force
  8. /execute as @e[tag=c9_node] at @s rotated ~ 0 run particle dust{color:[0.15,0.9,0.25],scale:2.2} ^-1.35 ^ ^ 0.05 0.45 0.45 0 10 force
  9. /execute as @e[tag=c9_node] at @s rotated ~ 0 run particle dust{color:[1.0,0.95,0.1],scale:2.2} ^ ^1.35 ^ 0.45 0.05 0.45 0 10 force
  10. /execute as @e[tag=c9_node] at @s rotated ~ 0 run particle dust{color:[0.95,0.95,1.0],scale:2.2} ^ ^-1.35 ^ 0.45 0.05 0.45 0 10 force
  11. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 1..18 positioned ~ ~7.1 ~ as @e[tag=c9_node,distance=..2.6] at @s facing ~ ~7.1 ~ rotated ~ 0 run tp @s ^-0.1976 ^ ^0.0086 ~5 ~
  12. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 26..43 positioned ~ ~3.9 ~ as @e[tag=c9_node,distance=..2.6] at @s facing ~ ~3.9 ~ rotated ~ 0 run tp @s ^0.1976 ^ ^0.0086 ~-5 ~
  13. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 56..73 positioned ~ ~3.9 ~ as @e[tag=c9_node,distance=..2.6] at @s facing ~ ~3.9 ~ rotated ~ 0 run tp @s ^-0.1976 ^ ^0.0086 ~5 ~
  14. /execute if score @e[tag=c9_core,limit=1] c9_tick matches 81..98 positioned ~ ~7.1 ~ as @e[tag=c9_node,distance=..2.6] at @s facing ~ ~7.1 ~ rotated ~ 0 run tp @s ^0.1976 ^ ^0.0086 ~-5 ~

How it works

Frames from the test run

Self-Solving Particle Puzzle Cube - frame 1Self-Solving Particle Puzzle Cube - frame 2Self-Solving Particle Puzzle Cube - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A giant floating 2x2x2 Rubik's cube made entirely of red, green, orange, yellow, and blue dust particles rotates in mid-air at night.

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. Choose an open area with clear sky above it and stand where you want the puzzle cube to float.
  2. Run each of the 10 setup commands once in chat to create the scoreboard objective and summon the 9 marker entities.
  3. Place a line or stack of 14 repeating command blocks set to Always Active.
  4. Paste one loop command into each repeating command block in order.
  5. Watch the glowing particle puzzle cube assemble in mid-air and begin twisting and solving its layers automatically.

Use it with real players

To make the puzzle cube follow or float above a specific player instead of a fixed stage point, replace the relative center coordinates (~ ~7.1 ~ and ~ ~3.9 ~) in loop commands 11 through 14 with /execute at @p positioned ~ ~7.1 ~ ... and teleport the nodes relative to the player's position.

Remove it again 2 commands

  1. /kill @e[tag=c9_cube]
  2. /scoreboard objectives remove c9_tick

FAQ

Why don't the particles lag my game even though there are six colors?

Each of the 8 sub-cube nodes spawns a compact burst of dust particles using the force mode, and no extra entities are created in the loop—only 9 lightweight marker entities exist the entire time.

How do the sub-cubes stay aligned in a circle without drifting outward?

When stepping sideways tangential to the circle, the command also steps slightly forward by 0.0086 blocks toward the pivot center, matching the exact chord geometry of a 5-degree arc on a 2.2627-block radius.

Commands used

/execute/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides