Don't hit me
by Anuin
Don't hit me is a Fabric client-side mod that lets each player decide which entities can be struck.
What it does
Players can turn off attacks on chosen mobs from a toggle in Mod Menu, so a mob can be left unhit while others remain targets. The settings work in single-player worlds and on multiplayer servers that run the client. The configuration screen is built on YetAnotherConfigLib (YACL), and Fabric API is required alongside Mod Menu. The mod is released under the MIT License and is open source.
Key features
Per-mob attack toggle
A Mod Menu switch marks a mob as protected, so the player cannot damage it, while hostile mobs stay targetable.
Protection of passive mobs
Customizable settings keep valuable passive mobs safe from accidental hits while hostile mobs can still be fought.
Accidental damage prevention
Full control over which entities can be attacked helps avoid losing a mob to a stray swing or a sweep attack.
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 3
How it compares
Accidental Sweep is a Fabric server-side only mod under the MIT License, covering 1.21.9 – 1.21.11 and open source. Protect Villagers is a Fabric server-side only mod under All rights reserved, covering 26.1 – 26.2 and not open source, so it guards villagers on the server rather than letting each client choose.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Don't hit me | Fabric | 1.21.10 – 1.21.11 | Client-side only | 2026-03-03 |
| Accidental Sweep | Fabric | 1.21.9 – 1.21.11 | Server-side only | 2026-08-09 |
| Protect Villagers | Fabric | 26.1 – 26.2 | Server-side only | 2026-09-02 |
Questions
Does Don't hit me need Mod Menu?
Does the mod have to be installed on a server?
In the catalog
Don't hit me is one of 11,058 Mobs mods on ModsFinder, and one of 5,189 Mobs mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from Anuin
Similar mods
What the author says
This mod allows players to choose exactly which entities they can attack. In the mod menu, you can toggle any mob on or off and decide whether you want to be able to hit it. This gives you full control over your attacks and helps prevent accidental damage. For example, it could save your next Mending villager from…
Official listing
- Modrinth page
- modrinth.com/mod/dont-hit-me-mod
- Owner
- Anuin
- Published
- 2026-02-20
- Updated on Modrinth
- 2026-03-03
- Facts verified
- 2026-10-15
