Build a homing missile launcher in vanilla Minecraft using only commands. The rocket flies up, locks onto a moving target, and curves mid-air to strike it.
Projectiles & MissilesTechnologyFireIndustrialOrangeRedWhitePvPBoss FightMini-gameItem displaysArmor standsFireworksSmooth animation (interpolation)Summoned mobsSoundsRotation math13-20 commands
This command creation sets up an automated missile turret that launches heat-seeking rockets at a moving target drone. Instead of flying in a straight line, the projectile climbs into the sky first before smoothly curving its trajectory to intercept the glowing target.
It works by blending two movement phases using a scoreboard timer: an initial vertical boost and a gradual facing-angle adjustment that steers the rocket toward its quarry, trailing bright red plasma and smoke along its curved flight path.
/scoreboard objectives add c9_timer dummy/scoreboard players set #clock c9_timer 0/summon armor_stand ~-8 ~ ~ {NoGravity:1b,Invisible:0b,ShowArms:1b,Glowing:1b,CustomName:{"text":"Rocket Turret","color":"gold"},Tags:["c9_root","c9_actor"],Rotation:[-90f,0f],equipment:{head:{id:"minecraft:dispenser",count:1},chest:{id:"minecraft:iron_chestplate",count:1},mainhand:{id:"minecraft:spyglass",count:1}}}/summon armor_stand ~2 ~5 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_root","c9_pivot"]}/summon breeze ~8 ~5 ~ {NoAI:1b,NoGravity:1b,Glowing:1b,Silent:1b,CustomName:{"text":"Target Drone","color":"aqua"},Tags:["c9_root","c9_target"],active_effects:[{id:"minecraft:resistance",amplifier:4,duration:999999,show_particles:0b}]}/scoreboard players add #clock c9_timer 1/execute if score #clock c9_timer matches 75.. run scoreboard players set #clock c9_timer 1/execute as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~4 ~/execute at @e[tag=c9_pivot] run tp @e[tag=c9_target,limit=1] ^ ^ ^7/execute at @e[tag=c9_target] run particle electric_spark ~ ~0.5 ~ 0.2 0.2 0.2 0.02 2 force/execute if score #clock c9_timer matches 5 at @e[tag=c9_actor] run summon item_display ~ ~1.6 ~ {Tags:["c9_root","c9_rocket"],Glowing:1b,glow_color_override:16724736,teleport_duration:1,Rotation:[-90f,-65f],item:{id:"minecraft:firework_rocket",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.707f,0f,0f,0.707f],scale:[1.6f,1.6f,1.6f],translation:[0f,0f,0f]}}/execute if score #clock c9_timer matches 5 at @e[tag=c9_actor] run playsound entity.firework_rocket.launch master @a ~ ~ ~ 2 0.7/execute if score #clock c9_timer matches 5 at @e[tag=c9_actor] run particle campfire_cosy_smoke ~ ~1.5 ~ 0.3 0.3 0.3 0.03 15 force/execute as @e[tag=c9_rocket] run scoreboard players add @s c9_timer 1/execute as @e[tag=c9_rocket,scores={c9_timer=1..14}] at @s run tp @s ^ ^0.18 ^0.55 ~ ~2/execute as @e[tag=c9_rocket,scores={c9_timer=15..}] at @s facing entity @e[tag=c9_target,limit=1] eyes positioned ^ ^ ^0.75 facing entity @e[tag=c9_target,limit=1] eyes run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_rocket] run particle flame ~ ~ ~ 0.06 0.06 0.06 0.02 5 force/execute at @e[tag=c9_rocket] run particle dust{color:[1.0,0.2,0.0],scale:1.6} ~ ~ ~ 0.1 0.1 0.1 0 4 force/execute as @e[tag=c9_rocket] at @s if entity @e[tag=c9_target,distance=..1.4] run scoreboard players set @s c9_timer 65loop #4 Moves the target Breeze in a smooth circle around the central invisible pivot marker using local coordinates (<code>^ ^ ^7</code>) as the pivot spins 4 degrees per tick.loop #6 Every 75 ticks, summons a scaled-up firework <code>item_display</code> pitched steeply upward (<code>-65f</code>) from the turret, rotated with a quaternion so the nose points forward.loop #10 During the first 14 ticks of flight, the rocket climbs along a high arc before the homing system activates, creating the iconic upward launch curve.loop #11 After tick 15, the rocket locks onto the target using <code>facing entity</code> and steps forward <code>0.75</code> blocks per tick while updating its visual orientation to point at the moving target.loop #14 Detects when the rocket comes within 1.4 blocks of the target and fast-forwards its timer to trigger cleanup.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A glowing turret in the foreground launches rockets that leave curved trails of fire particles in the night sky to hit a moving glowing target drone.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let real players fire homing rockets instead of the turret armor stand, replace @e[tag=c9_actor] in the summon command with @a[tag=rocket_shooter] and replace @e[tag=c9_target,limit=1] in the homing command with @e[type=#minecraft:raiders,distance=..32,sort=nearest,limit=1] (or any mob type you want to target).
/kill @e[tag=c9_root]/scoreboard objectives remove c9_timerBy default, an item_display holds a firework rocket vertically upright. Rotating right_rotation by 90 degrees on the X axis tilts the rocket model horizontally so its tip points along its direction of travel.
Change the step distance in loop command 11 from ^ ^ ^0.75 to a higher number like ^ ^ ^1.1 for a supersonic missile, or ^ ^ ^0.45 for a slower torpedo.
▶Magnetic Rail-Track Javelin AssemblerProjectiles & MissilesExpert22 cmds
▶Steampunk Piston-Hammer Pilebunker GauntletProjectiles & MissilesMedium24 cmds
▶16-Way Automated ArtilleryProjectiles & MissilesHard25 cmds
▶Homing Missile AirstrikeProjectiles & MissilesHard22 cmds
▶Automated Homing Missile SentryProjectiles & MissilesHard21 cmds
▶Nuclear Missile Launch and DetonationProjectiles & MissilesHard24 cmds