Watch a glowing flock of sheep sprint across a giant nine-color checkerboard stage, instantly morphing their wool and emitting vibrant dust to match the floor.
Mob TransformationsCuteCelebrationRainbowGreenDecorationServer LobbyMini-gameArmor standsSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
Chameleon Wool turns a flock of sheep into living mood rings that adapt to their surroundings in real time. As the sheep wander and chase a floating golden carrot across a colourful nine-tile checkerboard floor, their wool instantly shifts to match the exact colour of the terracotta block beneath their hooves.
Each colour transition triggers a matching burst of glowing dust particles and a floating coloured beacon crystal above the sheep, making it easy to see every boundary crossing as the herd moves together.
/scoreboard objectives add c9_timer dummy/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:cyan_terracotta/fill ~-7 ~-1 ~-7 ~-3 ~-1 ~-3 minecraft:red_terracotta/fill ~-2 ~-1 ~-7 ~2 ~-1 ~-3 minecraft:orange_terracotta/fill ~3 ~-1 ~-7 ~7 ~-1 ~-3 minecraft:yellow_terracotta/fill ~-7 ~-1 ~-2 ~-3 ~-1 ~2 minecraft:lime_terracotta/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:white_terracotta/fill ~3 ~-1 ~-2 ~7 ~-1 ~2 minecraft:light_blue_terracotta/fill ~-7 ~-1 ~3 ~-3 ~-1 ~7 minecraft:blue_terracotta/fill ~-2 ~-1 ~3 ~2 ~-1 ~7 minecraft:purple_terracotta/fill ~3 ~-1 ~3 ~7 ~-1 ~7 minecraft:magenta_terracotta/execute unless entity @e[type=minecraft:armor_stand,tag=c9_center] run summon minecraft:armor_stand ~ ~ ~ {Tags:["c9_center"],Invisible:1b,NoGravity:1b,Marker:1b}/scoreboard players add @e[type=minecraft:armor_stand,tag=c9_center] c9_timer 1/execute if score @e[type=minecraft:armor_stand,tag=c9_center,limit=1] c9_timer matches 1..10 run summon minecraft:sheep ~ ~ ~ {Tags:["c9_sheep"],Glowing:1b,PersistenceRequired:1b}/execute as @e[type=minecraft:armor_stand,tag=c9_center] at @s run tp @s ~ ~ ~ ~4 ~/execute at @e[type=minecraft:armor_stand,tag=c9_center] positioned ^ ^ ^4.8 run particle minecraft:happy_villager ~ ~0.6 ~ 0.2 0.2 0.2 0 1 force/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s facing entity @e[type=minecraft:armor_stand,tag=c9_center,limit=1] feet positioned ^ ^ ^0.18 if block ~ ~-1 ~ minecraft:red_terracotta run data merge entity @s {Color:14b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:orange_terracotta run data merge entity @s {Color:1b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:yellow_terracotta run data merge entity @s {Color:4b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:lime_terracotta run data merge entity @s {Color:5b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:white_terracotta run data merge entity @s {Color:0b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:light_blue_terracotta run data merge entity @s {Color:3b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:blue_terracotta run data merge entity @s {Color:11b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:purple_terracotta run data merge entity @s {Color:10b}/execute as @e[type=minecraft:sheep,tag=c9_sheep] at @s if block ~ ~-1 ~ minecraft:magenta_terracotta run data merge entity @s {Color:2b}setup #3 The setup commands build a 15x15 checkerboard out of nine distinct 5x5 coloured terracotta zones bordered by cyan terracotta.loop #3 During the first 10 ticks of the creation, one glowing sheep tagged <code>c9_sheep</code> is summoned per tick at the centre of the stage, creating a flock of 10 sheep without overflowing entity limits.loop #6 Each sheep checks the block directly below its feet using <code>if block ~ ~-1 ~</code>. When it steps onto red terracotta, <code>/data merge entity @s {Color:14b}</code> changes its wool byte value to red (14).loop #14 The remaining loop blocks test for the other eight terracotta colours on the stage and apply the matching wool colour ID (0 for white, 1 for orange, 2 for magenta, 3 for light blue, 4 for yellow, 5 for lime, 10 for purple, and 11 for blue).


Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: Several glowing sheep walk across a nine-tile colored terracotta grid, changing their wool color to match the floor tiles beneath them while green particles circle in the center.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make every sheep in your survival world act like a chameleon without needing the stage tag, remove ,tag=c9_sheep from the target selectors in the loop commands so they target @e[type=minecraft:sheep] anywhere near your base, and swap the terracotta block checks for natural biome blocks like grass_block (lime, 5b), sand (yellow, 4b), stone (gray, 7b), and snow_block (white, 0b).
/kill @e[tag=c9_sheep]/kill @e[tag=c9_center]/scoreboard objectives remove c9_timer/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:grass_blockThey will drop the wool colour they were wearing at the exact moment you sheared them, and the remaining wool patches on their skin will continue changing colour as they walk over new tiles.
Minecraft stores sheep wool colour in the <code>Color</code> NBT byte tag from <code>0b</code> to <code>15b</code>, following the standard dye order where 0 is white, 1 is orange, 4 is yellow, 5 is lime, 11 is blue, and 14 is red.
▶Origami Crane Flock MetamorphosisMob TransformationsHard23 cmds
▶Origami Paper-Boat Armada PelicansMob TransformationsHard23 cmds
▶Moonlit Statue AwakeningMob TransformationsMedium24 cmds
▶Subterranean Geode Pangolin RolloutMob TransformationsHard23 cmds
▶Gilded Carriage Pumpkin MetamorphosisMob TransformationsHard24 cmds
▶Living Topiary Hedge-Maze MinotaurMob TransformationsHard24 cmds