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
常见问题
Discernment 支持哪些 Minecraft 版本?
Discernment 支持 Minecraft Java 版 1.15.2–1.21,共 13 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
Discernment 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Phylogeny 的其他作品
查看全部 →Extra Bit Manipulation
为 Chisels & Bits 模组增加更多游戏内微方块编辑功能。
Proportional Destruction Particles
一款客户端模组,使方块破坏粒子仅生成在方块的碰撞箱/边界框内。
JEI Enchantment Info
为附魔添加 JEI 信息条目。将鼠标悬停在带有单个附魔的书上时按下 R,即可查看该附魔的信息。
Bound Totems
允许将不死图腾绑定到生物身上,并在任意维度中从物品栏任意位置或图腾架上使用。传送变种还会将其传送至任意维度中保存的位置。
评论
登录后评论和评分