Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thecoder777/minecraft-minebot

This is a multiprocessing based minebot for minecraft 1.14.x
https://github.com/thecoder777/minecraft-minebot

Last synced: 3 days ago
JSON representation

This is a multiprocessing based minebot for minecraft 1.14.x

Awesome Lists containing this project

README

        

# Minecraft MineBot

This is a fully automatic minebot for minecraft version 1.14.x (not tested in other versions).
It works via screen capturing and some sort of color detection through opencv!

## Dependencies
What you need to have installed:

+ numpy
+ pyautogui
+ pyscreenshot
+ keyboard
+ opencv (cv2)
+ pynput

To install all of them:

```bash
sudo pip instal numpy pyautogui pyscreenshot keyboard opencv-python pynput
```

## How to use

To use this, you first need to use the provided texturepack!

In game, you need to fill the first 5 slots, counted from the upper left, with stone pickaxes.
Fill the first 5 slots counted from the left of the second row of the inventory with iron pickaxes.
Last but not least, fill the first 5 slots from the left bottom of the inventory with stone shovels.

In your hotbar:
You need to have a stone pickaxe at 2nd slot,
a iron pickaxe at 3rd slot,
a stone shovel at 4th slot,
and some torches at your 9th slot (I recommend at least one stack, cause if the stack is empty, the minebot will stop!).

For purpose of lightning, you will need to have at least one torch in your off-hand,
and you need to hold your torches in the 9th slot of your inventory hotbar!
(if torches are empty, the minebot will stop!)

To start mining, start the program from you terminal of choice
(you need to execute is with sudo on Linux, because I'm using the keyboard module at some parts).
First you'll be asked for some health stats of your tools, then a countdown will appear!
As the countdown counts down, you have to switch you mouse focus to the mincraft window.
To make the minebot work properly,
you have to look at the top block in front of you in a 2 block high and 1 block wide mining tunnel!

To pause the minebot press "p" button. To shutdown the minebot hold the "m" key for one second!

To force kill the minebot (and all other spawned processes) hold the 'F12' key!
(you can *not* change this key in settings!)
This will terminate all running processes that were started by the main thread!
(basically it sends a SIG-TERM signal to every process, or in other words calls the terminate function)
**Do this only on your own risk!**

**This can cause zombie processes!**

## Settings

You can change pretty much every kind of value in the 'defaults' or the 'timings' classes!
There are also some settings like debugging and also some values you can touch on your own risk!
*(really, don't touch them!)*

## Status
Lava detection works excellent!

Ore detection is also pretty good!

Picaxe/shovel swapping works also pretty well!

There is some delay between detecting dirt and selecting the shovel!

If someone wants to help developing this minebot, please to that!

**I'm not actively developing this anymore!**