Watch an ordinary pig break the sound barrier as it ricochets around a fenced ice arena with an armored rider, neon trails, and sonic booms.
Custom MobsIceLightningPinkCyanBlueMini-gameDecorationArmor standsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)SoundsRotation math21+ commands
This command creation turns a humble pig into a sound-barrier-breaking projectile. Inside a fenced packed-ice arena, an armored rider holding a carrot on a stick hangs on while the glowing pig charges up with electric sparks and launches into rapid multi-block dashes.
Each dash leaves behind bright magenta and cyan neon particle streaks, fiery sparks, and full sonic boom shockwaves as the pig ricochets from wall to wall.
/scoreboard objectives add c9_timer dummy/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 packed_ice/fill ~-8 ~ ~-8 ~8 ~ ~8 oak_fence outline/fill ~-7 ~ ~-7 ~7 ~ ~7 air/summon pig ~ ~ ~3 {Tags:["c9_pig","c9_cleanup"],CustomName:{text:"TURBO OINK",color:"light_purple",bold:true},CustomNameVisible:1b,Glowing:1b,Invulnerable:1b,PersistenceRequired:1b,NoAI:1b,equipment:{saddle:{id:"minecraft:saddle",count:1}},Passengers:[{id:"minecraft:armor_stand",Tags:["c9_actor","c9_cleanup"],ShowArms:1b,Small:1b,CustomName:{text:"Rider",color:"gold",bold:true},CustomNameVisible:1b,equipment:{mainhand:{id:"minecraft:carrot_on_a_stick",count:1},head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1}}}]}/team add c9_pink/team modify c9_pink color light_purple/team join c9_pink @e[tag=c9_pig]/scoreboard players add @e[tag=c9_pig] c9_timer 1/execute as @e[tag=c9_pig,scores={c9_timer=1..14}] at @s run particle electric_spark ~ ~0.6 ~ 0.6 0.5 0.6 0.4 20 force/execute as @e[tag=c9_pig,scores={c9_timer=1..14}] at @s run tp @s ~ ~ ~ ~35 ~/execute as @e[tag=c9_pig,scores={c9_timer=15}] at @s run particle sonic_boom ~ ~0.8 ~ 0 0 0 0 1 force/execute as @e[tag=c9_pig,scores={c9_timer=15}] at @s run playsound entity.warden.sonic_boom master @a ~ ~ ~ 0.7 1.5/execute as @e[tag=c9_pig,scores={c9_timer=15..64}] at @s run tp @s ^ ^ ^0.95 ~13 ~/execute as @e[tag=c9_pig,scores={c9_timer=27}] at @s run particle sonic_boom ~ ~0.8 ~ 0 0 0 0 1 force/execute as @e[tag=c9_pig,scores={c9_timer=39}] at @s run particle sonic_boom ~ ~0.8 ~ 0 0 0 0 1 force/execute as @e[tag=c9_pig,scores={c9_timer=51}] at @s run particle sonic_boom ~ ~0.8 ~ 0 0 0 0 1 force/execute as @e[tag=c9_pig,scores={c9_timer=15..64}] at @s run particle dust{color:[1.0,0.1,0.8],scale:2.5} ~ ~0.5 ~ 0.35 0.25 0.35 0 20 force/execute as @e[tag=c9_pig,scores={c9_timer=15..64}] at @s run particle dust{color:[0.1,0.9,1.0],scale:2.0} ~ ~0.7 ~ 0.3 0.2 0.3 0 15 force/execute as @e[tag=c9_pig,scores={c9_timer=15..64}] at @s run particle flame ~ ~0.2 ~ 0.25 0.1 0.25 0.05 10 force/execute as @e[tag=c9_pig] at @s run tp @e[tag=c9_actor,limit=1] ~ ~ ~ ~ ~/execute as @e[tag=c9_pig,scores={c9_timer=65..}] run tp @s ~ ~ ~3 0 0/scoreboard players set @e[tag=c9_pig,scores={c9_timer=65..}] c9_timer 0setup #5 Summons the glowing pig with an armored stand rider as a passenger. It uses the modern <code>equipment</code> compound and SNBT text components for custom names.loop #2 During the first 14 ticks of the cycle, the pig spins rapidly in place and showers electric sparks to telegraph its launch.loop #6 Moves the pig forward nearly a full block per tick using local coordinates (<code>^ ^ ^0.95</code>) while turning 13 degrees each tick so it curves around the arena.loop #10 Draws a thick neon pink and cyan particle wake behind the dashing pig alongside sonic boom bursts every 12 ticks.


Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A glowing pig with an armored rider dashes in a circle inside a fenced ice arena, leaving a circular trail of magenta and cyan particles, fire sparks, and a sonic boom ring.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger the hyperspeed dash yourself while riding any saddled pig, hold a carrot on a stick and replace the timer trigger with a scoreboard objective tracking minecraft.used:minecraft.carrot_on_a_stick, or mount the c9_pig directly after removing the armor stand rider.
/kill @e[tag=c9_cleanup]/scoreboard objectives remove c9_timer/team remove c9_pink/fill ~-8 ~ ~-8 ~8 ~ ~8 air/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 grass_blockJava Edition 1.21.5 and 26.x replaced ArmorItems and HandItems with the single equipment compound, and CustomName now takes a direct SNBT compound rather than a quoted JSON string.
Yes! Adjust the forward step in ^ ^ ^0.95 or the turn angle ~13 ~ in the sixth loop command to make the circle wider or tighter.
▶Polar Aurora Ice-Sculpture BearCustom MobsHard24 cmds
▶Prismatic Stained-Glass Peacock UnfurlingCustom MobsHard24 cmds
▶Arcane Archmage DuelCustom MobsHard24 cmds
▶Lethal Snow Golem vs. Fireproof SkeletonCustom MobsEasy24 cmds
▶Rapid-Fire Frost SentryCustom MobsEasy24 cmds
▶Tempest Behemoth BossCustom MobsExpert23 cmds