跳到正文

Damage Info

作者:First_sight

Displays floating damage numbers when entities take damage, with fully customizable styles.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

High performance — damage records are batched per tick and rendered through the modern submission pipeline, with negligible impact on client performance.

Customizing the Damage Display

All damage number styles are defined in a JSON file:

  • Path: assets/damage_info/damage_info/damage_info.json (resource location: damage_info:damage_info/damage_info.json)
  • Reload with /reload after editing.

Example

{
  "default": {
    "damage_type": "default",
    "texture": "damage_info:textures/damage_font.png",
    "texture_width": 55,
    "texture_height": 7,
    "glyph_spacing": 0,
    "render_size": 0.2,
    "max_life": 40,
    "color": "ff9104",
    "critical_color": "ff5a28"
  },
  "entries": [
    {
      "damage_type": "lyra:servant",
      "texture": "damage_info:textures/damage_font.png",
      "texture_width": 55,
      "texture_height": 7,
      "glyph_spacing": 0,
      "render_size": 0.2,
      "max_life": 40,
      "color": "68dfff",
      "critical_color": "049fff"
    }
  ]
}

Fields

Field Description
damage_type Damage type id. default is the fallback style for all unlisted types.
texture Glyph texture. Layout: digits 0-9 in order, followed by a decimal point (index 10).
texture_width / texture_height Texture size in pixels. Glyph width is derived as texture_width / 11.
glyph_spacing Horizontal spacing between glyphs, in pixels.
render_size Render size in the world.
max_life Lifetime of a damage number, in ticks.
color / critical_color Normal / critical color, hex RGB (no #).

常见问题

Damage Info 支持哪些 Minecraft 版本?

Damage Info 支持 Minecraft Java 版 1.20.1–26.3,共 6 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Damage Info 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

First_sight 的其他作品

查看全部 →