Skip to content

Laplash1/minecortex

Repository files navigation

๐Ÿง  MineCortex

Intelligent Minecraft AI Bot System

Autonomous gameplay powered by mineflayer and Voyager-inspired AI

Node.js Minecraft License Code Style

๐Ÿš€ Quick Start โ€ข ๐Ÿ“– Documentation โ€ข ๐Ÿค– Features โ€ข ๐Ÿ› ๏ธ Development


๐ŸŽฏ What is MineCortex?

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

โœจ Key Highlights

  • ๐Ÿค– 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)

๐Ÿš€ Quick Start

Prerequisites

  • Node.js >= 16.13.0
  • Minecraft Java Edition 1.21 server (local or remote)

Installation

# Clone the repository
git clone https://github.com/Laplash1/minecortex.git
cd minecortex

# Install dependencies
npm install

# Launch 5 AI players (default)
npm start

๐ŸŽฎ Customize Your Experience

# 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

๐Ÿค– Features

๐Ÿง  AI Capabilities

  • 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

๐ŸŽฎ Minecraft Integration

  • 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

๐Ÿ› ๏ธ Developer Experience

  • Modular Architecture - Easy to extend and customize
  • ESLint Integration - Consistent code quality
  • Comprehensive Documentation - Detailed guides and references
  • Hot-Reload Development - Fast iteration cycles

๐Ÿ“Š Performance

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


๐ŸŽฎ In-Game Commands

!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

๐Ÿ—๏ธ Architecture

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

๐Ÿ› ๏ธ Development

Code Quality

# Check code style
npm run lint

# Auto-fix issues
npm run lint:fix

Environment Variables

# 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=5

๐Ÿ”ง Extending MineCortex

Add 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' };
  }
}

๐Ÿ“š Documentation

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

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒŸ Create a feature branch
  3. ๐Ÿ’ป Make your changes
  4. โœ… Run npm run lint to ensure code quality
  5. ๐Ÿงช Test with npm start
  6. ๐Ÿ“ Update documentation as needed
  7. ๐Ÿš€ Submit a pull request

๐Ÿ“Š Project Status

โœ… What's Working

  • โœ… Multi-player AI coordination (5 bots tested)
  • โœ… Autonomous exploration and mining
  • โœ… Real-time learning and adaptation
  • โœ… Minecraft 1.21 full compatibility
  • โœ… Memory-efficient architecture

๐Ÿšง Upcoming Features

  • ๐Ÿ”ฎ Enhanced natural language processing
  • ๐Ÿ—๏ธ Advanced building and construction
  • ๐ŸŒ Multi-server support
  • ๐Ÿ“ฑ Web dashboard interface

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • mineflayer - Excellent Minecraft bot framework
  • Voyager - AI learning architecture inspiration (MIT License)
  • PrismarineJS - Minecraft protocol implementation
  • OpenAI - GPT-4 for intelligent skill generation

โฌ† Back to Top

Made with โค๏ธ for the Minecraft AI community

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors