Bring AIRI into Minecraft
Imagine logging into your survival world and your AI buddy greets you at spawn, ready to gather resources or defend the base. The Minecraft integration turns AIRI into an autonomous player.
What It Can Do (Function-First)
Skill | Example Command (to AI) | Outcome |
---|---|---|
Follow Player | “Follow me to the village.” | Bot navigates with path-finding |
Gather Resources | “Collect 20 oak logs.” | Chops trees, stores logs in chest |
Combat Support | “Protect me from mobs!” | Equips best weapon and fights nearby threats |
Crafting | “Craft 10 torches.” | Places crafting table if needed, crafts items |
Chat | Normal chat messages | Speaks in game chat with same personality |
Setup Guide
- Ensure the server allows Java edition logins and online-mode=false if using an alt account.
- In Settings → Integrations → Minecraft, enter server IP, bot username, and (optional) skin URL.
- Start the Minecraft Service from the desktop app; a terminal window shows connection logs.
- In game, type a request in chat; the AI responds and starts acting.
How It Works (Conceptual)
- Mineflayer Bot —
services/minecraft/src/main.ts
creates a bot instance and connects. - Neuri Agent — High-level planner receives goals from LLM via WebSocket.
- Skill Modules — Movement, combat, crafting, inventory; each exposes async functions.
- LLM Goal Translation —
neuri.ts
breaks down a goal into skill calls (e.g., gather wood →movement.goToForest
→combat.attack
→inventory.store
). - Feedback Loop — Skill results stream back to LLM to refine plan.
Sequence Diagram:
Performance & Safety
- Uses mineflayer-pathfinder for efficient navigation; avoids chunk-loading lag.
- Optional Y-level limit prevents the bot from digging too deep and causing server holes.
- All commands run under a sandbox user; cannot run
/op
or destructive server commands.
Related Technical Files
Functional Role | Code File | Description |
---|---|---|
Service Entry | services/minecraft/src/main.ts | Connects bot & loads plugins |
Neuri Agent Core | services/minecraft/src/composables/neuri.ts | Plans & orchestrates skills |
Movement Skill | services/minecraft/src/skills/movement.ts | Path-finding helpers |
Combat Skill | services/minecraft/src/skills/combat.ts | Mob fighting logic |
Crafting Skill | services/minecraft/src/skills/crafting.ts | Craft item sequences |
Server SDK Client | packages/server-sdk/src/client.ts | WebSocket link to central LLM |