Compatibility
Minecraft: Java Edition
1.21–1.21.8
Platforms
Supported environments
Creators
Details
Licensed CC-BY-NC-SA-4.0
Published 5 months ago
Updated 5 months ago
This mod added five commands, which can be used to prevent oneself from accidentally harming entities.
1. /entityAttackBlacklist add <entities>
This command prevents player from attacking specified entities.
2. /entityAttackBlacklist remove <entities>
This command allows player to remove specified entities that they have previously marked as unattackable.
3. /entityAttackBlacklist addToAll <entity type>
This command prevents player from attacking all entities of the specified type.
4. /entityAttackBlacklist removeToAll <entity type>
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.



