Auto Actions puts three of Minecraft's most repetitive chores behind a single key. Press it once and it starts, press it again and it stops. The default key is V, and you can rebind it in Options, Controls, Auto Actions.
While it is running it watches what your crosshair is pointing at and does the one thing that makes sense in that spot. Point at a creature and it attacks. Point at a block and it mines. Hold a fishing rod and it fishes. Point at nothing and it waits.
The timing is what makes it feel like a person playing rather than a macro. Attacks only fire when your weapon's cooldown is completely full, so every hit lands at full charge and nothing is wasted on half-charged swings. Mining runs through the vanilla destruction pipeline, the same start, continue and stop calls your mouse makes, so blocks break at their normal speed with normal cracking, normal sounds and normal drops. Your arm swings every tick while it works, so it looks like you mining, not like the block quietly disappearing.
Holding a sword changes one thing. A sword is a weapon, not a digging tool, so it will never make you mine. It will still attack, and it will also treat animals as valid targets, which means sheep, cows and pigs are fair game once the sword is in your hand. Villagers and tamed pets stay protected no matter what you are holding. Without a sword in hand, animals are skipped by default.
Fishing is handled the way you would handle it yourself. It casts, waits, and reels the moment the bobber goes under. After a successful catch it waits about a second before casting again, because reeling and instantly recasting in vanilla throws the hook almost straight down at your feet instead of out into the water.
It also knows when to keep its hands off. Opening any screen, pausing the game, losing window focus, dying, spectating, sleeping or using an item such as a bow or food will stop it immediately, even while the toggle still reads ON.
This is a client-side mod. Single player works out of the box, and on a server you only need it on your own client, nothing has to be installed on the server side. Everything it does goes through ordinary vanilla attack and destroy packets, so the server stays authoritative and no reach or damage rules are bypassed. Behaviour can be tuned in the config file at config/autoactions.json, or config/autoactions-client.toml on Forge 1.20.1, where each of attack, mining and fishing can be switched off independently, along with options for attacking other players, skipping passive mobs and pausing when the window loses focus.
Available for Forge 1.20.1, Fabric 1.20.1, Fabric 1.21.1, Fabric 1.21.8, NeoForge 1.21.1 and Forge 26.3.