Skip to content

hyx0329/minecraft-autofishing-wayland

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Minecraft Auto-fishing Script on Wayland

Due to the couple between gstreamer and python interface, we won't use a virtual environment.

Currently for Linux/Wayland ONLY.

inspired by: Rob Dundas

Wayland version of the old one

Why this?

Using screenshot APIs provided by Wayland compositors is just SLOOOOOW. A few tweaks required. One of them is using screencast API.

Prerequisites

  • Arch Linux
  • Wayland session & Pipewire
  • gst-plugin-pipewire
  • xdg-desktop-portal
  • Python
    • numpy
    • pillow
    • pynput
    • gobject
    • dbus
    • maybe something else?

Usage

  1. Enter game & load world
  2. find a fishing spot
  3. maximize screen or switch to full screen
  4. press esc to open menu
  5. open a terminal to run the script with python -m AutoFishing
  6. select the game window
  7. refocus to the game window within 2 seconds
  8. wait and adjust your pointing direction
    • goal: leave as much black wire near the cross pointer as possible
  9. enjoy auto fishing

You might need to do some adjustments, eg. right click once to make everything synchronized correctly.

Notes

When pipewiresrc installed but not found

rm -rf ~/.cache/gstreamer-1.0