This Python script automates fishing in Minecraft, specifically designed for open waters as AFK-fishing became less effective after Version 1.16, which restricted treasure acquisition in closed-off water bodies.
The script captures screenshots of the Minecraft screen, monitoring for the appearance of the "Fishing Bobber splashes" text in the subtitles. Upon detection, the script initiates two right-click actions with a delay, allowing you to reel in loot and cast your fishing rod again.
- Ensure you're not using a texture pack that changes the font.
- Check your GUI Scale setting. If it's set to Auto, configure it to a value you prefer.
- Set the value of
gui_scale
inconfig.txt
to the GUI Scale in Minecraft.
- Unzip
tar -xvzf autofisher_linux_x64.tar.gz
- Navigate to directory
cd autofisher
- Execute autofisher
./autofisher
The program is running if the console prints out
Searching screen...
- Unzip
Unzip theautofisher_win_x64.zip
file - Navigate to directory
Open the directory autofisher - Execute autofisher
Double click on autofisher.exe
Install python 11.6, if not already installed.
If you are on windows check the box Add python.exe to PATH
in the installer
If you are on Linux make sure to isntall python3-dev
- Set up a virtual environment (optional but recommend)
python3 -m venv venv
- Activate the virtual environment
source venv/bin/activate
- Install dependencies
pip install pyautogui pynput opencv-python
- Start the script
python3 main.py
- Set up a virtual environment (optional but recommend)
python -m venv venv
- Activate the virtual environment
venv\Scripts\activate
- Install dependencies
pip install pyautogui pynput opencv-python
- Start the script
python main.py
- This script has only been tested on Linux with Debian and KDE Plasma.
- Caution: The use of this script may be considered cheating on some servers. Please use it responsibly.