protocol | ||
.gitignore | ||
blocks.py | ||
bot.py | ||
download_mcdata.sh | ||
game.py | ||
items.py | ||
jobs.py | ||
LICENSE | ||
main.py | ||
mcdata.py | ||
mobs.py | ||
monkey_patch.py | ||
path.py | ||
README.md | ||
requirements.txt | ||
test_pycraft.py | ||
utils.py |
Minecraft Bot
Setup
Assuming Debian / Ubuntu based distro:
$ sudo apt update
$ sudo apt install build-essential python3 python3-dev python3-pip python3-virtualenv git
$ git clone https://git.tannercollin.com/tanner/minecraft-bot.git
$ cd minecraft-bot/
$ bash download_mcdata.sh
$ virtualenv -p python3 env
$ source env/bin/activate
(env) $ pip install -r requirements.txt
Always make sure the virtual environment is running (env)
.
Running
(env) $ USERNAME=you@domain.com PASSWORD=supersecret SERVER=example.com python main.py