2020-09-10 21:33:52 +00:00
|
|
|
# Minecraft Bot
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
Assuming Debian / Ubuntu based distro:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ sudo apt update
|
2021-01-05 06:15:12 +00:00
|
|
|
$ sudo apt install build-essential python3 python3-dev python3-pip python-virtualenv python3-virtualenv git
|
2020-12-15 22:37:32 +00:00
|
|
|
|
2021-01-05 06:15:12 +00:00
|
|
|
$ git clone https://git.tannercollin.com/tanner/minecraft-bot.git
|
|
|
|
$ cd minecraft-bot/
|
2020-12-15 22:37:32 +00:00
|
|
|
$ bash download_mcdata.sh
|
2020-09-10 21:33:52 +00:00
|
|
|
$ 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
|
|
|
|
```
|
|
|
|
|