Autonomous Interceptor Missile

Command-guided interceptor missile calculates real-time 3D velocity vectors midair to track and strike a fast-moving aerial target with explosion visuals.

Java EditionWands, Weapons & ToolsExpert24 commandsTested on a real 26.2 & 26.3 server
A glowing target block flies overhead as a flaming interceptor missile launches upward from a blackstone pad. Download the GIF Video & GIF © www.9minecraft.net

Projectiles & MissilesTechnologyFireRedOrangeBlackCinematicLearningMap MakingBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

A glowing crimson target drone orbits high above a central launch pad while an autonomous interceptor missile blasts straight upward from the silo. Midair, the missile continuously calculates a steering velocity vector—blending its forward momentum with the direction toward the moving target—to curve cleanly through the sky and detonate on impact.

Using block_display interpolation and marker-based 3D vector addition, the pursuit stays smooth every tick without data packs or mods.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:deepslate_tiles
  3. /fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:polished_deepslate_slab[type=bottom]
  4. /setblock ~ ~-1 ~ minecraft:sea_lantern
  5. /setblock ~ ~ ~ minecraft:dispenser[facing=up]
  6. /summon minecraft:marker ~ ~1 ~ {Tags:["c9_pad"]}
  7. /summon minecraft:marker ~ ~12.5 ~ {Tags:["c9_orbit"]}
  8. /summon minecraft:marker ~ ~1 ~ {Tags:["c9_guide"]}
  9. /summon minecraft:block_display ~ ~12.5 ~10 {Tags:["c9_target","c9_boom"],Glowing:1b,glow_color_override:16724787,teleport_duration:1,brightness:{sky:15,block:15},block_state:{Name:"minecraft:target"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.45f,-0.45f,-0.45f],scale:[0.9f,0.9f,0.9f]}}
  10. /scoreboard players set #cycle c9_t 0

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

  1. /scoreboard players add #cycle c9_t 1
  2. /execute if score #cycle c9_t matches 80.. run scoreboard players set #cycle c9_t 0
  3. /execute if score #cycle c9_t matches 65 unless entity @e[tag=c9_target] at @e[tag=c9_orbit,limit=1] run summon minecraft:block_display ^ ^ ^10 {Tags:["c9_target","c9_boom"],Glowing:1b,glow_color_override:16724787,teleport_duration:1,brightness:{sky:15,block:15},block_state:{Name:"minecraft:target"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.45f,-0.45f,-0.45f],scale:[0.9f,0.9f,0.9f]}}
  4. /execute as @e[tag=c9_orbit,limit=1] at @s run tp @s ~ ~ ~ ~3.5 0
  5. /execute at @e[tag=c9_orbit,limit=1] run tp @e[tag=c9_target,limit=1] ^ ^ ^10 ~ ~
  6. /execute at @e[tag=c9_target,limit=1] run particle minecraft:dust{color:[1.0,0.15,0.2],scale:1.1} ~ ~ ~ 0.1 0.1 0.1 0 2 force
  7. /execute if score #cycle c9_t matches 5 unless entity @e[tag=c9_missile] at @e[tag=c9_pad,limit=1] run summon minecraft:block_display ~ ~0.4 ~ {Tags:["c9_missile","c9_boom"],Rotation:[0f,-88f],Glowing:1b,glow_color_override:16744448,teleport_duration:1,brightness:{sky:15,block:15},block_state:{Name:"minecraft:end_rod",Properties:{facing:"south"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-0.5f,-0.5f],scale:[1.1f,1.1f,1.1f]}}
  8. /execute if entity @e[tag=c9_missile] if entity @e[tag=c9_target] at @e[tag=c9_missile,limit=1] run tp @e[tag=c9_guide,limit=1] ^ ^ ^4.0
  9. /execute if entity @e[tag=c9_missile] if entity @e[tag=c9_target] as @e[tag=c9_guide,limit=1] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ^ ^ ^1.15
  10. /execute if entity @e[tag=c9_missile] if entity @e[tag=c9_target] as @e[tag=c9_missile,limit=1] at @s facing entity @e[tag=c9_guide,limit=1] feet run tp @s ^ ^ ^0.85 ~ ~
  11. /execute at @e[tag=c9_missile,limit=1] run particle minecraft:flame ~ ~ ~ 0.05 0.05 0.05 0.02 4 force
  12. /execute at @e[tag=c9_missile,limit=1] if entity @e[tag=c9_target,distance=..1.8] run tag @e[tag=c9_boom] add c9_dead
  13. /execute at @e[tag=c9_target,tag=c9_dead,limit=1] run particle minecraft:explosion_emitter ~ ~ ~ 0.4 0.4 0.4 0 2 force
  14. /kill @e[tag=c9_dead]

How it works

Frames from the test run

Autonomous Interceptor Missile - frame 1Autonomous Interceptor Missile - frame 2Autonomous Interceptor Missile - frame 3

Recorded on our own test server: 44 frames at about 8.7 fps. Our image check saw: A glowing red target block moves across the night sky while a lightning-rod missile with a flame trail launches from a central blackstone pad and angles toward it, though the impact is not shown.

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. Clear a flat open area at least 30x30 blocks wide with 25 blocks of clear sky above the center.
  2. Stand on the block right above the ground at the center of your arena and run all 10 setup commands in order.
  3. Place 14 repeating command blocks in a row, set every one to Always Active, and paste one loop command into each block in order.
  4. Set the world time to night for the best contrast on the glowing displays and rocket particles.
  5. Watch the launcher fire automatically every 4 seconds as the missile tracks and destroys the orbiting target drone.

Use it with real players

To make the missile hunt real players or flying mobs instead of the demo drone, tag your target with /tag <target> add c9_target (such as @p or a flying phantom), remove the orbit movement and target respawn command blocks (loop commands 3 through 6), and swap the explosion_emitter particle for a real /summon minecraft:tnt ~ ~ ~ {fuse:0} at impact if you want explosive damage.

Remove it again 7 commands

  1. /kill @e[tag=c9_boom]
  2. /kill @e[tag=c9_pad]
  3. /kill @e[tag=c9_orbit]
  4. /kill @e[tag=c9_guide]
  5. /scoreboard objectives remove c9_t
  6. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:grass_block
  7. /fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:air

FAQ

How does the missile calculate its velocity vector without scoreboards for X, Y, and Z?

It performs 3D vector addition directly in world space using the <code>c9_guide</code> marker: placing it 4.0 blocks ahead along the current heading and shifting it 1.15 blocks toward the target produces a smooth resultant vector that balances momentum and turning speed.

Can the missile ever miss the target and fly away forever?

Because the missile travels at 0.85 blocks per tick—roughly 40% faster than the target—and turns up to 16 degrees per tick, it always spirals inward and intersects the 1.8-block detonation sphere well before the 4-second cycle resets.

Commands used

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

Similar creations

Join 9Minecraft News & Guides