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.
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.
/scoreboard objectives add c9_timer dummy/team add c9_red/team modify c9_red color red/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}]}/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}]}/scoreboard players set @e[tag=c9_ctrl] c9_timer 0/scoreboard players add @e[tag=c9_ctrl] c9_timer 1/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}/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}/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}/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}/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/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 ~ ~ ~/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/execute as @e[tag=c9_pig] at @s run particle flame ~ ~0.3 ~ 0.1 0.1 0.1 0.03 5 force/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/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/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/execute as @e[tag=c9_pig] at @s if entity @e[tag=c9_target,distance=..1.6] run tp @s ~ -200 ~/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 100.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 0loop #1 Advances the master <code>c9_timer</code> score on the controller armor stand by 1 every tick, creating a 5-second (100-tick) launch cycle.loop #6 During ticks 2 to 36, each pig climbs 0.4 blocks per tick into the sky while spinning upwards at a steep -75 pitch angle.loop #7 During ticks 37 to 55, the pigs slow their climb and rotate in mid-air to face the target dummy using the <code>facing entity</code> subcommand.loop #8 From tick 56 onward, the pigs propel forward 0.75 blocks per tick using local coordinates (<code>^ ^ ^0.75</code>) straight toward the target's feet.loop #12 Detects when a diving missile pig comes within 1.6 blocks of the target dummy and triggers a large explosion particle effect before the next command teleports the pig into the void.


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.
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.
/kill @e[tag=c9_pig]/kill @e[tag=c9_target]/kill @e[tag=c9_ctrl]/scoreboard objectives remove c9_timer/team remove c9_redNo, the explosions use the explosion_emitter particle effect rather than actual TNT, so your builds and terrain stay completely safe.
Teleporting them deep into the void removes them cleanly without leaving behind porkchop drops or death smoke clouds on the stage.
▶Autonomous Parkour RunnerCustom MobsHard24 cmds
▶Autonomous Pig-Piloted TankCustom MobsHard22 cmds
▶Jetpack Pillager PatrolCustom MobsMedium21 cmds
▶Jetpack Vindicator SquadronCustom MobsMedium24 cmds
▶Tactical Cover SentriesCustom MobsHard26 cmds
▶The Unkillable Zombie vs. Automated Firing SquadCustom MobsEasy24 cmds