Sky-Diving Missile Pigs

Summon a squadron of jetpack pigs that launch high into the sky, lock onto a ground target, and dive down like guided missiles with fiery explosions.

Java EditionMobs & PetsMedium20 commandsTested on a real 26.2 & 26.3 server
Four glowing pigs launch into the night sky with fiery rocket trails around a target dummy. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsFireTechnologyPinkOrangeRedMini-gamePvPBoss FightArmor standsSummoned mobsRotation math13-20 commands

The Sky-Diving Missile Pigs command creation turns ordinary farm animals into an aerial strike force. Every few seconds, four saddled pigs launch from the corners of the arena with glowing rocket trails, climb high above the ground, hover in formation while locking onto a target dummy at the center, and then dive down like homing missiles.

Using scoreboard timers, directional teleportation, and colorful particle emitters, the pigs leave behind thick smoke clouds and orange jet flames before crashing into the target with a harmless explosion burst.

1. Setup - type these once 6 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /team add c9_red
  3. /team modify c9_red color red
  4. /summon armor_stand ~ ~ ~ {Tags:["c9_actor","c9_ctrl"],NoGravity:1b,Invulnerable:1b,Glowing:1b,CustomName:'{"text":"Missile Commander","color":"gold"}',CustomNameVisible:1b,ArmorItems:[{},{},{id:"minecraft:golden_chestplate",count:1},{id:"minecraft:carved_pumpkin",count:1}]}
  5. /summon husk ~ ~ ~ {Tags:["c9_target"],NoAI:1b,Invulnerable:1b,Glowing:1b,Silent:1b,Team:"c9_red",CustomName:'{"text":"Target Dummy","color":"red"}',CustomNameVisible:1b,ArmorItems:[{},{},{},{id:"minecraft:tnt",count:1}]}
  6. /scoreboard players set @e[tag=c9_ctrl] c9_timer 0

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_timer 1
  2. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 run summon pig ~5 ~ ~5 {Tags:["c9_pig"],NoGravity:1b,Invulnerable:1b,Glowing:1b,NoAI:1b,Saddle:1b}
  3. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 run summon pig ~-5 ~ ~5 {Tags:["c9_pig"],NoGravity:1b,Invulnerable:1b,Glowing:1b,NoAI:1b,Saddle:1b}
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 run summon pig ~5 ~ ~-5 {Tags:["c9_pig"],NoGravity:1b,Invulnerable:1b,Glowing:1b,NoAI:1b,Saddle:1b}
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 run summon pig ~-5 ~ ~-5 {Tags:["c9_pig"],NoGravity:1b,Invulnerable:1b,Glowing:1b,NoAI:1b,Saddle:1b}
  6. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 2..36 as @e[tag=c9_pig] at @s run tp @s ~ ~0.4 ~ ~15 -75
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 37..55 as @e[tag=c9_pig] at @s facing entity @e[tag=c9_target,limit=1] eyes run tp @s ~ ~0.04 ~ ~ ~
  8. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 56..95 as @e[tag=c9_pig] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ^ ^ ^0.75
  9. /execute as @e[tag=c9_pig] at @s run particle flame ~ ~0.3 ~ 0.1 0.1 0.1 0.03 5 force
  10. /execute as @e[tag=c9_pig] at @s run particle campfire_cosy_smoke ~ ~0.3 ~ 0.05 0.05 0.05 0.01 1 force
  11. /execute at @e[tag=c9_target] run particle dust{color:[1.0,0.1,0.1],scale:1.5} ~ ~1 ~ 0.4 0.6 0.4 0 3 force
  12. /execute as @e[tag=c9_pig] at @s if entity @e[tag=c9_target,distance=..1.6] run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 force
  13. /execute as @e[tag=c9_pig] at @s if entity @e[tag=c9_target,distance=..1.6] run tp @s ~ -200 ~
  14. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 100.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 0

How it works

Frames from the test run

Sky-Diving Missile Pigs - frame 1Sky-Diving Missile Pigs - frame 2Sky-Diving Missile Pigs - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: Four glowing pigs launch into the night sky with flame and smoke trails around a central glowing red armor stand, though they appear to dive toward a spot over the water behind the target.

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. Enable command blocks in your world and switch to Creative mode.
  2. Stand at the center of an open flat area and run each of the 6 setup commands in your chat window.
  3. Place a line of 14 Repeating Command Blocks nearby and set all of them to Always Active.
  4. Paste one loop command into each repeating command block in order from 1 to 14.
  5. Watch as four missile pigs launch every 5 seconds, lock onto the red Target Dummy, and dive down with explosive trails.

Use it with real players

To make the missile pigs target real monsters around you instead of the dummy, remove the husk summon command and replace @e[tag=c9_target,limit=1] in the loop commands with @e[type=#minecraft:raiders,sort=nearest,limit=1] or @e[type=zombie,sort=nearest,limit=1]. You can also add a /damage command right before the pig teleports into the void so the impact deals real explosion damage to enemies.

Remove it again 5 commands

  1. /kill @e[tag=c9_pig]
  2. /kill @e[tag=c9_target]
  3. /kill @e[tag=c9_ctrl]
  4. /scoreboard objectives remove c9_timer
  5. /team remove c9_red

FAQ

Do the pig explosions destroy blocks in my world?

No, the explosions use the explosion_emitter particle effect rather than actual TNT, so your builds and terrain stay completely safe.

Why do the pigs teleport to Y -200 instead of using /kill?

Teleporting them deep into the void removes them cleanly without leaving behind porkchop drops or death smoke clouds on the stage.

Commands used

/execute/particle/scoreboard/summon/team/tp

Similar creations

Join 9Minecraft News & Guides