A Minecraft bot doing tedious things.
This project is written in TypeScript. We implement some feature, such as AutoAttack, AutoEat. You can write your own task to enhance your Minecraft Bot!
First we need to install all dependencies.
npm install
ts-node
is used to execute TypeScript on the fly.
npm run start
To show the debug information, type this command before running.
export DEBUG=MC_BOT_LIB:*
We first convert TypeScript to CommonJS, then use pkg
to package it to a executable file.
We build two different types executable files:
- Linux-x64
- Windows-x64
npm run binary
We use Jest
to write some test to ensure the correctness of our code.
npm run test
npm run test_auth
npm run test_create
npm run test_attack
npm run test_autoEat
npm run test_depositEmerald