Coko7 / mc-fish-pye

AFK auto-fishing script for Minecraft using Python and OpenCV.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐ŸŽฃ mc-fish-pye

AFK auto-fishing script for Minecraft using Python and OpenCV.

So that you can bake many fish pyes with all the fish you get :)

โš™๏ธ Setup

To use this script, you will need to:

  • Install Python and the following packages (you can use venv):
  • Run setup.py and perform two clicks to define the region of interest
  • Update config.json to use the newly defined ROI
  • Download the resource pack and import it (Feel free to zip it if you want)
  • In game, select the resource pack and then change your in-game language to "Bionic Fisher Lang"
  • Make sure you have the subtitles enabled in Accessibility Settings
  • In Accessibility Settings, disable the transparency of the subtitle background (it should be full black)
  • Make sure you do not have Friendly Creatures sounds muted in your Sound Settings

๐Ÿ“– Usage

  • Launch Minecraft and make sure you have set your language properly
  • Join a world and stand in front of your fishing spot
  • Run the main.py script with root/admin privileges (required for the keyboard key press)
  • Quickly switch window focus to Minecraft and let it do the work
  • Enjoy an infinite supply of fish and treasure!
  • You can stop the script at any moment by holding the p key

โ“ How it works

This script relies on Minecraft subtitles and a custom language to detect when the fishing bobber sinks.

The custom language sets all subtitles to be empty, apart from subtitles.entity.fishing_bobber.splash, which is set to "AAAAAAA".

The long string will cause the black background behind the subtitle text to stretch farther than other subtitles.

These additional black pixels are what the script is looking for to detect if your fishing bobber has caught onto something.

Once a catch is detected, the script sends one right click to retrieve the catch, followed immediately by another one to cast the rod again.

After the rod has been cast again, the pixel detection will be deactivated for a few seconds to allow the subtitle to have time to fade away.

About

AFK auto-fishing script for Minecraft using Python and OpenCV.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%