Pigstep Rhythm Obstacle Show

Watch a glowing Nether arena come alive with pulsing blocks, sweeping crimson lasers, and bouncing pillars all synced to the beat of Pigstep.

Java EditionHolograms & Display EntitiesHard26 commandsTested on a real 26.2 & 26.3 server
A giant music disc spins over a gold block surrounded by pulsing glowing pillars on a dark platform. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsMusicNetherFireGoldRedOrangeMini-gameServer LobbyDecorationParticlesBlock displaysItem displaysArmor standsSmooth animation (interpolation)Scoreboard timersExecute chainsBlock building (fill/setblock/clone)SoundsGlowing outlinesRotation math21+ commands

The Pigstep Rhythm Obstacle Show turns a simple flat area into an animated Nether concert and hazard course. A golden central speaker and a giant floating music disc spin and pulse while the Pigstep track plays, driving four glowing magma pillars and two sweeping laser beams in a 40-tick rhythm cycle.

An autonomous armor stand dancer hopped up on gold armor jumps over the lasers as they sweep across the blackstone dance floor, showing off how display entity transformations and scoreboard beat clocks can work together without any mods or data packs.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_beat dummy
  2. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 polished_blackstone
  3. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 chiseled_polished_blackstone
  4. /setblock ~ ~-1 ~ gilded_blackstone
  5. /summon block_display ~ ~ ~ {Tags:["c9_show","c9_core"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:gold_block"},transformation:{translation:[-0.75f,0.2f,-0.75f],scale:[1.5f,1.5f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon item_display ~ ~3.2 ~ {Tags:["c9_show","c9_disc"],Glowing:1b,glow_color_override:16724787,item:{id:"minecraft:music_disc_pigstep",count:1},transformation:{translation:[0f,0f,0f],scale:[2.5f,2.5f,2.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon block_display ~4 ~ ~4 {Tags:["c9_show","c9_pillar","c9_p1"],Glowing:1b,glow_color_override:16733525,block_state:{Name:"minecraft:magma_block"},transformation:{translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon block_display ~-4 ~ ~-4 {Tags:["c9_show","c9_pillar","c9_p1"],Glowing:1b,glow_color_override:16733525,block_state:{Name:"minecraft:magma_block"},transformation:{translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon block_display ~-4 ~ ~4 {Tags:["c9_show","c9_pillar","c9_p2"],Glowing:1b,glow_color_override:5636095,block_state:{Name:"minecraft:shroomlight"},transformation:{translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /summon armor_stand ~ ~ ~-3.5 {Tags:["c9_show","c9_actor"],NoGravity:1b,ShowArms:1b,equipment:{head:{id:"minecraft:piglin_head",count:1},chest:{id:"minecraft:golden_chestplate",count:1},legs:{id:"minecraft:golden_leggings",count:1},feet:{id:"minecraft:golden_boots",count:1}}}

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

  1. /scoreboard players add #tick c9_beat 1
  2. /execute if score #tick c9_beat matches 1 run playsound minecraft:music_disc.pigstep record @a ~ ~ ~ 4 1
  3. /execute if score #tick c9_beat matches 41.. run scoreboard players set #tick c9_beat 1
  4. /execute as @e[tag=c9_disc] at @s run tp @s ~ ~ ~ ~9 ~
  5. /execute if score #tick c9_beat matches 1 run data merge entity @e[tag=c9_core,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{translation:[-1.1f,0.2f,-1.1f],scale:[2.2f,2.2f,2.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /execute if score #tick c9_beat matches 6 run data merge entity @e[tag=c9_core,limit=1] {start_interpolation:0,interpolation_duration:10,transformation:{translation:[-0.75f,0.2f,-0.75f],scale:[1.5f,1.5f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute if score #tick c9_beat matches 21 run data merge entity @e[tag=c9_core,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{translation:[-1.1f,0.2f,-1.1f],scale:[2.2f,2.2f,2.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score #tick c9_beat matches 26 run data merge entity @e[tag=c9_core,limit=1] {start_interpolation:0,interpolation_duration:10,transformation:{translation:[-0.75f,0.2f,-0.75f],scale:[1.5f,1.5f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score #tick c9_beat matches 1 as @e[tag=c9_p1] run data merge entity @s {start_interpolation:0,interpolation_duration:5,transformation:{translation:[-0.6f,0f,-0.6f],scale:[1.2f,4.5f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute if score #tick c9_beat matches 10 as @e[tag=c9_p1] run data merge entity @s {start_interpolation:0,interpolation_duration:10,transformation:{translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  11. /execute if score #tick c9_beat matches 21 as @e[tag=c9_p2] run data merge entity @s {start_interpolation:0,interpolation_duration:5,transformation:{translation:[-0.6f,0f,-0.6f],scale:[1.2f,4.5f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  12. /execute if score #tick c9_beat matches 30 as @e[tag=c9_p2] run data merge entity @s {start_interpolation:0,interpolation_duration:10,transformation:{translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  13. /execute if score #tick c9_beat matches 1..5 run particle dust{color:[1.0,0.15,0.0],scale:2.0} ~ ~0.6 ~-3.5 3.5 0.05 0.05 0 45
  14. /execute if score #tick c9_beat matches 1 run tp @e[tag=c9_actor] ~ ~1.3 ~-3.5
  15. /execute if score #tick c9_beat matches 8 run tp @e[tag=c9_actor] ~ ~ ~-3.5
  16. /execute if score #tick c9_beat matches 21 run particle note ~ ~3.5 ~ 2 0.8 2 1 18

How it works

Frames from the test run

Pigstep Rhythm Obstacle Show - frame 1Pigstep Rhythm Obstacle Show - frame 2Pigstep Rhythm Obstacle Show - frame 3

Recorded on our own test server: 43 frames at about 8.5 fps. Our image check saw: A blackstone platform features a central glowing gold block with a spinning giant music disc, pulsing shroomlight and magma pillars, red particle beams, and musical notes.

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 in the center of a flat open area and run the 10 setup commands in chat or in an impulse command block to build the blackstone stage and summon the display entities.
  2. Place a line of 16 repeating command blocks (set to Always Active) near the stage.
  3. Paste one loop command into each repeating command block in order.
  4. Make sure the command blocks are positioned relative to the stage center or wrap them with <code>execute positioned X Y Z run ...</code> matching your stage center coordinates.
  5. Turn up your Record/Jukebox sound volume in Minecraft settings to hear Pigstep play along with the beat.

Use it with real players

To turn the laser beam into a real hazard for players jumping on the stage, remove the c9_actor armor stand and add a repeating command that checks during beats 1 to 5: /execute if score #tick c9_beat matches 1..5 as @a[dx=6,dy=1,dz=-3] run damage @s 4 minecraft:magic. Players will have to time their jumps to the golden core pulse to avoid taking laser damage.

Remove it again 4 commands

  1. /stopsound @a record minecraft:music_disc.pigstep
  2. /kill @e[tag=c9_show]
  3. /scoreboard objectives remove c9_beat
  4. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block

FAQ

Why don't I hear the Pigstep music playing?

Check your Minecraft Audio Settings and make sure the Jukebox/Note Blocks slider is turned up, as the command plays the sound on the record channel.

Can I change the speed of the rhythm pulses?

Yes! Lower the reset number in the third loop command from 41 to a smaller number like 21 for double-time beats, and adjust the tick numbers in the other loop commands to match.

Commands used

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

Similar creations

Join 9Minecraft News & Guides