Heat-Seeking Missile Test

A slow-moving firework missile launches vertically from a turret, locks onto a circling target drone, and curves through the air before exploding.

Java EditionFireworks & Light ShowsMedium23 commandsTested on a real 26.2 & 26.3 server
A homing firework missile launches upward, arcs through the night sky, and explodes against a glowing target drone. Download the GIF Video & GIF © www.9minecraft.net

Firework ShowsTechnologyFireRedOrangeWhitePvPMap MakingMini-gameParticlesBlock displaysItem displaysArmor standsFireworksScoreboard timersExecute chainsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

Watch an automated launcher fire a heat-seeking firework missile straight into the night sky. After reaching cruising altitude, the projectile locks onto a glowing target drone circling the arena, banking through the air while leaving a thick trail of smoke and flames before detonating on impact.

This creation uses local coordinate offsets to blend vertical climb with direct homing, creating a smooth curved trajectory without complex math or data packs.

1. Setup - type these once 8 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #clock c9_timer 0
  3. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 polished_deepslate
  4. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 iron_block
  5. /setblock ~ ~ ~ dispenser[facing=up]
  6. /summon marker ~ ~ ~ {Tags:["c9_center"]}
  7. /summon armor_stand ~7 ~2.5 ~ {Tags:["c9_target"],NoGravity:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:red_glazed_terracotta",Count:1b}],CustomName:'{"text":"TARGET DRONE","color":"red","bold":true}',CustomNameVisible:1b}
  8. /summon block_display ~7 ~2.5 ~ {Tags:["c9_tdisp"],Glowing:1b,glow_color_override:16711680,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.35f,1.35f,-0.35f],scale:[0.7f,0.7f,0.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add #clock c9_timer 1
  2. /execute if score #clock c9_timer matches 80.. run scoreboard players set #clock c9_timer 0
  3. /execute as @e[tag=c9_center] at @s run tp @s ~ ~ ~ ~4 ~
  4. /execute at @e[tag=c9_center] run tp @e[tag=c9_target] ^ ^2.5 ^7
  5. /execute at @e[tag=c9_target] run tp @e[tag=c9_tdisp] ~ ~ ~
  6. /execute at @e[tag=c9_target] run particle dust{color:[1.0,0.1,0.1],scale:1.5} ~ ~1.7 ~ 0.2 0.2 0.2 0 2 force
  7. /execute if score #clock c9_timer matches 1 run summon item_display ~ ~1.2 ~ {Tags:["c9_missile"],Glowing:1b,glow_color_override:16755200,item:{id:"minecraft:firework_rocket",Count:1b},transformation:{translation:[0f,0f,0f],scale:[1.6f,1.6f,1.6f],left_rotation:[0.7071f,0f,0f,0.7071f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score #clock c9_timer matches 1 run particle lava ~ ~1.2 ~ 0.3 0.2 0.3 0 25 force
  9. /execute if score #clock c9_timer matches 2..16 as @e[tag=c9_missile] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ~ ~0.45 ~ ~ ~
  10. /execute if score #clock c9_timer matches 17..26 as @e[tag=c9_missile] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ^ ^0.25 ^0.38 ~ ~
  11. /execute if score #clock c9_timer matches 27..75 as @e[tag=c9_missile] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ^ ^0.06 ^0.62 ~ ~
  12. /execute at @e[tag=c9_missile] run particle campfire_cosy_smoke ~ ~ ~ 0.08 0.08 0.08 0.01 3 force
  13. /execute at @e[tag=c9_missile] run particle flame ~ ~ ~ 0.05 0.05 0.05 0.02 4 force
  14. /execute at @e[tag=c9_missile] if entity @e[tag=c9_target,distance=..1.6] run summon firework_rocket ~ ~ ~ {LifeTime:0,FireworksItem:{id:"minecraft:firework_rocket",Count:1b,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",has_twinkle:1b,colors:[I;16711680,16755200],fade_colors:[I;16776960]}]}}}}
  15. /execute as @e[tag=c9_missile] at @s if entity @e[tag=c9_target,distance=..1.6] run kill @s

How it works

Frames from the test run

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

Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: A glowing firework rocket launches vertically from a central pad with a smoke and flame trail, curves downward to intercept a red-outlined moving sea lantern block (whose custom name shows raw JSON text), and explodes into red and yellow firework sparks.

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 area and stand at the center where you want the missile turret.
  2. Run each of the 8 setup commands once in chat to build the launchpad, scoreboard timer, and target drone.
  3. Place a line of 15 repeating command blocks (set to Always Active) near the stage.
  4. Paste one loop command into each repeating command block in order.
  5. Watch the launcher fire a homing firework missile every 4 seconds as the target circles overhead.

Use it with real players

To make the missile lock onto real players or monsters instead of the test drone, replace @e[tag=c9_target,limit=1] in the loop commands with @e[type=phantom,sort=nearest,limit=1] or @a[gamemode=survival,sort=nearest,limit=1], and add a damage effect alongside the firework detonation command.

Remove it again 7 commands

  1. /kill @e[tag=c9_center]
  2. /kill @e[tag=c9_target]
  3. /kill @e[tag=c9_tdisp]
  4. /kill @e[tag=c9_missile]
  5. /scoreboard objectives remove c9_timer
  6. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 grass_block
  7. /setblock ~ ~ ~ air

FAQ

Why is the firework rocket summoned as an item_display instead of a real firework entity?

Real firework_rocket entities fly upward uncontrollably and explode on their own timer. Using an item_display gives full control over orientation and curved homing movement before summoning a real firework at the exact moment of impact.

Can I change the speed or turning radius of the missile?

Yes. Adjust the ^ ^0.06 ^0.62 numbers in the third movement command: increasing the last number makes the missile fly faster, while increasing the middle number gives it a higher lofted arc.

Commands used

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

Similar creations

Join 9Minecraft News & Guides