Eight rainbow sheep in striped banner hats trot in synchronized marching band columns, interlocking on cue while leaving trails of floating musical notes.
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.
/scoreboard objectives add c9_t dummy/summon marker ~ ~ ~ {Tags:["c9_band"]}/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"]}]}/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"]}]}/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"]}]}/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"]}]}/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"]}]}/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"]}]}/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"]}]}/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"]}]}/scoreboard players add @e[tag=c9_band,limit=1] c9_t 1/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/scoreboard players add @e[tag=c9_lead,limit=1] c9_t 1/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/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/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 ~/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 ~/execute as @e[tag=c9_s] at @s run tp @s ^ ^ ^0.24/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/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/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/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/execute as @e[tag=c9_s] at @s run particle end_rod ~ ~0.15 ~ 0.12 0.05 0.12 0.01 1/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.2setup #3 <p>Summons each sheep with <code>NoAI:1b</code> so formations stay exact, and attaches a matching striped banner <code>item_display</code> hat as a passenger with <code>billboard:"vertical"</code>.</p>loop #5 <p>Every 25 ticks, when <code>c9_band</code> reaches <code>1</code>, all eight sheep rotate <code>90</code> degrees clockwise in unison while keeping pitch level at <code>0</code>.</p>loop #8 <p>Uses local forward coordinates <code>^ ^ ^0.24</code> so every sheep marches forward in whichever direction it is currently facing, turning 4 right-angle legs into a seamless interlocking square parade.</p>loop #9 <p>Spawns colored <code>note</code> particles on the hop and landing beats by setting the count to <code>0</code> and passing hue offsets (<code>0.9</code>, <code>0.45</code>, <code>0.12</code>, <code>0.65</code>) to warm and cool columns.</p>


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.
/kill @e[tag=c9_hat]/kill @e[tag=c9_s]/kill @e[tag=c9_band]/scoreboard objectives remove c9_tThe 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.
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.