A minecraft mining bot made with openCV and win32 API. Currently, the bot mines a straight tunnel and avoids burning in lava.
Requirements: Windows only, VS 2019 (You can downgrade by modifying the generate projects batch file). To build the project, navigate to the build directory and run the setup batch file.
Each iteration, the program captures the game's framebuffer and copies it to an openCV mat class. Then, a HSV color mask is applied to a copy of the image (shown below) to determine if lava is in player's sight - if the amount of masked pixels (0 - 100%) exceeds a given threshold, the bot takes a few steps back and rotates the camera to continue mining in a different direction.