Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft AFK Bot

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.

About the Project

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.

Features

  • 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.

Built With

  • JavaScript
  • Mineflayer
  • Node.js

Supported Versions

Currently supports Minecraft versions up to 1.16.4.

Future updates may include support for newer Minecraft versions.

Prerequisites

Before running the bot, ensure you have:

  • Node.js installed
  • Minecraft Java Edition
  • Access to a Minecraft server

Installation

  1. Clone the repository:
git clone <repository-url>
cd minecraft-bot
  1. Install dependencies:
npm install
  1. Configure the server details:

Update the server IP address and port in the configuration file with your Minecraft server information.

  1. Start the bot:
npm run dev

Usage

Once the bot joins the server, it will perform automated movements to help prevent AFK disconnections.

Future Improvements

  • Support for the latest Minecraft versions
  • Additional movement patterns
  • Better configuration options
  • Customizable AFK behavior

Contributing

Contributions, suggestions, and feedback are welcome. Feel free to open an issue or submit a pull request.

License

This project is open source and available under the MIT License.

Acknowledgements

  • Mineflayer Team
  • Minecraft Community

Thank you for checking out this project! ⭐ If you find it useful, consider giving it a star on GitHub.

Contributors

We appreciate everyone who contributes to this project!

Want to Contribute?

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! ❤️

About

Hii....I_am_sam_Here this_afk_bot_only_works_in_versions_upto--1.16.4 il_try_my_best_to_update_this_bot_for_LatestVersion_of_Minecraft i create it for aternos server but using it is up to you :)

Topics

Resources

Stars

22 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages