HomeJavaModsAttack Entity Filter
Attack Entity Filter
ModsJava

Attack Entity Filter

by ShuangJiangGuYi · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 1.21.6–1.21.8⬇ Download for 1.21.5⬇ Download for 1.21–1.21.4
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

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 previously marked as unattackable.

3. /entityAttackBlacklist addToAll

This command prevents player from attacking all entities of the specified type.

4. /entityAttackBlacklist removeToAll

This command allows player to remove all entities of the specified type that have marked as unattackable.

5. /entityAttackBlacklist clear

This command allows player to clear all entities that have marked as unattackable.

6. /entityAttackBlacklist getCanNotAttackEntity

This command can get all entities that the player cannot attack.

7. /entityAttackBlacklist getCanNotAttackEntityType

This command can get all entitiy types that the player cannot attack.

Other than that, operators can designate players after these commands.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more