Synchronized Barnyard Rave

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.

Java EditionMobs & PetsEasy24 commandsTested on a real 26.2 & 26.3 server
Glowing farm animals dance around a villager DJ on a brightly lit stained-glass stage at night. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_beat dummy
  2. /scoreboard players set #timer c9_beat 0
  3. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 magenta_stained_glass
  4. /fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 sea_lantern
  5. /setblock ~ ~ ~ note_block
  6. /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"}}
  7. /summon cow ~-3 ~ ~-2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Tags:["c9_rave","c9_dancer"]}
  8. /summon pig ~3 ~ ~-2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Tags:["c9_rave","c9_dancer"]}
  9. /summon sheep ~-3 ~ ~2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Color:6b,Tags:["c9_rave","c9_dancer"]}
  10. /summon chicken ~3 ~ ~2 {NoAI:1b,Glowing:1b,Invulnerable:1b,Tags:["c9_rave","c9_dancer"]}

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

  1. /scoreboard players add #timer c9_beat 1
  2. /execute if score #timer c9_beat matches 40.. run scoreboard players set #timer c9_beat 0
  3. /execute if score #timer c9_beat matches 1..5 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~35
  4. /execute if score #timer c9_beat matches 6..10 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~-25
  5. /execute if score #timer c9_beat matches 11..15 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~35
  6. /execute if score #timer c9_beat matches 16..20 as @e[tag=c9_rave] at @s run tp @s ~ ~ ~ ~ ~-25
  7. /execute if score #timer c9_beat matches 21..39 as @e[tag=c9_dancer] at @s run tp @s ~ ~ ~ ~19 ~
  8. /execute if score #timer c9_beat matches 21..25 as @e[tag=c9_dancer] at @s run tp @s ~ ~0.18 ~
  9. /execute if score #timer c9_beat matches 26..30 as @e[tag=c9_dancer] at @s run tp @s ~ ~-0.18 ~
  10. /execute if score #timer c9_beat matches 1 run particle note ~ ~1.5 ~ 3 1 3 1 25 force
  11. /execute if score #timer c9_beat matches 21 run particle flash ~ ~3 ~ 2 1 2 0 3 force
  12. /execute if score #timer c9_beat matches 11 run playsound block.note_block.bass master @a ~ ~ ~ 1 0.8
  13. /execute if score #timer c9_beat matches 21 run playsound block.note_block.bit master @a ~ ~ ~ 1 1.5
  14. /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 force

How it works

Frames from the test run

Synchronized Barnyard Rave - frame 1Synchronized Barnyard Rave - frame 2Synchronized Barnyard Rave - frame 3

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.

Build it in your world

  1. Stand at the center of an open flat area and run each of the 10 setup commands in chat to build the glowing dance floor and summon the DJ and animals.
  2. Place a line or stack of 14 repeating command blocks nearby and set all of them to Always Active.
  3. Paste one loop command into each repeating command block.
  4. If your command blocks are not right at the center of the dance floor, wrap the coordinate-based particle and sound commands with execute positioned X Y Z run so the effects appear over the note block.
  5. Switch the time to night with /time set midnight to see the glowing outlines, sea lanterns, and flash particles clearly.

Use it with real players

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}.

Remove it again 4 commands

  1. /kill @e[tag=c9_rave]
  2. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 grass_block
  3. /setblock ~ ~ ~ air
  4. /scoreboard objectives remove c9_beat

FAQ

Why don't the animals wander off the dance floor?

Each 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.

Can I add more animals to the rave?

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.

Commands used

/execute/fill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides