Compatibility
Minecraft: Java Edition
Creators
Details
This Resource Pack displays the damage values of swords/axes in the GUI when holding the Shift key
The GUI Damage Display achieved by enumerating enchantment and attributes. The displayed values are colored differently based on the damage amount.
The displayed values is primarily determined by the level of the Sharpness enchantment and the weapon type.
The number at the top-right corner of the weapon represents non-critical damage, while the number at the bottom-left corner accounts for Critical hits bonuses.
Damage display value calculation formula:
- The top-right number is calculated as:
Player base attack value 1 + Weapon attack damage + Sharpness enchantment bonus; - The bottom-left number incorporates Critical hit calculations:
(Player base attack value 1 + Weapon attack damage) × 1.5 (Critical) + Sharpness enchantment bonus.
Special Cases:
- If the Sharpness level exceeds the Vanilla maximum, a "+" will appear at the top-right corner;
- If the weapon's "attack Damage" attribute has a "base_attack_damage" modifier exceeding Vanilla values, a "☆" will display at the top-right corner.
Note: The displayed values are for reference only. Actual in-game damage may vary due to factors such as:
- Player status Effects (Strength/Weakness)
- Attack cooldown completion
- Server-side combat mechanics modifications
- Changes from other mods/plugins to the damage system
Works in Vanilla 1.21.5+
本资源包可实现按住Shift键时在GUI界面显示剑/斧类武器的伤害数值
GUI Damage Display采用物品模型映射枚举特定魔咒和属性来实现。显示数值根据伤害大小分配不同的颜色。
数值主要由锋利魔咒等级及武器种类决定。
武器右上角的数字为不暴击的伤害,武器左下角的数字考虑了暴击加成。
伤害显示值计算方式:
- 位于武器右上角的数字计算方式为:
玩家攻击力基值1 + 武器攻击力 + 锋利魔咒攻击力; - 武器左下角的数字计算加入了暴击的影响:
(玩家攻击力基值1 + 武器攻击力)×1.5(暴击)+ 锋利魔咒攻击力.
特殊情况:
如果锋利等级超出原版武器上限,武器右上角将显示“+”;
如果修改了武器攻击伤害(Attack Damage)属性的“base_attack_damage”修饰符大于了原版,武器右上角将显示“☆”。
本资源包显示的伤害数值仅供参考,实际游戏伤害可能受各种因素影响,例如:
玩家状态效果(力量/虚弱等)
攻击冷却完全度
服务器端的战斗机制修改
其他模组/插件对伤害系统的改动
本资源包适用于原版1.21.5+