AutoAttack
by vin35
Holding the attack button in AutoAttack keeps the sword swinging, timed to each attack cooldown so every hit lands at full damage.
What it does
AutoAttack is a client-side Fabric mod that repeats the attack input while the button is held. Each swing fires as soon as the attack cooldown finishes, so the player gets the maximum possible damage from every hit without clicking repeatedly. The same automatic firing covers bows, crossbows and tridents, and the mod can attack enemies through obstructions in the manner of the CleanCut Mod, while also preventing hits against blocks.
The mod requires Fabric API and bundles MidnightLib. It is open source under the MIT License and has public links to its source code and issue tracker. Files target 1.19.1 – 1.20.4 across six release versions, and the latest Fabric file, mc1.20.4-v1.3.7, was published for 1.20.4 on 2023-12-19. Client-side only, so servers run without it and players alone install it.
Key features
Automatic sword swings
Holding the attack button repeats the sword swing, timed against the attack cooldown.
Full-damage timing
Each swing is sent right after the cooldown ends, so hits use the largest damage the cooldown allows.
Ranged weapon firing
Bows, crossbows and tridents also fire automatically while the attack button is held.
Attacks through obstructions
Enemies behind obstructions can be hit, in the manner of the CleanCut Mod.
Block hit prevention
Attacks are kept from landing on blocks, so the automatic input only targets creatures.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Embedded 1
How it compares
Crossbow Auto Release is a client-side Fabric mod for 1.19.4 – 1.20.4 under the GNU General Public License v3.0 only, and it is open source; it automates crossbow release rather than melee attacks. Attack has no cooldown is a Fabric mod for 1.20.1 – 1.20.6 that is not open source. Either side can run it, and neither needs it, so it does not replace AutoAttack's client-side input.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| AutoAttack | Fabric | 1.19.1 – 1.20.4 | Client-side only | 2023-12-19 |
| Crossbow Auto Release | Fabric | 1.19.4 – 1.20.4 | Client-side only | 2023-07-05 |
| Attack has no cooldown | Fabric | 1.20.1 – 1.20.6 | Server required, client optional | 2025-10-22 |
Questions
Does AutoAttack need Fabric API?
Do servers need AutoAttack installed?
Which game versions does AutoAttack support?
In the catalog
AutoAttack is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 13,907 mods support Minecraft 1.20.4.
Similar mods
What the author says
This is a Fabric mod, it has always been and will always be! You can send suggestions in the comments!
Official listing
- Modrinth page
- modrinth.com/mod/autoattack
- Owner
- vin35
- Published
- 2022-10-13
- Updated on Modrinth
- 2023-12-19
- Facts verified
- 2026-10-15
