AI Players

Autonomous, player-like bots with factions and play styles in Minecraft.

AI Players

AI Players is a server-side Minecraft mod that adds computer-controlled players to your world. Every bot is a real player: it has a name, a skin, an inventory and a spot in the tab list, it earns advancements, and it dies and respawns like you do. Drop one into a fresh survival world and it punches trees, crafts tools, builds a house, mines for iron and diamonds, farms, trades with villagers, goes to the Nether and, once its gear is done, takes its faction to the End.

Despite the name, there is no ChatGPT or any other online service behind it. Bots run on hand-written game logic, entirely on your server, so the mod works offline and costs nothing beyond some CPU time.

  • Supported Minecraft Versions: 26.3
  • Dependencies:

Players can join with a vanilla client. Installing the mod on your own game is optional and adds a management screen, an orders screen, a debug overlay and custom skins.

Legit by default

Bots play by the same rules you do. They mine at normal speed with the right tool, craft at a real crafting table, smelt in a real furnace, open chests and doors with their own clicks, trade through the villager's screen, row boats, fish with a rod, drink potions from their hotbar and glide on an elytra they looted themselves. They never teleport (except with an ender pearl or through a portal) and never spawn items out of thin air. If you want to give them a head start, cheats exist, but they stay off unless a server operator turns them on.

What bots do

  • Survive on their own: tools, a house with a bed, cooked food, a mine, and work through the night on safe ground.
  • Build a base with their faction: houses, a storehouse, a farm and animal pen, an enchanting corner and, for cautious styles, walls, lights, lava moats, decoy chests and iron golems.
  • Mine strip, branch or cave mines, follow ore veins and climb the gear ladder up to netherite.
  • Trade with villagers, and buy their next sword or armor piece instead of digging for it.
  • Fight with swords, axes, bows and shields, size up enemies by their gear, hold grudges, and hunt whoever robbed their base.
  • Raid enemy bases: scout them, tunnel under the wall at night, empty a chest and leave a TNT trap on the way out.
  • Travel to the Nether for blaze rods, bastion loot, ancient debris and potions, and to the End to kill the dragon, bring the egg home and loot an end city for its elytra.

Playing with bots

Put bots in a faction with you and they protect you, share what they find, answer your orders (follow me, stay here, defend this spot, bring me some iron) and call for help in team chat. Make a rival faction and they gear up, remember where they last saw you and come looking for you.

Five play styles ship with the mod (the balanced Neutral, the fighting Rusher, the village-building Boomer, the fortress-building Turtler and the raiding Flanker) along with four difficulties, and you can write your own with a plain data pack. Modded ores, crops, recipes and foods work out of the box, and other mods can teach bots their machines and tools through a small plugin API.

Getting started

Drop the jar in the server's mods folder (or in .minecraft/mods for singleplayer, in a world with cheats allowed) and, as an operator:

/aiplayer spawn Steve                       a bot at your position
/aiplayer spawn Ann aiplayers:rusher red    a Rusher in the red faction
/aiplayer faction relation red blue enemy   red and blue are at war
/aiplayer order Ann follow Alice            an order from an ally
/aiplayer info Ann                          what it's doing and why

Bots keep their inventory, memory, base and faction across restarts, and they keep playing while nobody is online. A server runs up to 8 bots by default, with each one costing about as much as an extra player plus some extra time per tick (for AI processing), and bots never take a player slot. They break and place blocks the way players do, so claim and protection mods stop them like anyone else.

Everything is documented in the official wiki: a guide for players and server admins, and a reference for commands, the configuration file, play style and difficulty files, data packs and the plugin API.

What's next

Bots that play Tech Reborn and Tech Extensions, through separate adapter jars. The roadmap has the details. Bug reports and ideas are welcome. For a bot that acts strangely, include the output of /aiplayer info <bot> and /aiplayer stats taken while it misbehaves (see the FAQ and troubleshooting).

AI Players Team

profile avatar
Owner
  • 2
    Projects
  • 9.1K
    Downloads
Donate

More from Dabolus