Build an autonomous seeking bomb in vanilla Minecraft using display entities and command blocks that hovers, locks onto targets, and detonates on impact.
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.
/scoreboard objectives add c9_timer dummy/team add c9_red/team modify c9_red color red/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:lodestone/setblock ~ ~-1 ~ minecraft:redstone_lamp[lit=true]/summon armor_stand ~ ~ ~ {Tags:["c9_actor"],NoGravity:1b,Invisible:1b}/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}}}/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}}}/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}}}/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}}}/execute as @e[tag=c9_actor] run scoreboard players add @s c9_timer 1/execute as @e[tag=c9_actor,scores={c9_timer=75..}] run scoreboard players set @s c9_timer 1/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/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}}}/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]}}]}/execute if entity @e[tag=c9_actor,scores={c9_timer=2}] run team join c9_red @e[tag=c9_part]/execute as @e[tag=c9_bomb] at @s facing entity @e[tag=c9_target,sort=nearest,limit=1] eyes run tp @s ^ ^ ^0.24 ~ ~/execute as @e[tag=c9_part] at @s run tp @s ~ ~ ~ ~15 ~/execute at @e[tag=c9_bomb] run particle flame ~ ~0.2 ~ 0.25 0.25 0.25 0.03 6 force/execute at @e[tag=c9_bomb] run particle large_smoke ~ ~0.2 ~ 0.15 0.15 0.15 0.02 3 force/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/execute as @e[tag=c9_bomb] at @s if entity @e[tag=c9_target,distance=..1.8] run tag @s add c9_detonate/execute as @e[tag=c9_detonate] at @s run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 force/execute as @e[tag=c9_detonate] at @s run kill @e[tag=c9_target,tag=c9_part,tag=c9_detonate,distance=..3.5]loop #5 Summons an invisible, zero-gravity armor stand tagged <code>c9_bomb</code> with two passenger <code>block_display</code> entities: a central TNT block and a wide sea lantern stabilizer ring.loop #7 Rotates the bomb armor stand toward the nearest target's eyes and steps it forward 0.24 blocks every tick using local caret coordinates.loop #8 Spins the visual display entity parts by 15 degrees per tick on their yaw axis while keeping them mounted on the bomb.loop #12 Checks if the seeking bomb has entered within 1.8 blocks of a target and tags it with <code>c9_detonate</code> to trigger the explosion sequence.


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.
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.
/scoreboard objectives remove c9_timer/team remove c9_red/kill @e[tag=c9_actor]/kill @e[tag=c9_bomb]/kill @e[tag=c9_part]/kill @e[tag=c9_target]/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:grass_blockNo. It uses the explosion_emitter particle and a targeted /kill command rather than real TNT, keeping your builds and command blocks completely safe.
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.
/execute/fill/kill/particle/scoreboard/setblock/summon/tag/team/tp
▶Magnetic Rail-Track Javelin AssemblerProjectiles & MissilesExpert22 cmds
▶Pachinko-Board Trick-Shot CrossbowProjectiles & MissilesExpert24 cmds
▶Steampunk Piston-Hammer Pilebunker GauntletProjectiles & MissilesMedium24 cmds
▶16-Way Automated ArtilleryProjectiles & MissilesHard25 cmds
▶Artillery Projectile SimulatorProjectiles & MissilesHard24 cmds
▶Automated Airstrike BombardmentProjectiles & MissilesMedium22 cmds