|
|
|
@ -1,4 +1,10 @@ |
|
|
|
|
# Minecraft Bot |
|
|
|
|
# Mosfet Minecraft Bot |
|
|
|
|
|
|
|
|
|
A general-purpose Minecraft 1.16 bot written in Python. |
|
|
|
|
|
|
|
|
|
Mosfet is able to farm wood by cutting trees, gather sand, gather netherwart, |
|
|
|
|
and trade with villagers to get emeralds. He can eat, sleep, and flee from |
|
|
|
|
threats. |
|
|
|
|
|
|
|
|
|
## Setup |
|
|
|
|
|
|
|
|
@ -24,15 +30,20 @@ Always make sure the virtual environment is running `(env)`. |
|
|
|
|
(env) $ USERNAME=you@domain.com PASSWORD=supersecret SERVER=example.com python main.py |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Commands |
|
|
|
|
|
|
|
|
|
Talking to bot (All commands can be found in "game.py" under "public commands", starting around line 494) |
|
|
|
|
The command prefix character is the last character of the bot's name. For |
|
|
|
|
example, if the bot's name is `mosfet1`, then you would issue commands like |
|
|
|
|
`1farm wood` or `1pos`. This lets you run multiple bots on the same server. |
|
|
|
|
|
|
|
|
|
The exception are the below public commands, they can optionally be prefixed with `!` |
|
|
|
|
and all bots will run the command. |
|
|
|
|
|
|
|
|
|
Use prefix (in this case, "1") to call to attention before giving command. (EX. 1ping, 1here, etc.) |
|
|
|
|
Commands can be issued in public chat or private message like `/msg mosfet1 |
|
|
|
|
1farm wood`. The bot will reply the same way the command was issued. |
|
|
|
|
|
|
|
|
|
Use `echo` to make Mosfet run Minecraft commands. For example, `1echo /sethome |
|
|
|
|
home` will cause him to issue the `/sethome` command. |
|
|
|
|
|
|
|
|
|
### Public Commands |
|
|
|
|
|
|
|
|
@ -142,3 +153,17 @@ These dangerous commands can only be ran by the bot owner. |
|
|
|
|
|
|
|
|
|
`1exit` - exits the program |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## License |
|
|
|
|
|
|
|
|
|
This program is free and open-source software licensed under the MIT License. |
|
|
|
|
Please see the `LICENSE` file for details. |
|
|
|
|
|
|
|
|
|
That means you have the right to study, change, and distribute the software and |
|
|
|
|
source code to anyone and for any purpose. You deserve these rights. Please take |
|
|
|
|
advantage of them because I like pull requests and would love to see this code |
|
|
|
|
put to use. |
|
|
|
|
|
|
|
|
|
## Acknowledgements |
|
|
|
|
|
|
|
|
|
Thanks to Isaia and the devs behind pyCraft. |
|
|
|
|