- Entities that do not have a custom name (such as given via a name tag) that matches a config-defined regular expression blacklist (default behavior matches any name that contains the word "unprotected" -- case-independent) AND:
- Entities that have a custom name that matches a config-defined regular expression whitelist (default behavior matches any name that contains the word "protected" -- case-independent) OR:
- Ownable entities that are owned by the entity with discernment OR:
- Peaceful non-player entities OR:
- Players
- The attacking entity either:
- Has the discernment mob effect
- Is wearing an item as armor, or holding an item in their main or offhand, that has the discernment enchantment on it
- The attacking entity is not sneaking
