Chameleon Block Stalker

Summon a multi-segment block display creature that slithers across a colorful patchwork floor and morphs each body segment to match the block below.

Java EditionMobs & PetsMedium25 commandsTested on a real 26.2 & 26.3 server
A glowing segmented block creature changes texture and color as it slithers across a colorful patchwork floor. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:amethyst_block
  3. /fill ~-5 ~-1 ~-5 ~-1 ~-1 ~-1 minecraft:gold_block
  4. /fill ~1 ~-1 ~-5 ~5 ~-1 ~-1 minecraft:diamond_block
  5. /fill ~-5 ~-1 ~1 ~-1 ~-1 ~5 minecraft:crimson_planks
  6. /fill ~1 ~-1 ~1 ~5 ~-1 ~5 minecraft:emerald_block
  7. /summon minecraft:armor_stand ~ ~ ~-3.2 {Tags:["c9_ent","c9_core"],Invisible:1b,NoGravity:1b,Marker:1b,Invulnerable:1b,Rotation:[-90f,0f]}
  8. /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]}}]}
  9. /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]}}
  10. /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]}}

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

  1. /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]}}
  2. /scoreboard players add #c9_t c9_tick 1
  3. /execute if score #c9_t c9_tick matches 161.. run scoreboard players set #c9_t c9_tick 1
  4. /execute if score #c9_t c9_tick matches 1..40 as @e[tag=c9_core] at @s run tp @s ^ ^ ^0.25 ~4.5 ~
  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 ~
  6. /execute if score #c9_t c9_tick matches 121..160 as @e[tag=c9_core] at @s run tp @s ^ ^ ^0.25 ~4.5 ~
  7. /execute at @e[tag=c9_core,limit=1] rotated ~ 0 run tp @e[tag=c9_head] ^ ^ ^0.95 ~ ~
  8. /execute at @e[tag=c9_core,limit=1] rotated ~ 0 run tp @e[tag=c9_body1] ^ ^ ^0.0 ~ ~
  9. /execute at @e[tag=c9_body1,limit=1] rotated ~ 0 run tp @e[tag=c9_body2] ^ ^ ^-1.05 ~ ~
  10. /execute at @e[tag=c9_body2,limit=1] rotated ~ 0 run tp @e[tag=c9_tail] ^ ^ ^-0.9 ~ ~
  11. /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}
  12. /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}
  13. /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}
  14. /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}
  15. /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}

How it works

Frames from the test run

Chameleon Block Stalker - frame 1Chameleon Block Stalker - frame 2Chameleon Block Stalker - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area where you want the 13x13 patchwork floor to appear.
  2. Run each of the 10 setup commands in chat or from impulse command blocks positioned at the center.
  3. Place 14 repeating command blocks (set to Always Active) or a chain of command blocks running every tick at the exact same center coordinates.
  4. Paste the loop commands in order into the repeating command blocks.
  5. Watch the Chameleon Block Stalker weave across the gold, diamond, amethyst, emerald, and crimson tiles while shifting colors segment by segment.

Use it with real players

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.

Remove it again 3 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_tick
  3. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:grass_block

FAQ

Why did my segments turn into oak wood or stop changing color?

In 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.

How do I add more blocks that the stalker can mimic?

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.

Commands used

/data/execute/fill/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides