A bot for Minecraft to stay AFK thanks to mineflayer. Mainly for Windows, not tested on other OS.
Written in Node.js
Link to the page of this project.
- Supports 1.16.1.
- An easy-to-use GUI with incorporated chat thanks to mineflayer-dashboard.
- Windows Desktop Notifications for events like /tell or on death. These can be disabled when starting the bot. Thanks to node-notifier.
- Automatic response (whispered) like "Sorry, I am an AFK Bot", to people who "/tell" you.
- Pathfinding ability to make your AFK bot follow you from one place to another, thanks to mineflayer-pathfinder.
- Reconnect ability in case it's kicked form the server.
- Online/Cracked mode support.
- Looks at nearby entities simulating real players.
- Alerts on low health.
- Shows who attacked the bot and the weapon. Thanks to mineflayer-bloodhound.
-
Make sure you have installed Node on your PC, once you have installed it, you can proceed to the next step. You can download Node here.
-
Create a folder somewhere in you PC.
-
Extract the downloaded .zip in the folder, there should be a folder named AFKBot-master, take the files and paste them where you want, like a folder.
-
Now, open the command prompt (press WIN + R, it should open a window, type in "cmd" and hit ENTER).
-
Navigate to the folder where you put the files (Example: type "cd C:\Users\DrMoraschi\Desktop\BotFolder" and hit ENTER).
-
Now where are going to install Mineflayer and the other dependencies, type:
npm install
this will install all dependencies that are necessary.
-
Now that all the things have been installed, the bot is ready to run and go AFK.
-
The bot is configured to only reply to "/tell" messages. It will reply with "Sorry, I am an AFK Bot".
-
The bot will only follow you if tell him to do so:
/tell [botname] follow me
Will make the bot follow you.
/tell [botname] stop
Will make the bot stop following you.
-
The bot will start the anti-AFK-kick sequence when connected automatically, it will jump every 10 minutes to prevent kicks.
-
In your Command Line, repeat number 4 from "Install"; navigate to the folder where the files are located.
-
There are 4 arguments that are needed, and other 2 that are optional:
"host" : This is the IP or the subdomain of the server.
"port" : This is the port of the server.
"windows desktop notifications" : You need to choose between "yes" or "no" depending if you want or not Windows Desktop Notifications.
"owner" : You need to fill this with the username of the player who wants to control the bot, so that the bot doesn't accidentally respond with actions if other players /tell him to do them.
"username/gmail" : You need to type a username for the bot, write the e-mail in case the account is premium, default is "AFKBot".
"password" : Ignore if the account is cracked, only for premium accounts.
Example:
node AFK.js localhost 25565 yes ImTheOwner mygmailcool@gmail.com mypasswordis1234
-
Once you've written all, hit ENTER and watch as the GUI starts and the bot connects to the server.
I am not responsible of any consequences that this bot may cause, when you are downloading it, it's up to you and to be responsible of your own actions.
Thank you.