ModsFinder

Attack Entity Filter

by ShuangJiangGuYi

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.

FabricServer-side onlyCreative Commons Attribution Non Commercial Share Alike 4.01.21 – 1.21.8

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

  1. Single entity blacklist

    The add and remove commands mark or unmark individual entities so the player cannot attack them.

  2. Entity type blacklist

    The addToAll and removeToAll commands apply the same rule to every entity of a given type.

  3. Clear and query commands

    A clear command empties the protected list, and two get commands report the entities and types that cannot be attacked.

  4. 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
1.21.81.0.0
1.21.71.0.0
1.21.61.0.0
1.21.51.0.0
1.21.41.0.0
1.21.31.0.0
1.21.21.0.0
1.21.11.0.0
1.211.0.0
ReleaseBetaAlphaNot available

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
Attack Entity FilterFabric1.21 – 1.21.8Server-side only2025-08-02
No Hitting VillagersFabric1.21.10 – 1.21.11Client-side only2025-12-13
Rename CommandsFabric1.21 – 1.21.4Server-side only2025-02-08

Questions

Does Attack Entity Filter need to be installed on the client?

No. Players join without it, since only the server has to run the mod.

Which loader does Attack Entity Filter use?

Fabric is the only loader with published files, and the latest build is 1.0.0 for 1.21.8.

Which game versions are covered?

Files cover 1.21 – 1.21.8, nine release versions in total.

Can the protection apply to a whole entity type?

Yes. The addToAll and removeToAll commands set or clear the rule for every entity of a 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

All projects

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

Official listing

Owner
ShuangJiangGuYi
Published
2025-07-27
Updated on Modrinth
2025-08-02
Facts verified
2026-10-15

Tags