Heat-Seeking Rocket Launcher

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.

Java EditionWands, Weapons & ToolsMedium19 commandsTested on a real 26.2 & 26.3 server
An automated turret fires curving, flame-trailed homing rockets at a moving target drone in the night sky. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 5 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #clock c9_timer 0
  3. /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}}}
  4. /summon armor_stand ~2 ~5 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_root","c9_pivot"]}
  5. /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}]}

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

  1. /scoreboard players add #clock c9_timer 1
  2. /execute if score #clock c9_timer matches 75.. run scoreboard players set #clock c9_timer 1
  3. /execute as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~4 ~
  4. /execute at @e[tag=c9_pivot] run tp @e[tag=c9_target,limit=1] ^ ^ ^7
  5. /execute at @e[tag=c9_target] run particle electric_spark ~ ~0.5 ~ 0.2 0.2 0.2 0.02 2 force
  6. /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]}}
  7. /execute if score #clock c9_timer matches 5 at @e[tag=c9_actor] run playsound entity.firework_rocket.launch master @a ~ ~ ~ 2 0.7
  8. /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
  9. /execute as @e[tag=c9_rocket] run scoreboard players add @s c9_timer 1
  10. /execute as @e[tag=c9_rocket,scores={c9_timer=1..14}] at @s run tp @s ^ ^0.18 ^0.55 ~ ~2
  11. /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 ~ ~ ~ ~ ~
  12. /execute at @e[tag=c9_rocket] run particle flame ~ ~ ~ 0.06 0.06 0.06 0.02 5 force
  13. /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
  14. /execute as @e[tag=c9_rocket] at @s if entity @e[tag=c9_target,distance=..1.4] run scoreboard players set @s c9_timer 65

How it works

Frames from the test run

Heat-Seeking Rocket Launcher - frame 1Heat-Seeking Rocket Launcher - frame 2Heat-Seeking Rocket Launcher - frame 3

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.

Build it in your world

  1. Create a flat clearing and stand at the center where you want the scene to take place.
  2. Run each command from the Setup list one by one in chat to create the scoreboard, the rocket turret on the left, and the circling target drone on the right.
  3. Place a column or line of 14 Repeating Command Blocks set to Always Active near the center of your stage.
  4. Paste one command from the Loop list into each repeating command block.
  5. Add one extra repeating command block with: /execute as @e[tag=c9_rocket,scores={c9_timer=65..}] at @s run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 force followed by /kill @e[tag=c9_rocket,scores={c9_timer=65..}] in a chain block to detonate the rocket on impact.

Use it with real players

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

Remove it again 2 commands

  1. /kill @e[tag=c9_root]
  2. /scoreboard objectives remove c9_timer

FAQ

Why do we need a transformation rotation on the firework rocket display entity?

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

How can I make the rocket fly faster or slower?

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.

Commands used

/execute/particle/playsound/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides