Heat-Seeking Missile Intercept

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.

Java EditionWands, Weapons & ToolsMedium23 commandsTested on a real 26.2 & 26.3 server
A glowing rocket launches upward from a central turret on a trail of fire and smoke. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-1 ~ ~-1 ~1 ~ ~1 iron_block
  3. /setblock ~ ~1 ~ lodestone
  4. /setblock ~ ~2 ~ dispenser[facing=up]
  5. /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}}}
  6. /summon armor_stand ~ ~4 ~ {Tags:["c9_all","c9_hub"],Invisible:1b,NoGravity:1b,Marker:1b}
  7. /summon armor_stand ~ ~2 ~ {Tags:["c9_all","c9_launcher"],Invisible:1b,NoGravity:1b,Marker:1b}
  8. /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]}}
  9. /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]}}

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

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 65.. run scoreboard players set #tick c9_timer 1
  3. /execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~6 ~
  4. /execute at @e[tag=c9_hub] run tp @e[tag=c9_target,limit=1] ^ ^1 ^6
  5. /execute as @e[tag=c9_actor] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ~ ~ ~ ~ ~
  6. /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
  7. /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
  8. /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]}}
  9. /execute if score #tick c9_timer matches 3..14 as @e[tag=c9_missile] at @s run tp @s ~ ~0.48 ~ ~ -90
  10. /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 ~ ~
  11. /execute at @e[tag=c9_missile] run particle flame ~ ~ ~ 0.15 0.15 0.15 0.03 10 force
  12. /execute at @e[tag=c9_missile] run particle campfire_cosy_smoke ~ ~ ~ 0.1 0.1 0.1 0.01 3 force
  13. /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
  14. /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 force

How it works

Frames from the test run

Heat-Seeking Missile Intercept - frame 1Heat-Seeking Missile Intercept - frame 2Heat-Seeking Missile Intercept - frame 3

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.

Build it in your world

  1. Stand on a flat open area with at least 15 blocks of clear space around you and run the 9 setup commands in chat.
  2. Verify that the central iron turret base, armored spotter stand, and glowing cyan drone appear above the platform.
  3. Place 14 repeating command blocks (or 1 repeating command block chained into 13 chain command blocks), all set to Always Active.
  4. Paste each of the 14 loop commands in order into the command blocks.
  5. Watch the turret automatically launch vertical missiles that curve in mid-air and intercept the circling drone.

Use it with real players

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].

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-1 ~ ~-1 ~1 ~2 ~1 air
  3. /scoreboard objectives remove c9_timer

FAQ

Why does the missile climb straight up before turning toward the drone?

Ticks 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.

How do I change the orbit radius or altitude of the target drone?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides