-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started en
This page takes you from zero to a running AIBot and Bob's first goal.
| Component | Version |
|---|---|
| Minecraft | 1.21.3 |
| Fabric Loader | 0.18.4+ |
| Fabric API | 0.114.1+1.21.3 |
| Yarn Mappings | 1.21.3+build.2 |
| Java | 21 |
| Gradle | bundled Wrapper |
⚠️ Versions are hard constraints. Minecraft / Fabric API method signatures change across versions — stick to the above.
git clone https://github.com/zoyluoblue/mc_aiplayer.git
cd mc_aiplayer
./gradlew buildArtifacts land in build/libs/ (aibot-<version>.jar).
./gradlew runServer # dev server
./gradlew runClient # dev client (with the Bob panel)On first launch the mod writes aibot.json to the Fabric config dir (usually run/config/aibot.json in dev).
AIBot defaults to DeepSeek (OpenAI-compatible). Use an environment variable for the key:
export DEEPSEEK_API_KEY="sk-your-key"Or edit aibot.json:
{
"deepseek": {
"apiKey": "sk-your-key",
"baseUrl": "https://api.deepseek.com",
"model": "deepseek-chat"
}
}Want a different provider? Point
baseUrlat any OpenAI-compatible endpoint. Full fields in Configuration.Without a key the log prints
deepseek_key_missingand natural-language decisions are disabled (deterministic/aibot taskcommands still work).
In-game (requires OP / command permission):
/aibot spawn Bob
/aibot listOption A — natural language (via the LLM):
/aibot brain say Bob mine 3 diamondsBob back-chains the goal into a full plan (chop wood → craft pickaxe → descend → mine iron → upgrade → staircase to the diamond layer → mine) and executes it; failed steps trigger re-planning. See Goal Engine.
Option B — deterministic task (no LLM):
/aibot task assign Bob mine minecraft:stone 16
/aibot task status BobOption C — client panel: press Alt + 0 to open the Client Panel and send messages or click buttons.
- Available commands → Commands
- Tune perception / combat / night behavior → Configuration
- Understand how it thinks → Architecture · Goal Engine · Task System
- Hit a problem → FAQ
AIBot · GitHub · MIT License · LLM plans · Tasks execute · Bob survives
新手上路
理解原理
参与开发
- Home
- Getting Started
- Commands
- Configuration
- Client Panel
- Architecture
- Goal Engine
- Task System
- Brain & Tools
- Safety Net
- Developer Guide
- FAQ
主仓库 · MIT