Intelligent Minecraft AI Bot System
Autonomous gameplay powered by mineflayer and Voyager-inspired AI
๐ Quick Start โข ๐ Documentation โข ๐ค Features โข ๐ ๏ธ Development
MineCortex combines the power of mineflayer (Minecraft bot framework) with Voyager-inspired AI capabilities to create intelligent, autonomous Minecraft bots that can learn, adapt, and coordinate with each other.
๐ง MineCortex = Mine (Mining/My) + Cortex (Brain)
Your personal intelligent Minecraft brain system
- ๐ค Multi-AI Coordination - 5 synchronized AI players working together
- ๐ง Voyager-Inspired Learning - Memory-based learning without file I/O
- ๐ฎ Autonomous Gameplay - Self-directed exploration, mining, and crafting
- ๐ ๏ธ Extensible Skills - Modular skill system for custom behaviors
- ๐ง Simple Setup - Single command deployment (
npm start)
- Node.js >= 16.13.0
- Minecraft Java Edition 1.21 server (local or remote)
# Clone the repository
git clone https://github.com/Laplash1/minecortex.git
cd minecortex
# Install dependencies
npm install
# Launch 5 AI players (default)
npm start# Launch with custom player count
MULTIPLE_PLAYERS_COUNT=3 npm start
# Enable debug mode
DEBUG_MODE=true npm start
# Custom server settings
MINECRAFT_HOST=your-server.com MINECRAFT_PORT=25565 npm start- Autonomous Exploration - Smart pathfinding and world discovery
- Resource Management - Intelligent mining and inventory optimization
- Skill Learning - Dynamic skill generation and improvement
- Multi-Player Coordination - Synchronized teamwork and resource sharing
- Full Minecraft 1.21 Support - Latest minecraft-data compatibility
- Chat Commands - Natural language and structured command interface
- Real-time Adaptation - Responds to game events and player interactions
- Survival Mechanics - Food management, health monitoring, respawn handling
- Modular Architecture - Easy to extend and customize
- ESLint Integration - Consistent code quality
- Comprehensive Documentation - Detailed guides and references
- Hot-Reload Development - Fast iteration cycles
| Players | CPU Usage | Memory Usage | Recommended Setup |
|---|---|---|---|
| 3 bots | 10-15% | 300MB | Minimum |
| 5 bots | 15-25% | 416MB | Recommended |
| 10 bots | 30-50% | 1GB | High Performance |
Measured on modern development hardware with real-world workloads
!status # Health, food, position report
!goto <x> <y> <z> # Move to coordinates
!follow <player> # Track and follow a player
!stop # Stop current task
!learn # Show learning statistics
!curriculum # Generate new AI curriculum
minecortex/
โโโ ๐ examples/
โ โโโ multiple-players.js # Main entry point
โโโ ๐ง src/ # AI Components
โ โโโ MinecraftAI.js # Core AI controller
โ โโโ VoyagerAI.js # Learning engine
โ โโโ SkillLibrary.js # Skill management
โ โโโ TaskPlanner.js # Task orchestration
โ โโโ MultiPlayerCoordinator.js # Team coordination
โ โโโ utils/ # Shared utilities
โโโ โ๏ธ config/ # Configuration
โโโ ๐ docs/ # Documentation
โโโ ๐ dev_daily/ # Development logs
# Check code style
npm run lint
# Auto-fix issues
npm run lint:fix# Minecraft Connection
MINECRAFT_HOST=localhost
MINECRAFT_PORT=25565
MINECRAFT_USERNAME=AIPlayer
MINECRAFT_AUTH=offline
# AI Features (Optional)
OPENAI_API_KEY=your_api_key
OPENAI_MODEL=gpt-4o-mini
# Bot Configuration
DEBUG_MODE=true
AUTO_RESPAWN=true
MULTIPLE_PLAYERS_COUNT=5Add New Skills:
class MyCustomSkill extends Skill {
constructor() {
super('my_skill', 'Description of what this skill does');
}
async execute(bot, params) {
// Your implementation here
return { success: true, result: 'Task completed' };
}
}| Section | Description |
|---|---|
| ๐ User Guide | Complete usage instructions |
| ๐ง Installation Guide | Detailed setup process |
| ๐ Authentication Setup | Minecraft account configuration |
| ๐ค Technical Reference | Architecture deep-dive |
| ๐ ๏ธ Contributing Guide | Development workflow |
We welcome contributions! Please see our Contributing Guide for details.
- ๐ด Fork the repository
- ๐ Create a feature branch
- ๐ป Make your changes
- โ
Run
npm run lintto ensure code quality - ๐งช Test with
npm start - ๐ Update documentation as needed
- ๐ Submit a pull request
- โ Multi-player AI coordination (5 bots tested)
- โ Autonomous exploration and mining
- โ Real-time learning and adaptation
- โ Minecraft 1.21 full compatibility
- โ Memory-efficient architecture
- ๐ฎ Enhanced natural language processing
- ๐๏ธ Advanced building and construction
- ๐ Multi-server support
- ๐ฑ Web dashboard interface
This project is licensed under the MIT License - see the LICENSE file for details.
- mineflayer - Excellent Minecraft bot framework
- Voyager - AI learning architecture inspiration (MIT License)
- PrismarineJS - Minecraft protocol implementation
- OpenAI - GPT-4 for intelligent skill generation
Made with โค๏ธ for the Minecraft AI community