Mindcraft enables Large Language Models (LLMs) to interact with and control Minecraft Java Edition, allowing AI agents to play the game autonomously. It targets developers and researchers interested in AI-driven game agents, offering capabilities for cooperative play, building, and item acquisition, with a strong emphasis on safety due to the LLM's code execution potential.
How It Works
Mindcraft leverages the Mineflayer library to interface with Minecraft servers. LLMs are integrated via API calls to various providers (OpenAI, Gemini, Anthropic, etc.) to generate actions, code, and natural language responses. The system uses configurable profiles to define agent behavior, LLM choices (chat, code, embedding), and prompts, facilitating customized AI agent development within the Minecraft environment.
Quick Start & Requirements
keys.example.json
to keys.json
and fill in API keys, run npm install
.tasks
module.node main.js
. Tasks can be run via python tasks/run_task_file.py --task_path=tasks/example_tasks.json
.Highlighted Details
tasks
module for automated bot performance evaluation and benchmarking.Maintenance & Community
The project is maintained by Kolby Nottingham and Max Robinson. Community support is available via Discord. The README mentions a "Contributor TODO" list, indicating active development areas.
Licensing & Compatibility
The project does not explicitly state a license in the provided README text. This requires further investigation for commercial use or closed-source integration.
Limitations & Caveats
The project warns that LLM-generated code can be a vulnerability to injection attacks, even with sandboxing. Enabling code writing (allow_insecure_coding
) is strongly discouraged for public servers. Responsiveness to GitHub issues is noted as low, with Discord recommended for support. Connecting to unsupported Minecraft versions may require additional tools like viaproxy
.
1 month ago
1 week