
Ai hunter player
Create mod where AI hunter pursues the player who is trying to beat the Ender Dragon; add in-game settings menu to tune bot performance (speed, aggression,...
00—fabricServer1.21.1mod
What’s inside
- Server-side AI hunter built on a tuned Vindicator that automatically spawns when a survival player is online and relentlessly chases the closest non-creative/non-spectator player, even across dimensions.
- Hunter stats are refreshed each tick: movement speed, follow range, and attack damage scale from the configurable speed/aggression/detection settings; a simple anti-stuck check teleports it near the target when smart pathfinding is on.
- Uses safe spawn/teleport helpers to place the hunter near the target’s current position in any dimension and respawns it if killed.
In-game controls
- Run
/aihunter menuas an operator to open the chest-style settings UI; click the items to cycle speed, aggression, detection range, and toggle smart pathfinding. Changes apply immediately. - Commands for ops:
/aihunter status,/aihunter summon,/aihunter despawn, and/aihunter set <speed|aggression|detection|pathfinding> <value/bool>for direct tuning without the menu.
Notes and limits
- Settings are kept in-memory for the current server session; restart the server to return to defaults.
- The hunter uses vanilla rendering/AI (Vindicator with iron axe) to stay compatible with unmodded clients; it focuses solely on players and ignores creative/spectator players.
Server Validation
✅ Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.