Mineuniverse
Mods
Discernment

Discernment

MOD
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
4,014 downloads
0 likes
Updated Oct 14, 2026
0 hypes
Armor, Tools, and Weapons Magic Miscellaneous
Advertisement Remove ads with Premium →

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
Discernment-1.20.4-5.0.0.jar
MC Client, NeoForge, 1.20.4, Server
Release 2024-01-27 Get
Discernment-1.19-4.0.0.jar
MC Forge, 1.19
Release 2022-06-08 Get
Discernment-1.17.1-3.0.0.jar
MC 1.17.1, Forge
Release 2022-04-28 Get
Discernment-1.18.2-3.0.0.jar
MC 1.18.1, 1.18.2, Forge, 1.18
Release 2022-04-28 Get
Discernment-1.16.4-2.0.1.jar
MC 1.16.3, 1.16.1, 1.16.5, Forge, 1.16.4, 1.16.2
Release 2020-12-28 Get
Discernment-1.15.2-2.0.0.jar
MC 1.15.2, Forge
Release 2020-07-09 Get
Discernment-1.16.1-2.0.0.jar
MC 1.16.1, Forge
Release 2020-07-09 Get
DiscernmentEnchant-1.15.2-1.0.0.jar
MC 1.15.2, Forge
Release 2020-06-30 Get
DiscernmentEnchant-1.16.1-1.0.0.jar
MC 1.16.1, Forge
Release 2020-06-30 Get

More from Phylogeny

Advertisement Remove ads with Premium →

You Might Also Like