AI-driven Minecraft building generator mod. Describe a building in chat, and AIbuilder asks an AI model to generate it, then loads the result directly into your world as a Litematica projection.
/aibuilder, describe any building in chat, and the AI generates it for you.litematic schematic and automatically loaded as a Litematica placement in front of youzh_cn, zh_tw, ja_jp, ko_kr, ru_ru, de_de, fr_fr, es_es, lzh, and more| Dependency | Version |
|---|---|
| Minecraft | 1.20.6 |
| Fabric Loader | >= 0.19.3 |
| Fabric API | * |
| Litematica | >= 0.18.0 |
| MaLiLib | >= 0.19.0 |
| Mod Menu | >= 10.0.0 |
Java 21 is required.
aibuilder-*.jar from Releases (or build it yourself, see below).minecraft/mods folder/aibuilder to enter build mode/aibuilder again to exit build mode| Provider | Protocol |
|---|---|
| OpenAI (ChatGPT) | OpenAI Chat Completions |
| Anthropic (Claude) | Anthropic Messages |
| Alibaba Cloud Bailian (DashScope) | OpenAI-compatible |
| DeepSeek | OpenAI-compatible |
| Zhipu AI (GLM) | OpenAI-compatible |
| Xiaomi MiMo | OpenAI-compatible |
| Custom (OpenAI-compatible) | OpenAI Chat Completions — any endpoint, you provide the base URL |
| Custom (Anthropic-compatible) | Anthropic Messages — any endpoint, you provide the base URL |
Model configurations are stored in config/aibuilder_models.json.
Note: API keys are stored in plain text in that file. Do not share it or commit it to a repository.
size and a list of blocks with coordinates and block IDs)schematics/git clone https://github.com/kaoyu555666777/AIbuilder.git
cd AIbuilder
./gradlew build
The output jar is in build/libs/. To launch a development client with the mod, use ./gradlew runClient.
src/
├── main/ # Common code + resources
│ ├── java/.../Aibuilder.java # Mod entrypoint
│ └── resources/
│ ├── assets/aibuilder/lang/ # 32 language files
│ └── fabric.mod.json
└── client/ # Client-only code
└── java/.../client/
├── ai/AIClient.java # HTTP client, request/response handling
├── config/ # Model configuration & provider types
├── mode/BuilderMode.java # Build mode & chat interception logic
├── schematic/ # AI JSON → Litematic conversion
├── gui/ # Mod Menu config screens
└── mixin/ # Chat send interception
LGPL-3.0