Autonomous Seeking Bomb

Build an autonomous seeking bomb in vanilla Minecraft using display entities and command blocks that hovers, locks onto targets, and detonates on impact.

Java EditionWands, Weapons & ToolsMedium24 commandsTested on a real 26.2 & 26.3 server
An explosive drone with a red outline detonates in a cloud of smoke over a glowing target. Download the GIF Video & GIF © www.9minecraft.net

Projectiles & MissilesTechnologyFireRedWhiteCyanPvPMini-gameAdventure MapBlock displaysArmor standsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

The Autonomous Seeking Bomb is a self-propelled explosive drone built with vanilla command blocks and display entities. Once deployed at the center launchpad, a rotating TNT core with glowing sea lantern rings hovers into the air and locks onto the closest target on the stage, trailing thruster smoke, flames, and a targeting laser.

When the bomb reaches its target, it triggers an explosion particle effect and eliminates the enemy before automatically deploying a fresh unit from the launchpad.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /team add c9_red
  3. /team modify c9_red color red
  4. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:lodestone
  5. /setblock ~ ~-1 ~ minecraft:redstone_lamp[lit=true]
  6. /summon armor_stand ~ ~ ~ {Tags:["c9_actor"],NoGravity:1b,Invisible:1b}
  7. /summon husk ~6 ~ ~5 {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Attributes:[{id:"minecraft:movement_speed",base:0.12d}],equipment:{head:{id:"minecraft:iron_helmet",count:1}}}
  8. /summon husk ~-6 ~ ~5 {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Attributes:[{id:"minecraft:movement_speed",base:0.12d}],equipment:{head:{id:"minecraft:iron_helmet",count:1}}}
  9. /summon husk ~-5 ~ ~-6 {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Attributes:[{id:"minecraft:movement_speed",base:0.12d}],equipment:{head:{id:"minecraft:iron_helmet",count:1}}}
  10. /summon husk ~6 ~ ~-5 {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Attributes:[{id:"minecraft:movement_speed",base:0.12d}],equipment:{head:{id:"minecraft:iron_helmet",count:1}}}

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

  1. /execute as @e[tag=c9_actor] run scoreboard players add @s c9_timer 1
  2. /execute as @e[tag=c9_actor,scores={c9_timer=75..}] run scoreboard players set @s c9_timer 1
  3. /execute if entity @e[tag=c9_actor,scores={c9_timer=1}] if entity @e[tag=c9_bomb] run tag @e[tag=c9_bomb] add c9_detonate
  4. /execute if entity @e[tag=c9_actor,scores={c9_timer=1}] unless entity @e[tag=c9_target,distance=..16] run summon husk ~5 ~ ~5 {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Attributes:[{id:"minecraft:movement_speed",base:0.12d}],equipment:{head:{id:"minecraft:iron_helmet",count:1}}}
  5. /execute at @e[tag=c9_actor,scores={c9_timer=2}] unless entity @e[tag=c9_bomb] run summon armor_stand ~ ~1.3 ~ {Tags:["c9_bomb"],Invisible:1b,NoGravity:1b,Passengers:[{id:"minecraft:block_display",Tags:["c9_part","c9_core"],Glowing:1b,block_state:{Name:"minecraft:tnt"},transformation:{translation:[-0.55f,-0.55f,-0.55f],scale:[1.1f,1.1f,1.1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_part"],Glowing:1b,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.75f,-0.15f,-0.75f],scale:[1.5f,0.3f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}
  6. /execute if entity @e[tag=c9_actor,scores={c9_timer=2}] run team join c9_red @e[tag=c9_part]
  7. /execute as @e[tag=c9_bomb] at @s facing entity @e[tag=c9_target,sort=nearest,limit=1] eyes run tp @s ^ ^ ^0.24 ~ ~
  8. /execute as @e[tag=c9_part] at @s run tp @s ~ ~ ~ ~15 ~
  9. /execute at @e[tag=c9_bomb] run particle flame ~ ~0.2 ~ 0.25 0.25 0.25 0.03 6 force
  10. /execute at @e[tag=c9_bomb] run particle large_smoke ~ ~0.2 ~ 0.15 0.15 0.15 0.02 3 force
  11. /execute at @e[tag=c9_bomb] facing entity @e[tag=c9_target,sort=nearest,limit=1] eyes run particle dust{color:[1.0,0.0,0.0],scale:1.8} ^ ^ ^1.5 0.2 0.2 0.2 0 10 force
  12. /execute as @e[tag=c9_bomb] at @s if entity @e[tag=c9_target,distance=..1.8] run tag @s add c9_detonate
  13. /execute as @e[tag=c9_detonate] at @s run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 force
  14. /execute as @e[tag=c9_detonate] at @s run kill @e[tag=c9_target,tag=c9_part,tag=c9_detonate,distance=..3.5]

How it works

Frames from the test run

Autonomous Seeking Bomb - frame 1Autonomous Seeking Bomb - frame 2Autonomous Seeking Bomb - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A hovering drone outlined in red explodes with large white smoke particles above a glowing target near a central launchpad.

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 where you want the center launchpad to be.
  2. Run each of the 10 setup commands in chat to create the scoreboard, red glowing team, launchpad blocks, and test targets.
  3. Place a line or stack of 14 repeating command blocks set to Always Active.
  4. Paste one loop command into each repeating command block in the listed order.
  5. Watch the launchpad deploy a glowing seeking bomb every few seconds to hunt down the targets.

Use it with real players

To deploy bombs yourself instead of using the automatic launchpad pad, remove the c9_actor timer loop commands and trigger the bomb summon command at @p whenever a player drops a specific item or right-clicks a carrot on a stick. Replace tag=c9_target in the targeting and detonation commands with type=#minecraft:raiders or type=!player,distance=1..25 so the drone seeks out nearby hostile mobs around you.

Remove it again 7 commands

  1. /scoreboard objectives remove c9_timer
  2. /team remove c9_red
  3. /kill @e[tag=c9_actor]
  4. /kill @e[tag=c9_bomb]
  5. /kill @e[tag=c9_part]
  6. /kill @e[tag=c9_target]
  7. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:grass_block

FAQ

Does the seeking bomb destroy terrain blocks when it explodes?

No. It uses the explosion_emitter particle and a targeted /kill command rather than real TNT, keeping your builds and command blocks completely safe.

How can I change the flight speed of the bomb?

In the 7th loop command, adjust the ^ ^ ^0.24 value inside the /tp command. A higher number like ^ ^ ^0.4 makes the drone fly faster.

Commands used

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

Similar creations

Join 9Minecraft News & Guides