描述
Apothic Attributes 是一个库类模组,提供了一系列属性和与属性相关的实用工具,使交互、调试和使用属性变得更加轻松。当前的属性列表 可在此查看。大多数功能面向开发者,但也包含一些面向玩家的功能:
属性图形用户界面 (GUI)
Apothic Attributes 提供了一个属性 GUI,可通过背包中的剑按钮访问。此 GUI 显示所有附加到你身上的属性。你可以筛选显示的属性,仅显示被修改过的属性;悬停在某个属性上时,会显示其描述和详细信息。
护甲计算
为了支持护甲穿透 (Armor Pierce)、护甲撕裂 (Armor Shred)、保护穿透 (Protection Pierce) 和保护撕裂 (Protection Shred) 的添加,Apothic Attributes 改变了护甲和保护的伤害减免计算方式。
在原版中,护甲会根据你的护甲韧性值和所受伤害值来减少伤害。而在 Apothic Attributes 中,只有护甲会减少受到的伤害,而护甲韧性则会降低敌方护甲撕裂和护甲穿透的效果。关于具体的伤害公式,请参阅此处。
由此导致的受到伤害变化可见于以下图表,其中“New Apoth”是 Apothic Attributes 当前使用的公式。该图表未考虑保护计算。保护的变更描述 在此处。
药水提示文本
另一个面向玩家的功能是对药水提示文本的更改。对于非简单属性修饰符的药水物品,将添加描述文本;当你在背包中悬停激活效果时,这些描述(以及属性修饰符)将会显示。
属性格式化
Apothic Attributes 允许属性自行格式化其提示文本。最显著的示例是基于百分比的属性 (Percent-Based Attributes),无论其修饰符类型如何,它们始终以百分比形式显示数值。原版的 速度 (Speed) 和 击退抗性 (Knockback Resistance) 属性即以基于百分比模式显示。
此功能的一部分是额外的提示文本信息。当启用高级提示文本(F3+H)时,将显示有关修饰符类型和基础值的额外信息。
高级提示文本信息参考
加法修饰符将显示类似 [+100] 的文本
乘基础修饰符将显示类似 [+20x] 的文本
乘总计修饰符将显示类似 [x10] 的文本
请注意,即使在全屏高级提示文本显示中,乘总计值的底层值也会偏移 +1。这是由于它们的施加方式所致(一个乘总计修饰符会导致最终值乘以 1+value)。
开发
Apothic Attributes 依赖 Placebo,并通过 Maven 提供:
maven {
// Shadows_of_Fire's Maven
url "https://maven.shadowsoffire.dev/releases"
}
dependencies {
implementation fg.deobf("dev.shadowsoffire:Placebo:${mcVersion}-${placeboVersion}")
implementation fg.deobf("dev.shadowsoffire:ApothicAttributes:${mcVersion}-${attributesLibVersion}")
}
Apothic Attributes 的 API 包 () 包含了你从模组进行接口交互所需的一切内容。
支持我
联系方式
Discord:
Description
Apothic Attributes is a library mod that provides a variety of attributes and attribute-related utilities, which makes interacting with, debugging, and using attributes much easier. The current list of Attributes is available here. Most of the features are developer-facing, but there are a few user-facing components:
The Attributes GUI
Apothic Attributes provides an Attributes GUI, accessible via the sword button in your inventory. This GUI shows all attributes that are attached to your player. You can filter the displayed attributes to only show modified attributes, and hovering an attribute will show a description and detailed information.
Armor Calculations
To support the addition of Armor Pierce, Armor Shred, Protection Pierce, and Protection Shred, Apothic Attributes changes the way that damage reduction calculations are done, for both Armor and Protection.
In vanilla, armor reduces damage based on your armor toughness value and the incoming damage value. With Apothic Attributes, only armor reduces incoming damage, and armor toughness reduces the effectiveness of enemy Armor Shred and Armor Pierce. For specifics on damage formulas, see here.
The changes in damage taken as a result of this can be seen in the following chart, where "New Apoth" is the formula currently used by Apothic Attributes. This chart does not take protection calculations into account. The changes to protection are described here.
Potion Tooltips
Another player-facing feature is the changes to potion tooltips. Descriptions will be added to potion items that are not simple attribute modifiers, and these descriptions (as well as the attribute modifiers) will be shown when hovering your active effects in the inventory.
Attribute Formatting
Apothic Attributes allows attributes to format their own tooltips. The most notable example of attributes with custom formatting are Percent-Based Attributes, which always display their values in percentage form, regardless of their modifier type. The vanilla attributes Speed and Knockback Resistance are displayed in Percent-Based mode.
Part of this feature is the additional tooltip information. When advanced tooltips (f3+h) are enabled, additional information about the modifier type and the underlying value will be shown.
Advanced Tooltip Info Reference
Addition modifiers will show text similar to [+100]
Multiply Base modifiers will show text similar to [+20x]
Multiply Total modifiers will show text similar to [x10]
Note that Multiply Total values have their underlying value offset by +1, even in the advanced tooltip display. This is due to how they are applied (a multiply total modifier causes the final value to be multiplied by 1+value).
Developing
Apothic Attributes depends on Placebo, and is available via maven:
maven {
// Shadows_of_Fire's Maven
url "https://maven.shadowsoffire.dev/releases"
}
dependencies {
implementation fg.deobf("dev.shadowsoffire:Placebo:${mcVersion}-${placeboVersion}")
implementation fg.deobf("dev.shadowsoffire:ApothicAttributes:${mcVersion}-${attributesLibVersion}")
}
The API package () of Apothic Attributes contains everything you should need to interface with from the mod.
Support Me
Contact
Discord:
下载 Apothic Attributes
下载 Apothic Attributes
下载 Apothic Attributes
下载 Apothic Attributes
下载 Apothic Attributes
下载 Apothic Attributes
下载 Apothic Attributes
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧