Build an automated surface-to-air missile turret and a circling glowing drone. The launcher fires vertical rockets that pitch over and intercept the target.
Projectiles & MissilesTechnologyFireIndustrialRedCyanOrangeMap MakingCinematicLearningParticlesBlock displaysItem displaysArmor standsFireworksSmooth animation (interpolation)Scoreboard timersExecute chainsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
This command creation builds an automated surface-to-air missile defence turret in the centre of the stage, surrounded by a glowing reconnaissance drone that orbits overhead. Every few seconds, the launcher fires a glowing rocket straight up on a pillar of smoke and flame before its thermal guidance system engages.
Once the missile reaches altitude, it pitches over and locks onto the moving drone, leaving a bright red tracking trail across the sky until it intercepts the target in a burst of sparks and shockwaves.
/scoreboard objectives add c9_timer dummy/fill ~-1 ~ ~-1 ~1 ~ ~1 iron_block/setblock ~ ~1 ~ lodestone/setblock ~ ~2 ~ dispenser[facing=up]/summon armor_stand ~ ~1 ~ {Tags:["c9_all","c9_actor"],NoGravity:1b,ShowArms:1b,Rotation:[45f,0f],equipment:{head:{id:"minecraft:diamond_helmet",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},legs:{id:"minecraft:diamond_leggings",count:1},feet:{id:"minecraft:diamond_boots",count:1},mainhand:{id:"minecraft:spyglass",count:1}}}/summon armor_stand ~ ~4 ~ {Tags:["c9_all","c9_hub"],Invisible:1b,NoGravity:1b,Marker:1b}/summon armor_stand ~ ~2 ~ {Tags:["c9_all","c9_launcher"],Invisible:1b,NoGravity:1b,Marker:1b}/summon block_display ~ ~4 ~-6 {Tags:["c9_all","c9_target"],Glowing:1b,glow_color_override:65535,teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,0.8f,1.6f],translation:[-0.8f,-0.4f,-0.8f]}}/summon block_display ~ ~2 ~ {Tags:["c9_all","c9_turret"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:observer",Properties:{facing:"up"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.4f,1.4f,1.4f],translation:[-0.7f,-0.5f,-0.7f]}}/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 65.. run scoreboard players set #tick c9_timer 1/execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~6 ~/execute at @e[tag=c9_hub] run tp @e[tag=c9_target,limit=1] ^ ^1 ^6/execute as @e[tag=c9_actor] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_target] run particle dust{color:[0.0,1.0,1.0],scale:2.0} ~ ~ ~ 0.3 0.2 0.3 0 6 force/execute at @e[tag=c9_launcher] run particle dust{color:[1.0,0.6,0.0],scale:1.5} ~ ~0.5 ~ 0.6 0.1 0.6 0 4 force/execute if score #tick c9_timer matches 2 at @e[tag=c9_launcher] run summon item_display ~ ~1 ~ {Tags:["c9_all","c9_missile"],Glowing:1b,glow_color_override:16724787,teleport_duration:1,item:{id:"minecraft:firework_rocket",count:1},transformation:{left_rotation:[0.707f,0f,0f,0.707f],right_rotation:[0f,0f,0f,1f],scale:[2.4f,2.4f,2.4f],translation:[0f,0f,0f]}}/execute if score #tick c9_timer matches 3..14 as @e[tag=c9_missile] at @s run tp @s ~ ~0.48 ~ ~ -90/execute if score #tick c9_timer matches 15..60 as @e[tag=c9_missile] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ^ ^ ^0.75 ~ ~/execute at @e[tag=c9_missile] run particle flame ~ ~ ~ 0.15 0.15 0.15 0.03 10 force/execute at @e[tag=c9_missile] run particle campfire_cosy_smoke ~ ~ ~ 0.1 0.1 0.1 0.01 3 force/execute if score #tick c9_timer matches 15..60 at @e[tag=c9_missile] run particle dust{color:[1.0,0.1,0.1],scale:2.2} ~ ~ ~ 0.1 0.1 0.1 0 8 force/execute as @e[tag=c9_missile] at @s if entity @e[tag=c9_target,distance=..1.8] run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 forcesetup #8 Summons a glowing cyan <code>block_display</code> sea lantern scaled into a wide drone shape, with <code>teleport_duration:1</code> for smooth circling motion.loop #4 Teleports the target drone 6 blocks forward from the rotating central hub entity every tick, creating a smooth circular orbit around the turret.loop #8 Summons a large glowing <code>item_display</code> firework rocket at the start of each 65-tick cycle to act as the surface-to-air missile.loop #9 Launches the missile straight up into the air during ticks 3 to 14 before its homing guidance kicks in.loop #10 Uses <code>facing entity</code> and local coordinates <code>^ ^ ^0.75</code> to steer the missile directly toward the moving drone until impact.


Recorded on our own test server: 52 frames at about 8.7 fps. Our image check saw: A glowing central turret launches a red-outlined rocket upward on a trail of flame and smoke to intercept a cyan-outlined drone orbiting nearby.
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 missiles target hostile mobs or players instead of the practice drone, replace @e[tag=c9_target,limit=1] in loop commands 9 and 13 with @e[type=#minecraft:raiders,limit=1,sort=nearest,distance=..25] or @a[distance=3..25,limit=1,sort=nearest].
/kill @e[tag=c9_all]/fill ~-1 ~ ~-1 ~1 ~2 ~1 air/scoreboard objectives remove c9_timerTicks 3 to 14 run a vertical teleport command to simulate a vertical launch system (VLS) cold launch, and at tick 15 the homing command takes over using local coordinates.
In the fourth loop command, change ^ ^1 ^6 to a larger forward offset like ^ ^3 ^10 to make the drone fly higher and wider around the launcher.
▶Magnetic Rail-Track Javelin AssemblerProjectiles & MissilesExpert22 cmds
▶Steampunk Piston-Hammer Pilebunker GauntletProjectiles & MissilesMedium24 cmds
▶16-Way Automated ArtilleryProjectiles & MissilesHard25 cmds
▶Heat-Seeking Rocket LauncherProjectiles & MissilesMedium19 cmds
▶Homing Missile AirstrikeProjectiles & MissilesHard22 cmds
▶Automated Homing Missile SentryProjectiles & MissilesHard21 cmds