Summon a multi-segment block display creature that slithers across a colorful patchwork floor and morphs each body segment to match the block below.
Custom MobsNatureMysticRainbowGoldCyanAdventure MapMap MakingLearningBlock displaysArmor standsSmooth animation (interpolation)Riding & passengersSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
The Chameleon Block Stalker is a multi-segment creature built from glowing block_display entities driven by an invisible core. As it slithers in a figure-eight path across a colorful patchwork floor of gold, diamond, amethyst, emerald, and crimson planks, each of its four body segments independently checks the block directly beneath itself and shifts its block texture and glowing outline color to match.
Because each segment follows the one ahead of it with smooth teleport interpolation, you can watch a wave of colors ripple from its snout down to the tip of its tail as it crosses from one material to the next.
/scoreboard objectives add c9_tick dummy/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:amethyst_block/fill ~-5 ~-1 ~-5 ~-1 ~-1 ~-1 minecraft:gold_block/fill ~1 ~-1 ~-5 ~5 ~-1 ~-1 minecraft:diamond_block/fill ~-5 ~-1 ~1 ~-1 ~-1 ~5 minecraft:crimson_planks/fill ~1 ~-1 ~1 ~5 ~-1 ~5 minecraft:emerald_block/summon minecraft:armor_stand ~ ~ ~-3.2 {Tags:["c9_ent","c9_core"],Invisible:1b,NoGravity:1b,Marker:1b,Invulnerable:1b,Rotation:[-90f,0f]}/summon minecraft:block_display ~ ~ ~-3.2 {Tags:["c9_ent","c9_part","c9_head"],Glowing:1b,glow_color_override:10181046,teleport_duration:2,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.95f,0.75f,1.05f],translation:[-0.475f,0.1f,-0.525f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_ent","c9_eyes"],Glowing:1b,glow_color_override:16777215,teleport_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.05f,0.3f,0.4f],translation:[-0.525f,0.45f,0.15f]}}]}/summon minecraft:block_display ~ ~ ~-3.2 {Tags:["c9_ent","c9_part","c9_body1"],Glowing:1b,glow_color_override:10181046,teleport_duration:3,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,0.95f,1.2f],translation:[-0.6f,0.05f,-0.6f]}}/summon minecraft:block_display ~ ~ ~-3.2 {Tags:["c9_ent","c9_part","c9_body2"],Glowing:1b,glow_color_override:10181046,teleport_duration:4,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,0.7f,1.0f],translation:[-0.45f,0.05f,-0.5f]}}/execute unless entity @e[tag=c9_tail] run summon minecraft:block_display ~ ~ ~-3.2 {Tags:["c9_ent","c9_part","c9_tail"],Glowing:1b,glow_color_override:10181046,teleport_duration:5,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.6f,0.5f,0.95f],translation:[-0.3f,0.05f,-0.475f]}}/scoreboard players add #c9_t c9_tick 1/execute if score #c9_t c9_tick matches 161.. run scoreboard players set #c9_t c9_tick 1/execute if score #c9_t c9_tick matches 1..40 as @e[tag=c9_core] at @s run tp @s ^ ^ ^0.25 ~4.5 ~/execute if score #c9_t c9_tick matches 41..120 as @e[tag=c9_core] at @s run tp @s ^ ^ ^0.25 ~-4.5 ~/execute if score #c9_t c9_tick matches 121..160 as @e[tag=c9_core] at @s run tp @s ^ ^ ^0.25 ~4.5 ~/execute at @e[tag=c9_core,limit=1] rotated ~ 0 run tp @e[tag=c9_head] ^ ^ ^0.95 ~ ~/execute at @e[tag=c9_core,limit=1] rotated ~ 0 run tp @e[tag=c9_body1] ^ ^ ^0.0 ~ ~/execute at @e[tag=c9_body1,limit=1] rotated ~ 0 run tp @e[tag=c9_body2] ^ ^ ^-1.05 ~ ~/execute at @e[tag=c9_body2,limit=1] rotated ~ 0 run tp @e[tag=c9_tail] ^ ^ ^-0.9 ~ ~/execute as @e[tag=c9_part] at @s if block ~ ~-0.6 ~ minecraft:amethyst_block run data merge entity @s {block_state:{Name:"minecraft:amethyst_block"},glow_color_override:10181046}/execute as @e[tag=c9_part] at @s if block ~ ~-0.6 ~ minecraft:gold_block run data merge entity @s {block_state:{Name:"minecraft:gold_block"},glow_color_override:16766720}/execute as @e[tag=c9_part] at @s if block ~ ~-0.6 ~ minecraft:diamond_block run data merge entity @s {block_state:{Name:"minecraft:diamond_block"},glow_color_override:65535}/execute as @e[tag=c9_part] at @s if block ~ ~-0.6 ~ minecraft:crimson_planks run data merge entity @s {block_state:{Name:"minecraft:crimson_planks"},glow_color_override:16711760}/execute as @e[tag=c9_part] at @s if block ~ ~-0.6 ~ minecraft:emerald_block run data merge entity @s {block_state:{Name:"minecraft:emerald_block"},glow_color_override:65280}setup #7 Summons an invisible marker <code>armor_stand</code> tagged <code>c9_core</code> near the north edge of the patchwork floor facing east so its figure-eight loop stays centered over the colored tiles.setup #8 Creates the head <code>block_display</code> with a glowing sea lantern eye bar riding it as a passenger, centered via negative translation offsets.loop #4 Turns the core 4.5 degrees clockwise per tick for 40 ticks, then counter-clockwise for 80 ticks in the next command, tracing a continuous figure-eight across all five floor materials.loop #9 Chains the rear body segments behind one another using local coordinates (<code>^ ^ ^-1.05</code>) and progressive <code>teleport_duration</code> values so the tail bends smoothly around corners.loop #12 Checks if the block 0.6 blocks below each individual segment is a <code>gold_block</code>, and if so, updates both its <code>block_state</code> and <code>glow_color_override</code> to gold.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A segmented block creature moves across a floor made of gold, diamond, emerald, crimson planks, and amethyst blocks, changing its block texture and glowing outline to match the surface beneath it.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the Chameleon Block Stalker follow you instead of moving on a figure-eight timer, replace loop commands 4, 5, and 6 with a single repeating command: /execute as @e[tag=c9_core] at @s facing entity @p eyes run tp @s ^ ^ ^0.22 ~ 0. You can also add extra if block ~ ~-0.6 ~ rules for common terrain blocks like grass, stone, or sand so it camouflages anywhere you walk.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_tick/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:grass_blockIn Minecraft Java Edition, if block_state.Name has a typo or is missing the minecraft: namespace, the display defaults to oak planks. Also make sure each segment checks ~ ~-0.6 ~ so it reads the floor block underneath rather than the air block at its feet.
Duplicate any of the last five loop commands and replace the block ID in both the if block test and the data merge block_state, then set glow_color_override to the decimal RGB value of your chosen color.
▶Lotus Blossom Zen Garden Koi SpiritCustom MobsHard24 cmds
▶Polar Aurora Ice-Sculpture BearCustom MobsHard24 cmds
▶Prismatic Butterfly Tornado SwarmCustom MobsMedium21 cmds
▶Boulder-Hurling Forest MenaceCustom MobsHard18 cmds
▶Nine-Tailed Kitsune Spirit Fox ShowcaseCustom MobsMedium26 cmds
▶Spellcasting Elemental AmphibiansCustom MobsEasy24 cmds