https://github.com/moedevelops/autofisher
Autofishing script for Minecraft
https://github.com/moedevelops/autofisher
Last synced: over 1 year ago
JSON representation
Autofishing script for Minecraft
- Host: GitHub
- URL: https://github.com/moedevelops/autofisher
- Owner: MoeDevelops
- License: gpl-3.0
- Created: 2023-11-10T21:08:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-27T17:01:08.000Z (about 2 years ago)
- Last Synced: 2025-03-14T23:37:52.247Z (over 1 year ago)
- Language: Python
- Size: 37.1 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minecraft Autofisher
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.
## How does it work
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.
## Configuration
### Minecraft
* 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.
### config.txt
* Set the value of `gui_scale` in `config.txt` to the GUI Scale in Minecraft.
## Use a release
### Linux
1. Unzip
```bash
tar -xvzf autofisher_linux_x64.tar.gz
```
2. Navigate to directory
```bash
cd autofisher
```
3. Execute autofisher
```bash
./autofisher
```
### Is it running?
The program is running if the console prints out
```py
Searching screen...
```
### Windows
1. Unzip
Unzip the `autofisher_win_x64.zip` file
2. Navigate to directory
Open the directory autofisher
3. Execute autofisher
Double click on autofisher.exe
## Use source code
### Install Python
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
### Linux
1. Set up a virtual environment (optional but recommend)
```bash
python3 -m venv venv
```
2. Activate the virtual environment
```bash
source venv/bin/activate
```
3. Install dependencies
```bash
pip install pyautogui pynput opencv-python
```
4. Start the script
``` bash
python3 main.py
```
### Windows
1. Set up a virtual environment (optional but recommend)
```bash
python -m venv venv
```
2. Activate the virtual environment
```bash
venv\Scripts\activate
```
3. Install dependencies
```bash
pip install pyautogui pynput opencv-python
```
4. Start the script
``` bash
python main.py
```
## Notes
- 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.