Skip to content

CapyKing10/6b6t-bot-creation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

credits to byrobuff for all the code

i just added server ip and version options in the configs

now also an archive of his template cause he deleted his repo!

100% uptime 6b6t bot (now all servers)

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 ⭐

Contents

Creation

  1. The first step is to clone this repo by running the command
git clone git:github.com/CapyKing10/6b6t-bot-template.git

This will download the all of the code into a folder.

  1. You also need to download and install Nodejs

Option 1: Custom code

  1. To create your bot you can navigate to the template folder and just copy the 2 files config.json and index.js to your working directory.
  2. 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'

Option 2: Preset code

  1. 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 and index.js
  2. 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'

Running locally

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

Hosting

The best hosting service for 24/7 6b6t bots is Endelon hosting

  1. Visit Endelon hosting and create an account
  2. Press the green create button and select server
  3. Name your server and select javascript runtime
  4. In a command prompt on your local machine under the directory with all your code run the following command:
npm init
  1. Navigate to the files tab in your server on Endelon hosting
  2. Import the following 4 files along with any more you may have added
index.js
config.json
package.json
package-lock.json
  1. Start your bot by pressing the green start button in your dashboard

About

fork off byrobuffs project, i just added ip and version options in the configs

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors