Automated Minecraft bot swarm with AI-powered name generation.
- 🤖 Multiple bots spawning and wandering
- 🎯 PVP combat capabilities
- 🔄 Auto-reconnect on disconnect
- 🌐 External API integration for AI name generation
- 🐳 Docker support for easy deployment
1. Pull the image:
docker pull yourusername/mc-bots:latest2. Create a config.json:
{
"maxBots": 30,
"spawnMin": 20000,
"spawnRange": 40000,
"server": {
"host": "your-minecraft-server.com",
"port": 25565
},
"api": {
"host": "your-name-api.com",
"port": 3000
}
}3. Run the container:
docker run -d \
--name mc-bots \
-v $(pwd)/config.json:/app/config.json:ro \
--restart unless-stopped \
yourusername/mc-bots:latest1. Install dependencies:
npm install2. Configure config.json
3. Start the bots:
npm start| Option | Description | Default |
|---|---|---|
maxBots |
Maximum number of concurrent bots | 3 |
spawnMin |
Minimum spawn delay (ms) | 20000 |
spawnRange |
Random spawn delay range (ms) | 40000 |
server.host |
Minecraft server address | localhost |
server.port |
Minecraft server port | 25565 |
api.host |
Name generation API host | localhost |
api.port |
Name generation API port | 3000 |
docker build -t mc-bots .docker run -d \
--name mc-bots \
-v /path/to/config.json:/app/config.json:ro \
--restart unless-stopped \
mc-botsdocker run -d \
--name mc-bots \
--network host \
-v $(pwd)/config.json:/app/config.json:ro \
mc-botsdocker logs -f mc-botsdocker stop mc-botsCreate docker-compose.yml:
version: '3.8'
services:
mc-bots:
image: yourusername/mc-bots:latest
container_name: mc-bots
volumes:
- ./config.json:/app/config.json:ro
restart: unless-stopped
network_mode: hostRun with:
docker-compose up -dThis repository includes automated Docker builds:
Setup:
-
Add Docker Hub secrets to your GitHub repository:
DOCKERHUB_USERNAME: Your Docker Hub usernameDOCKERHUB_TOKEN: Docker Hub access token
-
Push to
mainbranch or create a tag:
# Push triggers build with 'latest' tag
git push origin main
# Tag triggers versioned build
git tag v1.0.0
git push origin v1.0.0Automated builds:
- ✅ Push to main →
latesttag - ✅ Git tags → version tags (
v1.0.0,v1.0,v1) - ✅ Multi-arch builds (amd64, arm64)
- ✅ Docker Hub description sync
For Oracle Cloud VM.Standard.A1.Flex (4 OCPU, 24GB RAM):
- Recommended: 30-50 bots
- Maximum: 60 bots (with monitoring)
- Monitor server TPS and adjust
maxBotsaccordingly
This bot client requires a separate name generation API service. Check the API repository for setup instructions.
API Endpoint:
GET http://api-host:3000/api/generate-name
Response:
{
"name": "CrimsonDragon4582",
"provider": "groq"
}- Wanders randomly around spawn area
- Engages in PVP when players/entities are nearby
- Auto-respawns after death
- Reconnects on disconnect
- Reports status every 15 seconds
ISC
- Docker Hub: https://hub.docker.com/r/yourusername/mc-bots
- GitHub: https://github.com/yourusername/mc-bots