Autofish Mod (1.19.2, 1.18.2) will automatically reel in and recast the fishing rod whenever you catch a fish. It’s possible to disable it by using its GUI. This opens with a configurable key. Simply cast your fishing rod once into the water, and the mod will take care of the rest.
This mod automates fishing in minecraft so that you don’t have to go far and it will fish for your.