Synchronized Rainbow Sheep Marching Band

Eight rainbow sheep in striped banner hats trot in synchronized marching band columns, interlocking on cue while leaving trails of floating musical notes.

Java EditionMobs & PetsEasyTested on a real 26.2 & 26.3 server
Two columns of rainbow sheep with banner hats march in square formations leaving white sparkle trails. Download the GIF

Two color-coordinated columns of rainbow sheep wearing striped banner hats march across the grass in crisp square formations. Every 25 ticks the entire band snaps 90 degrees in unison, counter-marching and zippering past each other without ever breaking rank.

As they trot in time to a steady snare drumbeat, glowing sparkles trail beneath their hooves and colorful musical notes float upward above every banner hat.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon marker ~ ~ ~ {Tags:["c9_band"]}
  3. /summon sheep ~-3.0 ~ ~-1.5 {Color:14b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[90.0f,0.0f],Tags:["c9_s","c9_warm","c9_lead"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:red_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}
  4. /summon sheep ~-3.0 ~ ~1.5 {Color:1b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[90.0f,0.0f],Tags:["c9_s","c9_warm"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:orange_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}
  5. /summon sheep ~-3.0 ~ ~4.5 {Color:4b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[90.0f,0.0f],Tags:["c9_s","c9_warm"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:yellow_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}
  6. /summon sheep ~-3.0 ~ ~7.5 {Color:2b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[90.0f,0.0f],Tags:["c9_s","c9_warm"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:magenta_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}
  7. /summon sheep ~3.0 ~ ~-6.0 {Color:5b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[-90.0f,0.0f],Tags:["c9_s","c9_cool"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:lime_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}
  8. /summon sheep ~3.0 ~ ~-3.0 {Color:3b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[-90.0f,0.0f],Tags:["c9_s","c9_cool"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:light_blue_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}
  9. /summon sheep ~3.0 ~ ~0.0 {Color:11b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[-90.0f,0.0f],Tags:["c9_s","c9_cool"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:blue_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}
  10. /summon sheep ~3.0 ~ ~3.0 {Color:10b,NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[-90.0f,0.0f],Tags:["c9_s","c9_cool"],Passengers:[{id:"minecraft:item_display",item:{id:"minecraft:purple_banner",count:1,components:{"minecraft:banner_patterns":[{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:triangles_bottom",color:"white"}]}},billboard:"vertical",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0.55f,0.55f,0.55f]},Tags:["c9_hat"]}]}

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

  1. /scoreboard players add @e[tag=c9_band,limit=1] c9_t 1
  2. /execute if score @e[tag=c9_band,limit=1] c9_t matches 26.. run scoreboard players set @e[tag=c9_band,limit=1] c9_t 1
  3. /scoreboard players add @e[tag=c9_lead,limit=1] c9_t 1
  4. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 6.. run scoreboard players set @e[tag=c9_lead,limit=1] c9_t 1
  5. /execute if score @e[tag=c9_band,limit=1] c9_t matches 1 as @e[tag=c9_s] at @s run tp @s ~ ~ ~ ~90 0
  6. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 1 as @e[tag=c9_s] at @s run tp @s ~ ~0.45 ~
  7. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 3 as @e[tag=c9_s] at @s run tp @s ~ ~-0.45 ~
  8. /execute as @e[tag=c9_s] at @s run tp @s ^ ^ ^0.24
  9. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 1 as @e[tag=c9_warm] at @s run particle note ~ ~1.9 ~ 0.9 0 0 1 0
  10. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 1 as @e[tag=c9_cool] at @s run particle note ~ ~1.9 ~ 0.45 0 0 1 0
  11. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 3 as @e[tag=c9_warm] at @s run particle note ~ ~1.7 ~ 0.12 0 0 1 0
  12. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 3 as @e[tag=c9_cool] at @s run particle note ~ ~1.7 ~ 0.65 0 0 1 0
  13. /execute as @e[tag=c9_s] at @s run particle end_rod ~ ~0.15 ~ 0.12 0.05 0.12 0.01 1
  14. /execute if score @e[tag=c9_lead,limit=1] c9_t matches 1 at @e[tag=c9_band,limit=1] run playsound block.note_block.snare neutral @a ~ ~ ~ 0.8 1.2

How it works

Frames from the test run

Synchronized Rainbow Sheep Marching Band - frame 1Synchronized Rainbow Sheep Marching Band - frame 2Synchronized Rainbow Sheep Marching Band - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: Two columns of rainbow-colored sheep wearing banner hats march in synchronized square paths on a grass platform, leaving white sparkle trails and emitting colorful musical notes.

Build it in your world

  1. Clear a flat grass parade ground at least 25x25 blocks wide.
  2. Stand at the center of the area and run each of the 10 setup commands once in chat (or in a chain of impulse command blocks) to spawn the scoreboard, center marker, and 8 sheep.
  3. Place 14 repeating, always-active command blocks next to the stage.
  4. Paste the 14 loop commands into the repeating command blocks in order from top to bottom.
  5. Watch the warm and cool rainbow columns trot, snap 90-degree turns every 25 ticks, and leave trails of musical notes and sparkles.

Remove it again 4 commands

  1. /kill @e[tag=c9_hat]
  2. /kill @e[tag=c9_s]
  3. /kill @e[tag=c9_band]
  4. /scoreboard objectives remove c9_t

FAQ

Why do the sheep stay in neat lines without bumping into each other?

The warm and cool columns start offset by 1.5 blocks along the Z axis, so when they turn 90 degrees and cross paths, every sheep passes cleanly through the gaps between the opposite column.

Can I change the banner hat patterns or colors?

Yes. In the setup commands, edit the minecraft:banner_patterns list or swap the banner item ID and sheep Color byte to customize each marcher's uniform.

Commands used

/execute/particle/playsound/scoreboard/summon/tp

More mobs & pets