ModsFinder

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.

FabricClient-side onlyMIT LicenseOpen source1.21.10 – 1.21.11

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

  1. Per-mob attack toggle

    A Mod Menu switch marks a mob as protected, so the player cannot damage it, while hostile mobs stay targetable.

  2. Protection of passive mobs

    Customizable settings keep valuable passive mobs safe from accidental hits while hostile mobs can still be fought.

  3. 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.

1.21.111.2.2
1.21.101.2.2
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 3

YetAnotherConfigLib (YACL)A builder-based configuration library for Minecraft!
Required
Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required
Mod MenuAdds a mod menu to view the list of mods you have installed.
Required

How it compares

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
Don't hit meFabric1.21.10 – 1.21.11Client-side only2026-03-03
Accidental SweepFabric1.21.9 – 1.21.11Server-side only2026-08-09
Protect VillagersFabric26.1 – 26.2Server-side only2026-09-02

Questions

Does Don't hit me need Mod Menu?

Yes. Mod Menu is required, and the per-mob toggles are reached through it. Fabric API and YetAnotherConfigLib (YACL) are also required.

Does the mod have to be installed on a server?

No. Only the player's game needs it, and servers run without it.

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

All projects

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…
Anuin, on the Modrinth page

Official listing

Owner
Anuin
Published
2026-02-20
Updated on Modrinth
2026-03-03
Facts verified
2026-10-15

Tags