Watch an articulated mechanical chameleon walk across four bright block pedestals as its copper legs, gears, and camouflage scales shift color in a wave.
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.
/scoreboard objectives add c9t dummy/fill ~-12 ~0 ~-3 ~-7 ~1 ~3 minecraft:red_concrete/fill ~-6 ~0 ~-3 ~-1 ~1 ~3 minecraft:emerald_block/fill ~0 ~0 ~-3 ~5 ~1 ~3 minecraft:lapis_block/fill ~6 ~0 ~-3 ~11 ~1 ~3 minecraft:amethyst_block/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]}]}/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]}]}/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]}]}/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]}]}/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]}]}/execute as @e[tag=c9_r] at @s run tp @s ~0.095 ~ ~/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 ~ ~/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}/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}/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}/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}/scoreboard players add #s c9t 1/execute if score #s c9t matches 20.. run scoreboard players set #s c9t 0/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]}}/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]}}/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]}}/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]}}/execute at @e[tag=c9_r1] run particle minecraft:wax_on ~-1.8 ~1.5 ~ 1.4 0.6 0.8 0.02 3/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 4setup #6 Summons an invisible marker <code>armor_stand</code> for the chameleon's head with five <code>item_display</code> passengers forming the copper skull, oxidized snout, glowing sea lantern eyes, and top crest.loop #1 Moves all five body segments forward along the X axis every tick, carrying their attached display passengers smoothly across the pedestals.loop #4 When any scale segment passes over the emerald pedestal, it updates its displayed block item and glow outline color to emerald green, creating a wave effect from head to tail.loop #9 Uses display entity interpolation on a 20-tick cycle to swing diagonal leg pair A and the side-mounted copper grate gears back and forth.


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.
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.
/kill @e[tag=c9_r]/kill @e[tag=c9_b]/kill @e[tag=c9_s]/kill @e[tag=c9_la]/kill @e[tag=c9_lb]/fill ~-12 ~0 ~-3 ~11 ~1 ~3 minecraft:air/scoreboard objectives remove c9tIn 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.
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.
▶Hydraulic Transformers Mecha ConversionTransformationsExpert24 cmds
▶Instant Custom Biome TerraformerTransformationsHard24 cmds
▶Shape-Shifting Trash Compactor RobotTransformationsHard21 cmds
▶Mechanical Hummingbird Nectar Hover RigFactories & MachinesExpert24 cmds
▶Mechanical Spider Silk Web SpinnerSelf-building StructuresHard24 cmds
▶Instant Volcanic Biome GeneratorTransformationsHard20 cmds