Trigger Swing
by S3don_Ms3od
Trigger Swing is a Fabric client-side mod that stops the attack swing from firing when the crosshair is not on a valid target.
What it does
When the crosshair is aimed at a player, mob or animal, a click on the attack button lands a normal attack at full damage. When it is aimed at empty air or at blocks, the click produces no damage and only the swing sound plays. Breaking blocks is not affected, so mining keeps working exactly as before.
The mod is client-side only, so the server does not need to install it, and it works on servers that do not run it. Files are published for Fabric alone, across 15 release versions 1.20.1 – 1.21.8, released under the MIT License and not open source. Its first and latest file is 1.0.0 for 1.21.8, dated 2026-03-22.
Trigger Swing is meant for players who want swings to count, such as in PvP, where a wasted swing gives away position. The author notes that a toggle is planned for a future update, but the current build is always active.
Key features
Hits only aimed targets
Attacks register only when the crosshair is on a player, mob or animal, so the weapon never swings uselessly at air.
Empty swings produce nothing
Clicking at air or blocks plays the swing sound without any damage or delay, which avoids revealing position through wasted swings.
Block breaking unchanged
Mining and block breaking work normally, since the mod only changes the damage side of the attack.
Minimal performance cost
The author reports a small performance impact, and the mod adds no server-side work because it runs on the client alone.
Gallery
Compatibility
Latest build for each game version and loader.
1.21.x9 of 9 versions with builds
1.20.x6 of 6 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Players who fight in PvP or mob combat and want every attack click to land on a target, on any server that does not require the mod.
How it compares
Hand Swing Changer is a Fabric client-side option for 1.20.1 – 1.21.11, but it is not open source and its license is All rights reserved, so it changes the swing animation rather than the hit logic. Classic Swing Animation is also Fabric and client-side, limited to 1.21.11, and open source under the Mozilla Public License 2.0, and it targets the animation as well. Trigger Swing instead cancels swings that hit nothing.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Trigger Swing | Fabric | 1.20.1 – 1.21.8 | Client-side only | 2026-03-22 |
| Hand Swing Changer | Fabric | 1.20.1 – 1.21.11 | Client-side only | 2026-06-23 |
| Classic Swing Animation | Fabric | 1.21.11 | Client-side only | 2026-06-25 |
Questions
Does Trigger Swing need to be installed on the server?
Which Minecraft versions does Trigger Swing support?
Does the mod change block breaking?
Can the swing toggle be turned off?
In the catalog
Trigger Swing is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 17,695 mods support Minecraft 1.21.8.
More from S3don_Ms3od
Similar mods
What the author says
Trigger Swing is a simple but powerful client-side mod for Minecraft that prevents you from swinging your weapon in the air. It ensures that you only attack when your crosshair is actually aimed at an entity (players, mobs, or animals). Q: Will this work on servers? A: Yes! This is a client-side mod, so it works on…
Official listing
- Modrinth page
- modrinth.com/mod/trigger-swing
- Owner
- S3don_Ms3od
- Published
- 2026-03-22
- Updated on Modrinth
- 2026-03-22
- Facts verified
- 2026-10-15
