AntiHit
by CIOCOLATA47
AntiHit lets a player keep a list of friends and decide whether attacks against those friends are allowed or blocked.
What it does
The friend system stores its list in a JSON file inside the config directory, so the names persist between sessions. Players add and remove friends through key bindings, and a separate key toggles whether attacks on friends are permitted. Attack handling checks the list before a hit lands, so a blocked friend cannot be struck by mistake during fights or play.
The mod is client-side only, so the server needs nothing and players join without installing it. Files exist for Fabric and Quilt, with the latest build 1.4-1.21.11 for 1.21.11, published on 2026-02-20. AntiHit is open source under the MIT License, and its source code and issue tracker are public.
Key features
Friend list management
Friends can be added and removed while playing, and the list is shown and kept per player.
Attack permission toggle
A setting decides whether attacks against friends are allowed or blocked, applied through attack handling.
Key bindings for friends
Bound keys cover adding and removing friends and switching the attack setting without opening a menu.
JSON friend storage
The friends list is written to a JSON file in the config directory, which can be backed up or edited by hand.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Protecting friends in shared play
Players on a shared world can mark companions so accidental hits on them are blocked while they fight nearby monsters.
Managing a roster of companions
Players who run several allies can keep the full list in one file and adjust it with key bindings as the group changes.
Who it’s for: Players who play with a regular group and want attacks on those players handled automatically, on Fabric or Quilt.
How it compares
Key Bindings Keeper is client-side only too, but it uses the Mozilla Public License 2.0 and covers 1.20.5 – 1.21.5 on Fabric and NeoForge. Multi Key Bindings is open source under the GNU General Public License v3.0 only and targets Fabric for 1.20 – 26.3, without a friends feature. Highlighted Friends is client-side only on Fabric, with All rights reserved and no open source, for 1.20.5 – 26.2.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| AntiHit | Fabric and Quilt | 1.20.4 – 1.21.11 | Client-side only | 2026-02-20 |
| Key Bindings Keeper | Fabric and NeoForge | 1.20.5 – 1.21.5 | Client-side only | 2025-04-16 |
| Multi Key Bindings | Fabric | 1.20 – 26.3 | Client-side only | 2026-09-16 |
| Highlighted Friends | Fabric | 1.20.5 – 26.2 | Client-side only | 2026-08-25 |
Questions
Does AntiHit need to be installed on the server?
Which loaders does AntiHit support?
Where is the friends list kept?
In the catalog
AntiHit is one of 8,499 Technology mods on ModsFinder, and one of 4,201 Technology mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from CIOCOLATA47
Similar mods
What the author says
AntiHit is a Minecraft Fabric mod that allows players to manage a friends list. Attack Handling: - Choose whether attacks on friends are allowed or blocked.
Official listing
- Modrinth page
- modrinth.com/mod/antihit
- Owner
- CIOCOLATA47
- Published
- 2023-12-30
- Updated on Modrinth
- 2026-02-20
- Facts verified
- 2026-10-15
