This mod is a 1.20.1 port of Auto Attack. The original author has open-sourced it and released it under the Unlicense license.
With this mod, holding down the attack button will automatically swing your weapon. Each swing occurs immediately after the attack cooldown finishes, ensuring maximum damage is dealt every time.
The mod attempts to avoid automatically attacking pets.
How to Install Auto Attack Port (Mod)
Auto Attack Port by moadwajad is verified for Forge across Minecraft versions 1.20.1 (latest release: 2.1.0, file size: 6 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1) and platform (Forge).
- Make sure you have the compatible loader or environment installed for Forge.
- Move the downloaded Auto Attack Port file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- AutoAttack 2.1.0**
- Fixed: holding left click only played the swing animation on the first hit. Every auto-attack now plays the vanilla-consistent swing animation.
- Added: configurable "attack while blocking" (attack_while_blocking), enabled by default. Works with vanilla shields and modded shields that support the shield_block tool action. Set to false to restore vanilla behavior.
- Improved compatibility: attack rate now follows each weapon's attack speed, so it works with high-attack-speed and no-cooldown weapon mods. Attacks only trigger when aiming at an entity — empty swings do nothing.