promotional bannermobile promotional banner

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

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

The Discernment Team

profile avatar
  • 22
    Followers
  • 9
    Projects
  • 43.1M
    Downloads

More from PhylogenyView all

  • JEI Enchantment Info project image

    JEI Enchantment Info

    • 8.5M
    • Mods

    Adds JEI info entries for enchantments. Press R while hovering over a book with a single enchantment to view info about it.

    • 8.5M
    • June 29, 2024
    • Mods
    • +2
  • Bound Totems project image

    Bound Totems

    • 106.1K
    • Mods

    Allows Totems of Undying to be bound to living entities and used anywhere in their inventory or in totem shelves in any dimension. Teleporting variants also teleport them to a saved location in any dimension.

    • 106.1K
    • July 28, 2020
    • Mods
    • +1
  • Proportional Destruction Particles project image

    Proportional Destruction Particles

    • 15.5M
    • Mods

    A client-side mod that causes block destruction particles to only spawn in blocks' collision/bounding boxes.

    • 15.5M
    • October 28, 2018
    • Mods
  • Extra Bit Manipulation project image

    Extra Bit Manipulation

    • 18.7M
    • Mods

    Adds extra in-world bit manipulation to the Chisels & Bits mod.

    • 18.7M
    • October 21, 2018
    • Mods
    • +1
  • JEI Enchantment Info project image

    JEI Enchantment Info

    • 8.5M
    • Mods

    Adds JEI info entries for enchantments. Press R while hovering over a book with a single enchantment to view info about it.

    • 8.5M
    • June 29, 2024
    • Mods
    • +2
  • Bound Totems project image

    Bound Totems

    • 106.1K
    • Mods

    Allows Totems of Undying to be bound to living entities and used anywhere in their inventory or in totem shelves in any dimension. Teleporting variants also teleport them to a saved location in any dimension.

    • 106.1K
    • July 28, 2020
    • Mods
    • +1
  • Proportional Destruction Particles project image

    Proportional Destruction Particles

    • 15.5M
    • Mods

    A client-side mod that causes block destruction particles to only spawn in blocks' collision/bounding boxes.

    • 15.5M
    • October 28, 2018
    • Mods
  • Extra Bit Manipulation project image

    Extra Bit Manipulation

    • 18.7M
    • Mods

    Adds extra in-world bit manipulation to the Chisels & Bits mod.

    • 18.7M
    • October 21, 2018
    • Mods
    • +1