高度可定制的伤害数字
此模组添加了伤害指示器,向玩家展示每次攻击对实体造成的伤害量。用户可以通过多种选项自由自定义指示器的样式和效果。
通过更改字体风格、大小、持续时间、动画、颜色和行为等,使指示器与你正在使用或创建的整合包风格相匹配。如果你愿意,甚至可以添加自己的字体!
本模组完全独立运行,不依赖除加载器本身之外的任何模组。
定制选项
- 添加自定义字体
- 预设配置(v1.2)
- 为不同伤害值定义颜色
- 自定义暴击符号
- 治疗数值显示(v1.2)
- 调整数字间距
- 渐变或闪烁颜色样式
- 震动与脉冲效果
- 弹出与淡出效果
- 缩放与持续时间
- 基于伤害值的尺寸变化
- 基于距离的尺寸与透明度(v1.2)
- 基于距离的透明度(v1.2)
自定义选项 - 完整列表
游戏内配置界面中所有可用内容的详细说明:
| 设置项 |
摘要 |
选项 |
|
预设选项
|
| 预览 |
显示应用动画和样式选择后字体在游戏内的外观 |
不适用 |
| 字体列表 |
允许切换用于伤害指示器的不同字体,默认显示四个预加载的字体 |
当前加载的所有字体 |
| 预设列表 (v1.2+) |
允许快速切换不同的预设 |
预设文件夹中当前的所有预设 |
| 重新加载字体 |
刷新模组使用的字体。当玩家将 PNG 文件添加到字体文件夹时,应使用此选项,以便模组生成必要的资源并能在游戏内显示 |
不适用 |
|
常规选项
|
| 显示选项 |
更改决定哪些指示器生成的逻辑 |
显示全部
显示近距离
禁用 |
| 指示器渲染范围 (v1.2+) |
如果上一个选项设置为“显示近距离”,则更改指示器生成的距离 |
距离(以方块为单位)
|
| 指示器透明度 (v1.2+) |
设置指示器的基础透明度 |
透明度(百分比)
|
| 治疗指示器 (v1.2+) |
切换治疗指示器 (仅当字体包含治疗指示器字形时可用) |
启用 / 禁用
|
| 大小系数 |
设置指示器的大小 |
大小(倍数)
|
| 暴击指示器 |
设置暴击指示器在什么条件下出现 (仅当字体包含暴击指示器字形时可用) |
从不
暴击时
超过最后阈值后
两个条件必须同时满足 |
| 持续时间 |
设置指示器的持续时长 |
持续时间(以刻为单位) |
| 暴击治疗 (v1.2+) |
切换治疗指示器是否可以在满足条件时也作为暴击指示器生成 (仅当字体包含治疗指示器字形时可用) |
启用 / 禁用 |
| 数字间距 |
更改数字之间的间隙大小 (在某些字体上更改此项非常重要) |
间距(以像素为单位) |
| 最大指示器数量 (v1.2+) |
设置同时渲染的指示器数量的硬性上限,如果达到上限,新指示器将根据年龄覆盖最旧的指示器 |
数量 |
| 对自己显示伤害 (v1.2+) |
切换对自己玩家造成的伤害是否生成指示器(启用此设置时,强烈建议避免使用全透明度) |
启用 / 禁用 |
| 对自己显示治疗 (v1.2+) |
切换对自己玩家的治疗是否生成指示器(启用此设置时,强烈建议避免使用全透明度) |
启用 / 禁用 |
|
颜色选项
|
| 颜色样式 |
更改伤害/治疗指示器的颜色行为方式 |
启用 / 禁用
渐变样式
闪烁样式 |
| 阈值选择器 |
添加或移除指示器颜色发生变化的阈值 |
左键点击 以添加
右键点击 以移除
|
| HSV 颜色选择器 |
为每个伤害阈值选择一种颜色 |
不适用 |
|
动画选项
|
| 震动动画 |
在指示器生成时快速原地晃动 |
启用 / 禁用
持续时间(刻)
强度(度) |
| 脉冲动画 |
在指示器生成时使其像“脉冲”一样缩放 |
启用 / 禁用
持续时间(刻)
最大尺寸(倍数) |
| 淡出 |
当持续时间结束时逐渐消失数字 |
启用 / 禁用
持续时间(刻) |
| 弹出 |
在生成时快速增大数字尺寸,而不是直接出现 |
启用 / 禁用
持续时间(刻) |
| 基于距离缩放 (v1.2+) |
随着距离变远而增加指示器尺寸以提高可读性(100% 强度意味着无论距离如何,指示器相对于屏幕的大小保持不变) |
缩放强度(百分比)
起始距离(方块) |
| 基于距离透明度 (v1.2+) |
随着指示器距离变远而插值调整不透明度,以避免视觉杂乱 |
完全不可见距离(方块)
起始距离(方块) |
| 基于伤害量缩放 |
根据造成的伤害量放大伤害指示器 |
启用 / 禁用 |
如果在位于 config 目录中的 saved_config.json 文件中进行修改,所有这些设置都可以无限制地调整
一些仅在 json 配置中可用的额外选项
| 设置项 |
摘要 |
选项 |
inGameConfigEnabled |
启用或禁用在 Minecraft 选项界面中显示的图标 |
true
false
|
debugMode |
允许在击中实体时查看实体名称和伤害数值 (不适用于正常游戏过程) |
true
false
|
enableBlacklist |
如果启用,黑名单列表中的实体将永远不会生成伤害指示器 |
true
false
|
blacklistedEntites |
列在此处的实体将永远不会生成伤害指示器。名称需要采用完整的 namespace:entityname 格式,调试模式可以帮助确定确切的实体名称。 |
根据需要添加任意数量的实体
|
还可以在游戏中调整某些滑块的灵活性(可选择的最小值和最大值)
游戏内设置
可以通过选项界面左上角的小图标访问游戏内设置菜单。如果需要,可以在 saved_config.json 中禁用此图标。
此菜单对应 v1.2 之前的版本
快速指南
要添加您自己的自定义字体,您需要一个宽高比为 10:1(如果字体包含特殊暴击符号则为 11:1)的 png 文件,并按照 1234567890 的顺序绘制字体字符。样式可以是任意的,只要每个字符不大于 32x32px 且不小于 8x8px 即可。符合格式的字体文件可以添加到 resources 文件夹中,重新加载资源或重启游戏后将创建必要的文件,并允许在游戏中选择该字体。
字体名称必须仅包含 a-z、0-9、._- 字符。
更详细的指南可以直接从模组设置菜单中获取,也可以参考下方内容。
如何添加您自己的字体 (v1.2 之前)
如何添加您自己的字体 (v1.2+)
Highly Customizable Damage Numbers
This mod adds damage indicators that show the player how much damage each hit does to an entity, the indicators can be customized however the user wants with a wide variety of options available to tweak and play around with.
Make the indicators match the style of the modpack you're using/creating by changing the font style, size, duration, animations, colors, behaviour, and much more. You can even add your own font if you'd like!
This mod is completely standalone and does not depend on any mods other than the modloader itself.
Customization options
- Add your own custom font
- Presets for easier use (v1.2)
- Define colors for different damage values
- Custom glyph for critical strikes
- Healing numbers (v1.2)
- Adjust gap between numbers
- Gradient or Flicker color styling
- Shake and pulse
- Pop-in and Fade-out
- Scale and duration
- Damage based size
- Distance based size and opacity (v1.2)
- Opacity based on distance (v1.2)
Customization options - Full list
Detailed explanation of everything available in the in-game config screen:
| Setting |
Summary |
Options |
|
Preset options
|
| Preview |
Displays how the font will look in-game, with animations and style choices applied |
N/A |
| Font list |
Allows to change between different fonts to use for the damage indicators, by default displays the four preloaded fonts |
Every font currently loaded |
| Preset list (v1.2+) |
Allows to change between different presets quickly |
Every preset currently in the presets folder |
| Reload fonts |
Refreshes the fonts used by the mod, should be used when the player adds a PNG to the fonts folder in order for the mod to generate the necessary resources and be able to show it in-game |
N/A |
|
General options
|
| Show option |
Changes the logic behind which indicators are chosen to spawn |
Show All
Show Close
Disable |
| Indicator render range (v1.2+) |
Changes the distance at which indicators should spawn if the previous option is set to "Show close" |
Distance (in blocks)
|
| Indicator opacity (v1.2+) |
Sets the baseline opacity for the indicators |
Opacity (as percentage)
|
| Healing indicators (v1.2+) |
Toggles healing indicators (Only available if the font has a healing indicator glyph) |
Enabled / Disabled
|
| Size factor |
Sets up how big should the indicators be |
Size (as a multiplier)
|
| Critical indicator |
Sets up under what conditions should the critical indicator appear (Only available if the font has a critical indicator glyph) |
Never
On critical hit
After last threshold
Both conditions must be true |
| Duration |
Sets up how much should the indicators last |
Duration (in ticks) |
| Critical heals (v1.2+) |
Toggles if healing indicators can be able to spawn as also a critical if conditions are met (Only available if the font has a healing indicator glyph) |
Enabled / Disabled |
| Gap between digits |
Changes the gap size between digits (Very important to change on certain fonts) |
Separation (in pixels) |
| Max indicators (v1.2+) |
Sets up a hard cap for how many indicators can be rendered at the same time, if the cap is reached new indicators will override the oldest ones based on age |
Amount |
| Show damage on self (v1.2+) |
Toggles if damage on your own player should create and indicator (Highly recommended to avoid using full opacity when this setting is enabled) |
Enabled / Disabled |
| Show healing on self (v1.2+) |
Toggles if healing on your own player should create and indicator (Highly recommended to avoid using full opacity when this setting is enabled) |
Enabled / Disabled |
|
Color options
|
| Color style |
Changes how the color of the damage/healing indicator behaves |
Enable / Disable
Gradient style
Flicker style |
| Threshold selector |
Add or remove thresholds at which indicator color should change |
Left click to add
Right click to remove
|
| HSV color selectors |
Pick a color for each damage threshold |
N/A |
|
Animation options
|
| Shake animation |
Quickly wiggles the indicator in-place when it spawns |
Enable / Disable
Duration (in ticks)
Intensity (in degrees)
|
| Pulse animation |
Grows and shrinks the indicator as if "pulsing" when it spawns |
Enable / Disable
Duration (in ticks)
Max size (as a multiplier) |
| Fadeout |
Fades the number away when reaching the end of the duration |
Enable / Disable
Duration (in ticks) |
| Pop-in |
Quickly grows the number in size when it spawns instead of just appreaing |
Enable / Disable
Duration (in ticks) |
| Scale based on distance (v1.2+) |
Increases indicator size the farther away they are to improve legibility (100% Strength means the indicator maintains it's size relative to the screen no matter the distance) |
Scale strength (as a percentage)
Start at (in blocks)
|
| Opacity based on distance (v1.2+) |
INterpolate opacity the farther away indicators are to avoid visual clutter |
Invisible at (in blocks)
Start at (in blocks)
|
| Scale based on damage |
Enlarges damage indicators based on how much damage was done |
Enable / Disable |
All of these can be tweaked with no limitation if modified in the saved_config.json file, located in the conifg directory
Some extra options available only in the json config
| Setting |
Summary |
Options |
inGameConfigEnabled |
Enables or disables the icon shown in the minecraft options screen |
true
false
|
debugMode |
Allows to see entitiy names and damage amount when hitting an entity (not intended for gameplay) |
true
false
|
enableBlacklist |
If enabled, the entites found in the blacklistedEntites list, will never spawn damage indicators |
true
false
|
blacklistedEntites |
Entities here will never spawn damage indicators, names require the full namespace:entityname format, debug mode can help determine exact entity names |
As many entities as needed
|
There is also the posibility of adjusting the flexibility of some sliders in-game (minimum and maximum amount selectable)
In-game settings
The in-game settings menu can be accessed through a small icon at the top left of the options screen, this icon can be disabled in the saved_config.json if desired.
This menu corresponds to pre v1.2
Quick guide
To add your own custom fonts you need an png file with a 10:1 aspect ratio (or 11:1 if the font includes a special glyph for critical strikes) with the font drawn in 1234567890 order, the style can be anything as long as each character is not bigger than 32x32px or smaller than 8x8px. The files that follow the format can be added into the resources folder, reloading the resources or restarting the game will create the neccesary files and allow the font to be selected in-game.
The font name must be in characters a-z, 0-9 ._-
A more detailed guide can be accessed directly from the mod settings menu or below.
How to add your own font (Pre v1.2)
How to add your own font (v1.2+)
评论 0
登录后参与评分
还没有评论,来抢沙发吧