Mineuniverse
Log in Register
Mods

Discernment

Adds an enchantment and mob effect that prevent a living entity that isn't sneaking from hurting any other living entity that isn't on a custom name blacklist, and is either peaceful, a player, owned, or is on a custom name whitelist
by Phylogeny
Download Claim this project
3,889 downloads
0 likes
Updated Jun 30, 2026
0 hypes

With this mod you can avoid accidentally killing a pet or other peaceful mob.

This mod adds a discernment enchantment and mob effect that prevents a living entity (including a player) from damaging the following types of other living entities (with configs to disable any/all of them):

  • 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

This protection only applies while the following conditions are met:

  • 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

Bug reports, feature requests, questions, etc, can all be submitted via the GitHub issue tracker.

This mod has been released into the public domain. Use it anywhere in any way.

Elements | Brewing | Configs | Changelogs

*Particles (their type/count) and sounds (their type/volume/pitch) can be changed or disabled in the Configs

undefined

Discernment-1.21-6.0.0.jar
MC 1.21, Client, NeoForge, Server
Release 2024-06-27 Get

More from Phylogeny

JEI Enchantment Info
8,616,840
Simulated Nights
76,760
Debug Block Collision
2,363
Extra Bit Manipulation
18,836,246
Proportional Destruction Particles
15,773,443
Bound Totems
106,305

You Might Also Like

LoadingTips
A mod that adds custom tips to the loading screen
999,218
Sampler
Performance oriented debugging/administration tools
998,926
VulkanMod
Vulkan renderer mod for Minecraft.
997,115
Charm Fixer
Disables some modules on charm to fix incompatbility issues with owo
996,251
Trading station
Basic items to item trading machines
99,755
NarrateBookForMe [FABRIC]
Adds a narration keybind, and two GUI buttons to the book screen. Text-to-speech (tts) / narration on the go! Client sided.
99,734