A customizable AFK bot for Minecraft Java Edition built using Mineflayer.
Stay online, avoid getting kicked, simulate player activity, and automate actions like chatting, moving, and fighting mobs.
- 🔁 Auto-reconnect on disconnect or kick
- 💤 Anti-AFK system (jumping, idle, circle, or random walk)
- 💬 Periodic auto chat messages
- 📜 Chat logging system
- 👊 Auto attack mobs or players
- 🧭 Move to specific coordinates
- 🏊 Swim and jump movement support
- Node.js v18 or higher
- Minecraft Java Edition server
- (Optional) Mojang or Microsoft account if using premium login
- Clone the Repository
git clone https://github.com/xFrogly/Minecraft-bot.git
cd minecraft-afk-bot- Install Dependencies
npm installStart the bot using:
node start.jsMake sure you've configured your bot settings inside config/settings.js before starting.
This project is open source and available under the MIT License.
Made with ❤️ by xFrogly
If you like this project, please give it a ⭐ on GitHub!