Chromatic Shifting Cube

Build a floating, rotating rainbow monolith in vanilla Minecraft using overlapping block_display entities, smooth scale interpolation, and glowing outlines.

Java EditionHolograms & Display EntitiesEasy23 commandsTested on a real 26.2 & 26.3 server
A glowing, color-shifting cube floats and rotates above a dark prismarine pedestal at night. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksMysticTechnologyRainbowPurpleCyanDecorationServer LobbyBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands

The Chromatic Shifting Cube is a floating, rotating monolith that shifts through the colors of the rainbow right before your eyes. Instead of abruptly swapping blocks, it uses overlapping block_display entities that smoothly expand and contract out of a central dark frame, paired with matching glowing outlines and sparkling particles.

Because everything is powered by display interpolation and scoreboard timers, the color transitions look fluid and mechanical, making it a great centerpiece for futuristic hubs, magic towers, or sci-fi builds.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-2 ~ ~-2 ~2 ~ ~2 polished_blackstone_slab
  3. /fill ~-1 ~ ~-1 ~1 ~ ~1 dark_prismarine
  4. /setblock ~ ~ ~ sea_lantern
  5. /summon marker ~ ~4.5 ~ {Tags:["c9_all","c9_ctrl"]}
  6. /summon block_display ~ ~4.5 ~ {Tags:["c9_all","c9_shell"],Glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,glow_color_override:16724787,block_state:{Name:"minecraft:white_stained_glass"},transformation:{translation:[-1.35f,-1.35f,-1.35f],scale:[2.7f,2.7f,2.7f],left_rotation:[0.25f,0.1f,0.25f,0.93f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon block_display ~ ~4.5 ~ {Tags:["c9_all","c9_frame"],brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:crying_obsidian"},transformation:{translation:[-1.0f,-1.0f,-1.0f],scale:[2.0f,2.0f,2.0f],left_rotation:[0.353f,0f,0.353f,0.866f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon block_display ~ ~4.5 ~ {Tags:["c9_all","c9_c0"],Glowing:1b,glow_color_override:16724787,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:red_concrete"},transformation:{translation:[-1.15f,-1.15f,-1.15f],scale:[2.3f,2.3f,2.3f],left_rotation:[0.353f,0f,0.353f,0.866f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon block_display ~ ~4.5 ~ {Tags:["c9_all","c9_c1"],Glowing:1b,glow_color_override:16750848,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:20,block_state:{Name:"minecraft:orange_concrete"},transformation:{translation:[-0.4f,-0.4f,-0.4f],scale:[0.8f,0.8f,0.8f],left_rotation:[0.353f,0f,0.353f,0.866f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /scoreboard players set @e[tag=c9_ctrl,scores={c9_t=180..}] c9_t 0
  3. /execute as @e[tag=c9_all,type=block_display] at @s run tp @s ~ ~ ~ ~3 ~
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run data merge entity @e[tag=c9_c0,limit=1] {block_state:{Name:"minecraft:red_concrete"},glow_color_override:16724787,start_interpolation:0,transformation:{translation:[-1.15f,-1.15f,-1.15f],scale:[2.3f,2.3f,2.3f]}}
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run data merge entity @e[tag=c9_c1,limit=1] {start_interpolation:0,transformation:{translation:[-0.4f,-0.4f,-0.4f],scale:[0.8f,0.8f,0.8f]}}
  6. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 30 run data merge entity @e[tag=c9_c1,limit=1] {block_state:{Name:"minecraft:orange_concrete"},glow_color_override:16750848,start_interpolation:0,transformation:{translation:[-1.15f,-1.15f,-1.15f],scale:[2.3f,2.3f,2.3f]}}
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 30 run data merge entity @e[tag=c9_c0,limit=1] {start_interpolation:0,transformation:{translation:[-0.4f,-0.4f,-0.4f],scale:[0.8f,0.8f,0.8f]}}
  8. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 60 run data merge entity @e[tag=c9_c0,limit=1] {block_state:{Name:"minecraft:yellow_concrete"},glow_color_override:16776960,start_interpolation:0,transformation:{translation:[-1.15f,-1.15f,-1.15f],scale:[2.3f,2.3f,2.3f]}}
  9. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 60 run data merge entity @e[tag=c9_c1,limit=1] {start_interpolation:0,transformation:{translation:[-0.4f,-0.4f,-0.4f],scale:[0.8f,0.8f,0.8f]}}
  10. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 90 run data merge entity @e[tag=c9_c1,limit=1] {block_state:{Name:"minecraft:lime_concrete"},glow_color_override:5635925,start_interpolation:0,transformation:{translation:[-1.15f,-1.15f,-1.15f],scale:[2.3f,2.3f,2.3f]}}
  11. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 90 run data merge entity @e[tag=c9_c0,limit=1] {start_interpolation:0,transformation:{translation:[-0.4f,-0.4f,-0.4f],scale:[0.8f,0.8f,0.8f]}}
  12. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 120 run data merge entity @e[tag=c9_c0,limit=1] {block_state:{Name:"minecraft:cyan_concrete"},glow_color_override:5636095,start_interpolation:0,transformation:{translation:[-1.15f,-1.15f,-1.15f],scale:[2.3f,2.3f,2.3f]}}
  13. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 150 run data merge entity @e[tag=c9_c1,limit=1] {block_state:{Name:"minecraft:magenta_concrete"},glow_color_override:16733695,start_interpolation:0,transformation:{translation:[-1.15f,-1.15f,-1.15f],scale:[2.3f,2.3f,2.3f]}}
  14. /particle end_rod ~ ~4.5 ~ 1.3 1.3 1.3 0.02 2 force

How it works

Frames from the test run

Chromatic Shifting Cube - frame 1Chromatic Shifting Cube - frame 2Chromatic Shifting Cube - frame 3

Recorded on our own test server: 70 frames at about 9.9 fps. Our image check saw: A floating, rotating cube above a pedestal shifts through purple, cyan, and red inner blocks with glowing outlines and white sparkles.

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 where you want the pedestal and run each of the 9 setup commands once in chat (or from impulse command blocks).
  2. Place a column or line of 14 repeating command blocks set to Always Active nearby.
  3. Paste one loop command into each repeating command block.
  4. Watch the cube spin and smoothly morph through all six rainbow colors every 9 seconds.
  5. To remove the creation later, turn off the repeating command blocks and run the cleanup commands.

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-2 ~ ~-2 ~2 ~ ~2 air

FAQ

Why do the cubes expand from the center instead of one corner?

Block displays scale outward from their negative X/Y/Z corner by default. Setting the translation to negative half of the scale (for example, translation -1.15 when scale is 2.3) keeps the block centered on the entity position as it grows and shrinks.

How can I change the speed of the color transition?

Change interpolation_duration on the c9_c0 and c9_c1 entities to control how many ticks the morph takes, and adjust the score intervals (1, 30, 60, 90, 120, 150) in the loop commands to change how often a new color starts.

Commands used

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

Similar creations

Join 9Minecraft News & Guides