Attack Entity Filter
Attack Entity Filter lets a player block attacks on chosen entities through a set of commands, so a player can avoid harming animals, villagers or other mobs by accident.
What it does
Entity attacks can be restricted with commands. An attack blacklist add command stops a player from attacking the entities given to it, and the remove command lifts that restriction on entities marked earlier. Entries can be applied to a whole entity type with addToAll and removeToAll, and clear empties the list.
Two query commands show what is currently protected: one lists the individual entities a player cannot attack, and the other lists the entity types. Other operators can designate a player as the target of these commands, so server staff can set the list for someone else.
The mod is server-side only, so only the server needs it and players join without installing anything. It is published for Fabric alone, with files covering 1.21 – 1.21.8 and 1.0.0 for 1.21.8 as the latest build. The code is released under the Creative Commons Attribution Non Commercial Share Alike 4.0 license and is not open source.
Key features
Single entity blacklist
The add and remove commands mark or unmark individual entities so the player cannot attack them.
Entity type blacklist
The addToAll and removeToAll commands apply the same rule to every entity of a given type.
Clear and query commands
A clear command empties the protected list, and two get commands report the entities and types that cannot be attacked.
Designating other players
Operators can name another player as the target of these commands, not only themselves.
Compatibility
Latest build for each game version and loader.
1.21.x9 of 9 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Server owners and operators who want to limit accidental attacks on entities through commands. Single-player players can also use the commands on their own world, since the mod runs on the server side.
How it compares
No Hitting Villagers is client-side only and open source under the MIT License, covering 1.21.10 – 1.21.11, so it changes what the player sees rather than the server. Rename Commands is server-side only and open source under the MIT License, with files for 1.21 – 1.21.4, and it renames commands instead of blocking attacks.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Attack Entity Filter | Fabric | 1.21 – 1.21.8 | Server-side only | 2025-08-02 |
| No Hitting Villagers | Fabric | 1.21.10 – 1.21.11 | Client-side only | 2025-12-13 |
| Rename Commands | Fabric | 1.21 – 1.21.4 | Server-side only | 2025-02-08 |
Questions
Does Attack Entity Filter need to be installed on the client?
Which loader does Attack Entity Filter use?
Which game versions are covered?
Can the protection apply to a whole entity type?
In the catalog
Attack Entity Filter 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 ShuangJiangGuYi
Similar mods
What the author says
This mod added some commands, which can be used to prevent oneself from accidentally harming entities. ### 1. /entityAttackBlacklist add > This command prevents player from attacking specified entities. ### 2. /entityAttackBlacklist remove > This command allows player to remove specified entities that they have…
Official listing
- Modrinth page
- modrinth.com/mod/attack-entity-filter
- Owner
- ShuangJiangGuYi
- Published
- 2025-07-27
- Updated on Modrinth
- 2025-08-02
- Facts verified
- 2026-10-15
