Automated Hunter Bot

Build an autonomous cybernetic hunter bot in vanilla Minecraft that scans the arena, dashes along a glowing vector path, and eliminates monster waves.

Java EditionMobs & PetsHard24 commandsTested on a real 26.2 & 26.3 server
An armored sentinel bot with a glowing cyan outline fights a red-outlined undead enemy at night. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsTechnologyCyanBlueRedBoss FightPvPAdventure MapArmor standsSummoned mobsRotation math21+ commands

The Automated Hunter Bot is a command-driven sentinel equipped with a glowing diamond visor, full netherite armor, and an enchanted blade. Instead of relying on standard mob AI, this unit uses vector-based command pathfinding to lock onto the nearest threat, project a targeting laser across the terrain, and sprint directly into melee range.

As waves of armored undead spawn around the perimeter, the bot dashes from target to target leaving a cyan thruster trail and unleashing electric shockwaves on impact. It is a great demonstration of how a few repeating command blocks can create custom boss-like allies and automated arena defenders.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /team add c9_bot
  3. /team modify c9_bot color aqua
  4. /team add c9_prey
  5. /team modify c9_prey color red
  6. /summon marker ~ ~ ~ {Tags:["c9_ctrl"]}
  7. /summon armor_stand ~ ~ ~ {Tags:["c9_bot"],CustomName:{"text":"HUNTER-01","color":"aqua","bold":true},CustomNameVisible:1b,ShowArms:1b,NoBasePlate:1b,NoGravity:1b,Glowing:1b,equipment:{head:{id:"minecraft:diamond_block",count:1},chest:{id:"minecraft:netherite_chestplate",count:1},legs:{id:"minecraft:netherite_leggings",count:1},feet:{id:"minecraft:netherite_boots",count:1},mainhand:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantments":{sharpness:5}}}}}
  8. /team join c9_bot @e[tag=c9_bot]
  9. /summon husk ~7 ~ ~5 {Tags:["c9_prey"],Glowing:1b,PersistenceRequired:1b,equipment:{head:{id:"minecraft:iron_helmet",count:1}}}
  10. /summon stray ~-6 ~ ~-5 {Tags:["c9_prey"],Glowing:1b,PersistenceRequired:1b,equipment:{head:{id:"minecraft:chainmail_helmet",count:1}}}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_timer 1
  2. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 90.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 0
  3. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 unless entity @e[tag=c9_prey,distance=..22] run summon husk ~7 ~ ~-6 {Tags:["c9_prey"],Glowing:1b,PersistenceRequired:1b,equipment:{head:{id:"minecraft:iron_helmet",count:1}}}
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 30 unless entity @e[tag=c9_prey,distance=..22] run summon stray ~-7 ~ ~6 {Tags:["c9_prey"],Glowing:1b,PersistenceRequired:1b,equipment:{head:{id:"minecraft:golden_helmet",count:1}}}
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 60 unless entity @e[tag=c9_prey,distance=..22] run summon zombie ~6 ~ ~7 {Tags:["c9_prey"],Glowing:1b,PersistenceRequired:1b,equipment:{head:{id:"minecraft:turtle_helmet",count:1}}}
  6. /team join c9_prey @e[tag=c9_prey,team=!c9_prey]
  7. /execute as @e[tag=c9_prey,distance=13..] at @s facing ~ ~ ~ run tp @s ^ ^ ^0.25
  8. /execute as @e[tag=c9_bot] at @s if entity @e[tag=c9_prey,distance=..22] facing entity @e[tag=c9_prey,sort=nearest,limit=1] feet positioned ^ ^ ^0.42 rotated ~ 0 run tp @s ~ ~ ~ ~ 0
  9. /execute as @e[tag=c9_bot] at @s unless entity @e[tag=c9_prey,distance=..22] facing ~ ~ ~ positioned ^ ^ ^0.15 rotated ~ 0 run tp @s ~ ~ ~ ~ 0
  10. /execute at @e[tag=c9_bot] run particle dust{color:[0.0,1.0,0.9],scale:1.2} ~ ~1.0 ~ 0.15 0.3 0.15 0 3 force
  11. /execute at @e[tag=c9_bot] facing entity @e[tag=c9_prey,sort=nearest,limit=1] eyes run particle dust{color:[1.0,0.15,0.15],scale:0.9} ^ ^1.5 ^1.5 0.05 0.05 0.05 0 2 force
  12. /execute at @e[tag=c9_bot] if entity @e[tag=c9_prey,distance=..2.3] run particle sweep_attack ~ ~1.1 ~ 0.4 0.2 0.4 0 3 force
  13. /execute at @e[tag=c9_bot] if entity @e[tag=c9_prey,distance=..2.3] run particle electric_spark ~ ~1.2 ~ 0.5 0.5 0.5 0.2 12 force
  14. /execute at @e[tag=c9_bot] as @e[tag=c9_prey,distance=..2.3,limit=1] run damage @s 9 minecraft:mob_attack by @e[tag=c9_bot,limit=1]

How it works

Frames from the test run

Automated Hunter Bot - frame 1Automated Hunter Bot - frame 2Automated Hunter Bot - frame 3

Recorded on our own test server: 60 frames at about 9.8 fps. Our image check saw: A cyan-outlined entity named "HUNTER-01" equipped with netherite armor, a diamond helmet, and a diamond sword attacks a red-outlined undead mob while leaving a trail of blue and red particles across the grass.

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. Find a flat open area of at least 30x30 blocks and stand in the middle.
  2. Run each of the 10 setup commands in chat to create the scoreboard timer, colored glowing teams, controller marker, and the HUNTER-01 armor stand.
  3. Place a row of 14 repeating command blocks set to Always Active near the center of your arena.
  4. Paste one loop command into each repeating command block.
  5. Watch HUNTER-01 lock onto the red-outlined monsters, sprint across the arena, and eliminate each wave automatically.

Use it with real players

To make the Hunter Bot act as a personal bodyguard that follows you when no monsters are nearby, replace the idle return coordinates facing ~ ~ ~ in loop command 9 with facing entity @p[distance=3..] feet. The bot will automatically patrol around you and dash away to intercept any tagged monsters that enter the area.

Remove it again 6 commands

  1. /kill @e[tag=c9_bot]
  2. /kill @e[tag=c9_prey]
  3. /kill @e[tag=c9_ctrl]
  4. /team remove c9_bot
  5. /team remove c9_prey
  6. /scoreboard objectives remove c9_timer

FAQ

Can the Hunter Bot target any regular hostile mob instead of only spawned waves?

Yes. Add a repeating command block with /tag @e[type=#minecraft:raiders] add c9_prey or tag zombies and skeletons within range so the bot locks onto naturally spawned monsters.

How do I change the movement speed of the bot?

In loop command 8, change the local forward step ^ ^ ^0.42 to a larger number like ^ ^ ^0.6 for a faster sprint, or a smaller value like ^ ^ ^0.25 for a heavy mech walk.

Commands used

/damage/execute/particle/scoreboard/summon/team/tp

Similar creations

Join 9Minecraft News & Guides