The forgotten sister, defying her brother's curse with quiet light.

Zerobrine connects to your Minecraft server via mineflayer, listens to chat commands, and has a free local LLM (Ollama phi4-mini) for natural language understanding.
When you type something in chat, Zerobrine either:
- Recognizes a direct command (
!come,!follow,!attack, etc.) - Sends it to the LLM which responds in character and may output an action command
- Preprocesses it (e.g. "im at 65 70 -239" → auto goto)
follow Zerobrine <playerName>– Zerobrine will follow the playerattack <playerName>– Marks the player as hostile, Zerobrine will attackstop– Zerobine stops attackingstop <playerName>– Removes that player from the hostile listcome at <x> <y> <z>– Zerobrine walks to the given coordinatessleep Zerobrine- Zerobrine will sleep, finding the nearest bed or placing one from inventory (if placed, then after waking she breaks and again keeps it in the inventory).drop ITEM- Drops the said item
These chat commands will be auto inferred by the LLM (given you don't make it sound tooo dumb). Eg: "Get your ass here Zerobrine" will prompt Zerobrine to arrive at your location.
- Default targets are zombies, skeletons, spiders, pillagers, breeze, bogged, zombie_nautilus, camel_husk, parched, zombie_horse
- Automatically eats food when HP is low
- Equips the best armor and gear available in its inventory
- Uses bow for long-range attacks
Before you begin, make sure you have the following installed:
- Java 21 (JRE OpenJDK) – Required for running the Minecraft server.
- Minecraft Java Edition 1.21.11 – The server must be running this version.
- Node.js and npm – Used to run the bot.
- Ollama – Local LLM for natural language understanding (ollama.com).
- Clone the repo and go into the folder:
git clone https://github.com/oceanthunder/Zerobrine
cd Zerobrine- Install the dependencies:
npm install-
Make sure your Minecraft server is running on Java 21 (OpenJDK JRE) with version 1.21.11 and the server is in offline mode or the bot is whitelisted.
-
Start Ollama and pull the required model:
ollama pull phi4-mini- Start the bot:
npm startThat’s it. Zerobrine should now connect to your Minecraft server (default is localhost:42069, you can change it in bot.js's host and port).