Clockwork Chameleon Camouflage Shift

Watch an articulated mechanical chameleon walk across four bright block pedestals as its copper legs, gears, and camouflage scales shift color in a wave.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
A mechanical chameleon shifts its segmented body colors while walking across red, green, blue, and purple block pedestals. Download the GIF Video & GIF © www.9minecraft.net

TransformationsTechnologyIndustrialNatureRedGreenBlueCinematicDecorationLearningItem displaysArmor standsSmooth animation (interpolation)Riding & passengersSummoned mobsBlock building (fill/setblock/clone)21+ commands

This command creation builds a multi-part mechanical chameleon that walks across four colored pedestals made of red concrete, emerald, lapis, and amethyst. Its copper legs move in a diagonal walking gait while side-mounted copper grate gears rock back and forth and glowing sea lantern turret eyes lead the way.

Because each body segment checks the block directly beneath it independently, the chameleon's outer scales shift colors in a smooth wave from head to tail as it crosses each border.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9t dummy
  2. /fill ~-12 ~0 ~-3 ~-7 ~1 ~3 minecraft:red_concrete
  3. /fill ~-6 ~0 ~-3 ~-1 ~1 ~3 minecraft:emerald_block
  4. /fill ~0 ~0 ~-3 ~5 ~1 ~3 minecraft:lapis_block
  5. /fill ~6 ~0 ~-3 ~11 ~1 ~3 minecraft:amethyst_block
  6. /summon minecraft:armor_stand ~-3.5 ~2 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_r","c9_r1"],Passengers:[{id:"minecraft:item_display",Tags:["c9_b"],item:{id:"minecraft:copper_block"},transformation:[1.15f,0f,0f,0.2f,0f,0.95f,0f,1.75f,0f,0f,1.1f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_b"],item:{id:"minecraft:oxidized_copper"},transformation:[0.8f,0f,0f,0.9f,0f,0.55f,0f,1.55f,0f,0f,0.85f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_b"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:sea_lantern"},brightness:{sky:15,block:15},transformation:[0.55f,0f,0f,0.4f,0f,0.55f,0f,1.95f,0f,0f,0.55f,-0.62f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_b"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:sea_lantern"},brightness:{sky:15,block:15},transformation:[0.55f,0f,0f,0.4f,0f,0.55f,0f,1.95f,0f,0f,0.55f,0.62f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[0.65f,0f,-0.65f,-0.2f,0f,0.35f,0f,2.35f,0.65f,0f,0.65f,0f,0f,0f,0f,1f]}]}
  7. /summon minecraft:armor_stand ~-4.7 ~2 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_r"],Passengers:[{id:"minecraft:item_display",Tags:["c9_b"],item:{id:"minecraft:netherite_block"},transformation:[1.3f,0f,0f,0f,0f,1.0f,0f,1.45f,0f,0f,1.15f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_la"],item:{id:"minecraft:copper_block"},transformation:[0.4f,0f,0f,0.1f,0f,1.2f,0f,0.6f,0f,0f,0.4f,-0.75f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_lb"],item:{id:"minecraft:copper_block"},transformation:[0.4f,0f,0f,0.1f,0f,1.2f,0f,0.6f,0f,0f,0.4f,0.75f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_la"],item:{id:"minecraft:copper_grate"},transformation:[1.05f,0f,0f,0f,0f,1.05f,0f,1.45f,0f,0f,0.2f,-0.78f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[0.95f,0f,0f,0f,0f,0.85f,0f,1.7f,0f,0f,1.35f,0f,0f,0f,0f,1f]}]}
  8. /summon minecraft:armor_stand ~-5.6 ~2 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_r"],Passengers:[{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[1.05f,0f,0f,0f,0f,1.1f,0f,1.65f,0f,0f,1.45f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[0.6f,0f,-0.6f,0f,0f,0.45f,0f,2.35f,0.6f,0f,0.6f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_b"],item:{id:"minecraft:gold_block"},transformation:[0.7f,0f,0f,0f,0f,0.6f,0f,1.1f,0f,0f,1.52f,0f,0f,0f,0f,1f]}]}
  9. /summon minecraft:armor_stand ~-6.5 ~2 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_r"],Passengers:[{id:"minecraft:item_display",Tags:["c9_b"],item:{id:"minecraft:netherite_block"},transformation:[1.3f,0f,0f,0f,0f,1.0f,0f,1.45f,0f,0f,1.15f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_lb"],item:{id:"minecraft:copper_grate"},transformation:[1.05f,0f,0f,0f,0f,1.05f,0f,1.45f,0f,0f,0.2f,0.78f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[0.95f,0f,0f,0f,0f,0.85f,0f,1.7f,0f,0f,1.35f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[0.55f,0f,-0.55f,0f,0f,0.4f,0f,2.25f,0.55f,0f,0.55f,0f,0f,0f,0f,1f]}]}
  10. /summon minecraft:armor_stand ~-7.6 ~2 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_r"],Passengers:[{id:"minecraft:item_display",Tags:["c9_lb"],item:{id:"minecraft:copper_block"},transformation:[0.4f,0f,0f,0.1f,0f,1.2f,0f,0.6f,0f,0f,0.4f,-0.75f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_la"],item:{id:"minecraft:copper_block"},transformation:[0.4f,0f,0f,0.1f,0f,1.2f,0f,0.6f,0f,0f,0.4f,0.75f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[0.75f,0f,0f,-0.2f,0f,0.75f,0f,1.5f,0f,0f,0.95f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_s"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:red_concrete"},transformation:[0.55f,0f,0f,-0.85f,0f,0.55f,0f,1.4f,0f,0f,0.65f,0f,0f,0f,0f,1f]},{id:"minecraft:item_display",Tags:["c9_b"],item:{id:"minecraft:copper_block"},transformation:[0.65f,0f,0f,-1.35f,0f,0.65f,0f,1.75f,0f,0f,0.5f,0f,0f,0f,0f,1f]}]}

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

  1. /execute as @e[tag=c9_r] at @s run tp @s ~0.095 ~ ~
  2. /execute positioned ~10.5 ~2 ~ if entity @e[tag=c9_r1,distance=..0.6] as @e[tag=c9_r] at @s run tp @s ~-18.0 ~ ~
  3. /execute as @e[tag=c9_s,tag=!c9_c1] at @s if block ~ ~-1 ~ minecraft:red_concrete run data merge entity @s {Tags:["c9_s","c9_c1"],item:{id:"minecraft:red_concrete"},glow_color_override:16724787}
  4. /execute as @e[tag=c9_s,tag=!c9_c2] at @s if block ~ ~-1 ~ minecraft:emerald_block run data merge entity @s {Tags:["c9_s","c9_c2"],item:{id:"minecraft:emerald_block"},glow_color_override:2096960}
  5. /execute as @e[tag=c9_s,tag=!c9_c3] at @s if block ~ ~-1 ~ minecraft:lapis_block run data merge entity @s {Tags:["c9_s","c9_c3"],item:{id:"minecraft:lapis_block"},glow_color_override:3368703}
  6. /execute as @e[tag=c9_s,tag=!c9_c4] at @s if block ~ ~-1 ~ minecraft:amethyst_block run data merge entity @s {Tags:["c9_s","c9_c4"],item:{id:"minecraft:amethyst_block"},glow_color_override:11158527}
  7. /scoreboard players add #s c9t 1
  8. /execute if score #s c9t matches 20.. run scoreboard players set #s c9t 0
  9. /execute if score #s c9t matches 1 as @e[tag=c9_la] run data merge entity @s {start_interpolation:0,interpolation_duration:9,transformation:{left_rotation:[0f,0f,-0.22f,0.975f]}}
  10. /execute if score #s c9t matches 1 as @e[tag=c9_lb] run data merge entity @s {start_interpolation:0,interpolation_duration:9,transformation:{left_rotation:[0f,0f,0.22f,0.975f]}}
  11. /execute if score #s c9t matches 11 as @e[tag=c9_la] run data merge entity @s {start_interpolation:0,interpolation_duration:9,transformation:{left_rotation:[0f,0f,0.22f,0.975f]}}
  12. /execute if score #s c9t matches 11 as @e[tag=c9_lb] run data merge entity @s {start_interpolation:0,interpolation_duration:9,transformation:{left_rotation:[0f,0f,-0.22f,0.975f]}}
  13. /execute at @e[tag=c9_r1] run particle minecraft:wax_on ~-1.8 ~1.5 ~ 1.4 0.6 0.8 0.02 3
  14. /execute at @e[tag=c9_r1] run particle minecraft:dust{color:[0.2,1.0,0.8],scale:1.4} ~-2.0 ~1.3 ~ 1.5 0.6 0.8 0 4

How it works

Frames from the test run

Clockwork Chameleon Camouflage Shift - frame 1Clockwork Chameleon Camouflage Shift - frame 2Clockwork Chameleon Camouflage Shift - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A mechanical chameleon with copper legs and grate sides walks across red concrete, emerald, lapis, and amethyst pedestals, changing its segmented body blocks to match the colors directly underneath it, though a giant floating block hovers awkwardly in the sky.

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 and run the 10 setup commands in order to build the four colored pedestals and summon the five articulated chameleon segments.
  2. Place 14 repeating command blocks (or 1 repeating followed by 13 chain command blocks), all set to Always Active.
  3. Paste each of the 14 loop commands into the command blocks so they run every tick from the stage center.
  4. Watch the clockwork chameleon march across the red, emerald, lapis, and amethyst pedestals while its scales shift color segment by segment.
  5. To clean up the creation when finished, turn off the command blocks and run the remove commands.

Use it with real players

To make the chameleon follow a player instead of walking along a fixed track, replace the first two loop commands with /execute as @e[tag=c9_r] at @s facing entity @p eyes run tp @s ^ ^ ^0.1 and place different colored blocks along the floor wherever you walk.

Remove it again 7 commands

  1. /kill @e[tag=c9_r]
  2. /kill @e[tag=c9_b]
  3. /kill @e[tag=c9_s]
  4. /kill @e[tag=c9_la]
  5. /kill @e[tag=c9_lb]
  6. /fill ~-12 ~0 ~-3 ~11 ~1 ~3 minecraft:air
  7. /scoreboard objectives remove c9t

FAQ

Why are the display entities riding invisible armor stands instead of markers?

In Minecraft Java Edition, marker entities are purely server-side and are not sent to the client, so passengers riding a marker will not render properly. Invisible marker armor stands sync to clients and carry display entity passengers reliably.

Can I add more block colors for the chameleon to copy?

Yes! Duplicate one of the color-checking loop commands and change both the block tested in if block ~ ~-1 ~ and the item id inside data merge entity.

Commands used

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

Similar creations

Join 9Minecraft News & Guides