介绍
SilverLib
SilverLib is a shared library for my mods. It holds the code and features that more than one of my mods needs, so each mod can stay focused on its own gameplay instead of re-implementing the same plumbing.
On its own, SilverLib changes nothing. It adds no items, blocks, drops, XP, or rewards. It only records information and exposes it through an API for other mods to read. Install it because another mod requires it.
What it currently does
Combat contribution tracking
SilverLib keeps a ledger of who contributed to a mob’s death and how much. Other mods use this to answer questions like “who deserves credit for this kill?” or “how should this XP be split?” fairly, instead of giving everything to whoever landed the last hit.
For every living entity it records, since the entity was last at full health:
- Total damage taken from every source, including the environment and other mobs.
- Per-player damage dealt, with overkill clamped so hitting a mob with 1 HP for 100 damage counts as 1.
- Indirect damage such as fire, poison, and wither ticks, attributed to the player who last hit the mob directly. A Fire Aspect kill is credited to the player, not to “the environment”.
- Damage mitigated by the mob’s armor, enchantments, and effects, so a heavily armored fight still reflects the effort put in.
- Effects applied to the mob by each player.
- Summons and projectiles are attributed to their owner, so a summoner’s wolf or a mage’s spell counts as the player’s contribution.
For every player it also records who healed or buffed them, so support players can be credited by mods that care about it.
Once a mob is healed back to full health the ledger is cleared. A fight that never stuck does not carry over into the next one.
Item Breaking
Items can now break without vanishing. This stops them from being used in any way and any enchantments on them from working until they are repaired. This does not happen by default and has to be activated by another mod (Artifactory or QualityAPI currently).
Soulbound
Items can now be soulbound and will appear on you after you die and respawn. This also needs to be activated before it will happen (Artifactory currently)
常见问题
SilverLib 支持哪些 Minecraft 版本?
SilverLib 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
SilverLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Silvertide 的其他作品
查看全部 →Project MMO: Farmer’s Delight Compat
农夫乐事的烹饪方块现在会为制作出的物品提供经验值。
Project MMO: Skill Books
添加技能书,可为所有 Project MMO 基础技能提供经验值或等级。还允许你创建自定义技能书,最多可提供 4 个选项。
Project MMO: Iron’s Spellbooks Compat
为 Project MMO 和 Iron's Spells and Spellbooks 添加兼容性。
Homebound
更平衡的回家传送方式。
评论
登录后评论和评分