This repo serves as a tutorial for developers to create a 6b6t bot using the template provided. We will cover everything from bot creation to hosting.
Please star โญ
- The first step is to clone this repo by running the command
git clone https://github.com/therealrealguy/6b6t-bot-creation-main
This will download the all of the code into a folder.
- You also need to download and install Nodejs
- To create your bot you can navigate to the template folder and just copy the 2 files
config.json
andindex.js
to your working directory. - in your working directory you need to run the following command to download mineflayer
npm i mineflayer
Keep in mind, this will only install mineflayer in the current folder your command prompt is in. Make sure you have navigated to the folder with 'index.js'
- Another option is to use an example bot from the examples folder. Navigate to the examples folder and click on which ever bot you want to use and copy the 2 files
config.json
andindex.js
- in your working directory you need to run the following command to download mineflayer
npm i mineflayer
Keep in mind, this will only install mineflayer in the current folder your command prompt is in. Make sure you have navigated to the folder with 'index.js'
You can run your bot locally on your computer by opening a command prompt in the folder with all of your code and running the following command:
node index.js
The best hosting service for 24/7 6b6t bots is Endelon hosting
- Visit Endelon hosting and create an account
- Press the green
create
button and select server - Name your server and select javascript runtime
- In a command prompt on your local machine under the directory with all your code run the following command:
npm init
- Navigate to the files tab in your server on Endelon hosting
- Import the following 4 files along with any more you may have added
index.js
config.json
package.json
package-lock.json
- Start your bot by pressing the green start button in your dashboard