A simple Minecraft AFK bot built with JavaScript and Mineflayer that helps prevent players from being kicked from servers due to inactivity by simulating basic movements.
This is our first open-source project, and it was created as a learning experience while exploring JavaScript and Minecraft automation.
We often got disconnected from Minecraft servers for being AFK (Away From Keyboard), so We decided to build a bot that performs simple actions to keep the player active.
- Prevents AFK kicks by generating movement actions.
- Lightweight and easy to set up.
- Built using the Mineflayer framework.
- Great beginner-friendly project for learning Minecraft bot development.
- JavaScript
- Mineflayer
- Node.js
Currently supports Minecraft versions up to 1.16.4.
Future updates may include support for newer Minecraft versions.
Before running the bot, ensure you have:
- Node.js installed
- Minecraft Java Edition
- Access to a Minecraft server
- Clone the repository:
git clone <repository-url>
cd minecraft-bot- Install dependencies:
npm install- Configure the server details:
Update the server IP address and port in the configuration file with your Minecraft server information.
- Start the bot:
npm run devOnce the bot joins the server, it will perform automated movements to help prevent AFK disconnections.
- Support for the latest Minecraft versions
- Additional movement patterns
- Better configuration options
- Customizable AFK behavior
Contributions, suggestions, and feedback are welcome. Feel free to open an issue or submit a pull request.
This project is open source and available under the MIT License.
- Mineflayer Team
- Minecraft Community
Thank you for checking out this project! ⭐ If you find it useful, consider giving it a star on GitHub.
We appreciate everyone who contributes to this project!
Contributions are always welcome! Whether it's:
- Fixing bugs
- Improving documentation
- Adding new features
- Supporting newer Minecraft versions
- Improving code quality
Feel free to open an issue or submit a pull request.
Thank you to all our contributors for helping improve this project! ❤️