Build a glowing rainbow shulker on a quartz pedestal that cycles through all 16 Minecraft dye colors automatically with orbiting particle rings.
Mob TransformationsEndMysticRainbowWhiteDecorationServer LobbyLearningParticlesArmor standsScoreboard timersExecute chainsSummoned mobsBlock building (fill/setblock/clone)SoundsGlowing outlinesRotation math21+ commands
The Chromatic Shifting Shulker places an animated, glowing shulker atop an illuminated quartz and sea lantern pedestal. Using a scoreboard timer and modulo math, the shulker cycles its shell through all sixteen Minecraft dye colors automatically while peeking open and closed.
As the shell changes hue, an invisible orbiting marker spins twin trails of end rod stars and color-transitioning dust around the pedestal, accompanied by floating ambient sparkles that match the current color phase.
/scoreboard objectives add c9_timer dummy/scoreboard objectives add c9_color dummy/scoreboard objectives add c9_math dummy/scoreboard players set #c9_div c9_math 5/scoreboard players set #c9_mod c9_math 16/fill ~-2 ~ ~-2 ~2 ~ ~2 chiseled_quartz_block/fill ~-1 ~ ~-1 ~1 ~1 ~1 quartz_pillar/setblock ~ ~1 ~ sea_lantern/summon shulker ~ ~2 ~ {Tags:["c9_shulker","c9_entity"],NoAI:1b,Invulnerable:1b,Glowing:1b,Color:14b,Peek:35b,CustomName:{"text":"Chromatic Shulker","color":"light_purple"}}/summon armor_stand ~ ~2 ~ {Tags:["c9_orb1","c9_entity"],Invisible:1b,NoGravity:1b,Marker:1b}/scoreboard players add @e[tag=c9_shulker] c9_timer 1/scoreboard players operation @e[tag=c9_shulker] c9_color = @e[tag=c9_shulker] c9_timer/scoreboard players operation @e[tag=c9_shulker] c9_color /= #c9_div c9_math/scoreboard players operation @e[tag=c9_shulker] c9_color %= #c9_mod c9_math/execute as @e[tag=c9_shulker] store result entity @s Color byte 1 run scoreboard players get @s c9_color/execute as @e[tag=c9_shulker,scores={c9_color=0..7}] run data merge entity @s {Peek:50b}/execute as @e[tag=c9_shulker,scores={c9_color=8..15}] run data merge entity @s {Peek:20b}/execute as @e[tag=c9_orb1] at @s run tp @s ~ ~ ~ ~12 ~/execute at @e[tag=c9_orb1] positioned ^ ^0.5 ^1.8 run particle end_rod ~ ~ ~ 0.05 0.05 0.05 0.01 2 force/execute at @e[tag=c9_orb1] positioned ^ ^0.5 ^-1.8 run particle dust_color_transition{from_color:[1.0,0.1,0.4],to_color:[0.1,0.9,1.0],scale:1.6} ~ ~ ~ 0.1 0.2 0.1 0 4 force/execute at @e[tag=c9_shulker,scores={c9_color=0..5}] run particle dust{color:[1.0,0.3,0.1],scale:1.6} ~ ~0.6 ~ 0.8 0.6 0.8 0 3 force/execute at @e[tag=c9_shulker,scores={c9_color=6..10}] run particle dust{color:[0.2,1.0,0.4],scale:1.6} ~ ~0.6 ~ 0.8 0.6 0.8 0 3 force/execute at @e[tag=c9_shulker,scores={c9_color=11..15}] run particle dust{color:[0.5,0.2,1.0],scale:1.6} ~ ~0.6 ~ 0.8 0.6 0.8 0 3 force/execute at @e[tag=c9_shulker,scores={c9_color=0}] run playsound block.amethyst_block.chime master @a ~ ~ ~ 0.4 1.4setup #4 Sets the divisor constant <code>#c9_div</code> to 5 so the shulker changes color once every 5 ticks (4 colors per second) rather than flickering every single tick.setup #9 Summons the glowing <code>shulker</code> on top of the sea lantern with <code>NoAI:1b</code> and an initial <code>Peek</code> value so its head is visible inside the shell.loop #4 Uses the modulo operator <code>%=</code> with 16 to keep the calculated <code>c9_color</code> score looping cleanly between 0 and 15, matching all 16 Minecraft dye IDs.loop #5 Reads the shulker's <code>c9_color</code> scoreboard value and writes it directly into the entity's <code>Color</code> NBT byte tag using <code>/execute store result entity</code>.loop #6 Adjusts the <code>Peek</code> byte tag between <code>50b</code> and <code>20b</code> across the color cycle so the shulker appears to breathe open and closed while shifting hues.loop #10 Projects <code>dust_color_transition</code> and <code>end_rod</code> particles 1.8 blocks out from the rotating marker armor stand using local caret coordinates <code>^ ^0.5 ^-1.8</code>.


Recorded on our own test server: 40 frames at about 7.9 fps. Our image check saw: A glowing shulker sits on a quartz pedestal, changing colors between black, green, and blue while opening and closing amidst a ring of colorful dust and white star particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
This creation works automatically as a decorative display or lobby centerpiece. If you want a shulker pet or nearby shulkers to shift colors only when a player holds a specific item or approaches, add if entity @a[distance=..8] to the first loop command so the timer only advances when someone is close by.
/kill @e[tag=c9_entity]/fill ~-2 ~ ~-2 ~2 ~2 ~2 air/scoreboard objectives remove c9_timer/scoreboard objectives remove c9_color/scoreboard objectives remove c9_mathChange the value of <code>#c9_div</code> in <code>c9_math</code> using <code>/scoreboard players set #c9_div c9_math 10</code>. Higher numbers make each color last longer, while lower numbers speed up the cycle.
Yes. In Minecraft Java Edition, setting a shulker's <code>Color</code> byte tag to <code>16b</code> restores its natural unpainted shell texture.
/data/execute/fill/particle/playsound/scoreboard/setblock/summon/tp
▶Subterranean Geode Pangolin RolloutMob TransformationsHard23 cmds
▶Gilded Carriage Pumpkin MetamorphosisMob TransformationsHard24 cmds
▶Living Topiary Hedge-Maze MinotaurMob TransformationsHard24 cmds
▶Matryoshka Elemental Golem UnfoldingMob TransformationsHard24 cmds
▶Origami Crane Flock MetamorphosisMob TransformationsHard23 cmds
▶Lightning-Struck Allay CorruptionMob TransformationsEasy19 cmds