GitHub stars GitHub forks GitHub watchers License Last Commit Code Size
This is a sophisticated Minecraft AFK bot built with Mineflayer, featuring:
- β Full AuthMe plugin compatibility for secure authentication
- π Automatic server switching with custom commands (e.g.,
/server survival
) - π€ Smart anti-AFK mechanisms to stay active
- βοΈ Robust auto-reconnect and error handling
- π§© Easy configuration for any Minecraft server version
- π Designed for networks using AuthMe + BungeeCord/Multiplex
Feature | Description |
---|---|
π AuthMe Authentication | Auto register/login via chat detection and retry logic |
π Server Selector | Automatically join servers using commands like /server survival |
π€ Anti-AFK System | Periodic jumps, sneaks, and random looks to avoid kick |
π§ Movement & Pathfinding | Moves to configured AFK coordinates using Mineflayer pathfinder |
π Auto Reconnect | Reconnects automatically after disconnection or kick |
π¬ Chat Logging | Logs chat messages and can send periodic updates |
π§© Cross-Platform Support | Works on Windows, Linux, Docker, and Pterodactyl panels |
git clone https://github.com/albertodrake/minecraft-afk-bot.git
cd minecraft-afk-bot
npm install
Edit the bot-authme-first.js file with your own settings:
{
"server": {
"host": "your.minecraft.server.ip",
"port": 25565,
"version": "1.20.4"
},
"bot": {
"username": "YourBotName",
"auth": "offline",
"authmePassword": "YourAuthMePassword"
},
"serverCommands": {
"enabled": true,
"joinServer": "/server survival",
"delay": 3000
},
"features": {
"movement": {
"enabled": true,
"coordinates": {
"x": 100,
"y": 65,
"z": 100
}
},
"antiAFK": {
"enabled": true,
"jump": true,
"sneak": false,
"look": true,
"interval": 30000
},
"chatMessages": {
"enabled": false,
"interval": 300000,
"messages": ["Still here!", "AFK farming...", "Bot is active"]
}
}
}
node bot-authme-first.js
π§ Customize pathfinding coordinates for your AFK spot
π¬ Enable periodic chat messages for server presence
β±οΈ Modify timing delays for joining servers or retrying AuthMe login
π§© Extend functionality with custom Mineflayer plugins
Node.js v18+
Minecraft Java Edition 1.18+
AuthMe plugin on the target server
(Optional) BungeeCord or Multiplex network setup
Contributions are welcome! Submit issues and pull requests to improve features or fix bugs. Please follow best practices and ensure backward compatibility.
This project is licensed under the MIT License. See the LICENSE file for details.
π Acknowledgments Mineflayer Project
AuthMe Reloaded Plugin
Prismarine.js Ecosystem
Created and maintained by: π€ Alberto Drake π¬ For inquiries or collaborations, reach out via GitHub Issues or Discussions.
β If you like this project, donβt forget to give it a star! Your support motivates future updates and improvements. π