A Minecraft bot
npm install
Create .env
file:
MC_HOST=<mc server host>
MC_USERNAME=<username>
MC_AUTH=offline
Then start the bot:
npm start
Support commands in game:
/msg <bot> come
: Make the bot come to you.
/msg <bot> gotoxz <x> <z>
: Make the bot go to the coordinates.
/msg <bot> tree setstand <x> <y> <z>
: Set the position where bot stands when planting trees./msg <bot> tree settree <x> <y> <z>
: Set the coordinates of the dirt below the bot./msg <bot> tree setlever <x> <y> <z>
: Set the coordinates of the lever for turning on/off the tree factory./msg <bot> tree start
: The bot will turn on the tree factory by activating the lever, then plant trees continuously./msg <bot> tree stop
: The bot will turn off the tree factory and stand by(Implement later with FSM).
PRs are welcome.
GPL-3.0-or-later © Zijian Zhang