杂项伤害数字
当实体受到伤害时,会从其身上弹出一个数字,显示其损失的生命值以及造成伤害的来源。治疗也会以数字形式显示。这些数字会弹跳一两次后逐渐消失。

工作原理
- 数字表示扣除护甲后实体实际损失的生命值。
- 玩家攻击时,会显示其手持武器的名称;实体攻击时,会显示该实体的名称;投射物攻击时,会显示投射物自身的名称,例如“Arrow”(箭)。
- 其他类型的伤害会显示其来源,例如 Fire(火焰)、Fall(摔落)、Drowning(溺水)、Explosion(爆炸)、Magic(魔法)、Freezing(冻结)或 Lightning(闪电)。
- 每种伤害类型都有专属颜色。近战伤害为红色,火焰为橙色,魔法为紫色,冻结为浅蓝色,闪电为黄色,溺水为蓝色,治疗为绿色。
- 来自其他模组且不属于上述分类的伤害,会获得固定且独特的颜色与名称。
- 玩家、动物和怪物都会显示数字。你自己的数字仅在第三人称视角下显示。
- 整数保持为整数,小数部分保留一位小数,例如 2.5。
- 只需在你的客户端安装即可,因此兼容任何服务器。
配置
这些设置位于 assorteddamagenumbers-client 配置文件中。它们仅影响你本地的游戏,因此每位玩家都可以自行设置。
damageNumbers.showSource:在数字旁显示伤害来源。默认开启。
damageNumbers.showHealing:同时显示治疗数值。默认开启。
damageNumbers.range:数字仍然可见的最大距离。默认为 24 格。
damageNumbers.lifetime:数字在屏幕上停留的刻数。默认为 40 刻,即 2 秒。
依赖
如果你希望将所有模组整合到一个下载中,Assorted Util 中也包含了 Damage Numbers 以及其他五个 Util 模组。
更多信息
完整指南请参见 assortedmods.com。游戏内也可通过 Assorted Lib 提供的《操作手册》查阅。
发现 Bug?请在 GitHub 上报告。
Assorted Damage Numbers
When something gets hurt a number pops off it showing how much health it lost, along with what did it. Healing shows up too. The numbers bounce once or twice and fade away.

How it works
- The number is how much health the creature actually lost, after armor.
- A hit from a player names the weapon they were holding. A hit from a creature names the creature, and a projectile names itself, like Arrow.
- Other damage says where it came from, like Fire, Fall, Drowning, Explosion, Magic, Freezing or Lightning.
- Each kind has its own color. Hits are red, fire is orange, magic is purple, freezing is light blue, lightning is yellow, drowning is blue and healing is green.
- Damage from other mods that doesn't fit one of those gets a color and name of its own, the same every time.
- Players, animals and monsters all get numbers. Your own numbers only show in third person.
- Whole numbers stay whole and anything in between shows one decimal, like 2.5.
- It only needs to be installed in your own game, so it works on any server.
Config
These are in the assorteddamagenumbers-client config file. They only change your own game, so everyone can set their own.
damageNumbers.showSource shows what did the damage beside the number. On by default.
damageNumbers.showHealing shows healing as well as damage. On by default.
damageNumbers.range is how far away numbers still show. 24 blocks by default.
damageNumbers.lifetime is how long a number stays in ticks. 40 by default, which is 2 seconds.
Requirements
Damage Numbers also comes in Assorted Util with the other five Util mods, if you'd rather have them all in one download.
More
The full guide is at assortedmods.com. It's also in the game, in the Instruction Manual from Assorted Lib.
Found a bug? Report it on GitHub.
评论 0
登录后参与评分
还没有评论,来抢沙发吧