Turn your farm into a glowing dance party where animals headbang, spin, and jump in perfect unison around a DJ booth with flashing musical particles.
Mob ParadesMusicCelebrationCutePinkCyanWhiteDecorationMini-gameServer LobbySummoned mobsBlock building (fill/setblock/clone)SoundsRotation math21+ commands
The Synchronized Barnyard Rave transforms ordinary farm animals into a choreographed dance crew. At the center of a glowing stained-glass dance floor, a DJ Villager spins tracks behind a note block booth while cows, pigs, sheep, and chickens surround the stage.
Using a single scoreboard timer, every animal headbangs to the beat, hops together on the drop, and spins in harmony while vibrant note particles and light flashes fill the night air.
/scoreboard objectives add c9_beat dummy/scoreboard players set #timer c9_beat 0/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 magenta_stained_glass/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 sea_lantern/setblock ~ ~ ~ note_block/summon villager ~ ~ ~-1 {NoAI:1b,Glowing:1b,Invulnerable:1b,Tags:["c9_rave","c9_dj"],VillagerData:{profession:"minecraft:nitwit",level:5,type:"minecraft:plains"},CustomName:{"text":"DJ Barn","color":"aqua"}}/summon cow ~-3 ~ ~-2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Tags:["c9_rave","c9_dancer"]}/summon pig ~3 ~ ~-2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Tags:["c9_rave","c9_dancer"]}/summon sheep ~-3 ~ ~2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Color:6b,Tags:["c9_rave","c9_dancer"]}/summon chicken ~3 ~ ~2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Tags:["c9_rave","c9_dancer"]}/scoreboard players add #timer c9_beat 1/execute if score #timer c9_beat matches 40.. run scoreboard players set #timer c9_beat 0/execute if score #timer c9_beat matches 1..5 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~35/execute if score #timer c9_beat matches 6..10 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~-25/execute if score #timer c9_beat matches 11..15 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~35/execute if score #timer c9_beat matches 16..20 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~-25/execute if score #timer c9_beat matches 21..39 as @e[tag=c9_dancer] at @s run tp @s ~ ~ ~ ~19 ~/execute if score #timer c9_beat matches 21..25 as @e[tag=c9_dancer] at @s run tp @s ~ ~0.18 ~/execute if score #timer c9_beat matches 26..30 as @e[tag=c9_dancer] at @s run tp @s ~ ~-0.18 ~/execute if score #timer c9_beat matches 1 run particle note ~ ~1.5 ~ 3 1 3 1 25 force/execute if score #timer c9_beat matches 21 run particle flash ~ ~3 ~ 2 1 2 0 3 force/execute if score #timer c9_beat matches 11 run playsound block.note_block.bass master @a ~ ~ ~ 1 0.8/execute if score #timer c9_beat matches 21 run playsound block.note_block.bit master @a ~ ~ ~ 1 1.5/execute as @e[tag=c9_dancer] at @s run particle dust{color:[1.0,0.1,0.8],scale:1.2} ~ ~0.2 ~ 0.3 0.1 0.3 0 1 forceloop #1 Increments the fake player <code>#timer</code> on the <code>c9_beat</code> objective by 1 every tick, creating a 2-second (40-tick) animation cycle.loop #3 During the first half of the measure, teleports all rave mobs in place while setting their vertical pitch to <code>35</code> (looking down) and then <code>-25</code> (looking up) in the following command to create a synchronized headbang.loop #7 From ticks 21 to 39, rotates every dancer horizontally by 19 degrees per tick so they complete a full 360-degree spin together.loop #8 Moves the dancers upward by 0.18 blocks per tick for 5 ticks and then back down by 0.18 blocks over the next 5 ticks, creating a clean synchronized jump even though the mobs have <code>NoAI:1b</code>.


Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: A glowing villager stands behind a note block at the center of a sea lantern and pink stained-glass stage, surrounded by a cow, pig, sheep, and chicken that synchronously spin and nod their heads across the frames.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To join the synchronized dance yourself, add the tag to your player with /tag @s add c9_dancer, or remove the setup summons and tag any nearby animals using /tag @e[type=cow,distance=..10] add c9_dancer along with /execute as @e[tag=c9_dancer] run data merge entity @s {NoAI:1b,Glowing:1b}.
/kill @e[tag=c9_rave]/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 grass_block/setblock ~ ~ ~ air/scoreboard objectives remove c9_beatEach animal is summoned with the NoAI:1b tag, which stops normal pathfinding and gravity so the teleport commands have full control over their movement and jumps.
Yes! Summon any mob you like with the tags c9_rave and c9_dancer plus NoAI:1b, and it will automatically sync up with the beat.
/execute/fill/particle/playsound/scoreboard/setblock/summon/tp
▶Accordion-Body Dachshund Carnival ParadeMob ParadesHard24 cmds
▶Barnyard Beat ParadeMob ParadesEasy24 cmds
▶Chromatic Locomotive of SheepMob ParadesEasy20 cmds
▶Synchronized Rainbow Sheep Marching BandMob ParadesEasy24 cmds
▶Blocky Marching Band ParadeMob ParadesHard24 cmds
▶Carnival Carousel Pegasus StampedeMob ParadesHard24 cmds