Mind Your Bruises
English | 简体中文
Mind Your Bruises 是一款适用于 Minecraft Fabric 1.21.11 的客户端模组,它会根据造成伤害的类型来重新着色原版实体的受伤覆盖层。
该模组将原版的红色作为默认回退颜色,然后为广泛的伤害类别使用不同的覆盖层行,例如火焰和爆炸、冰冻和溺水、植物、奥术/凋零/虚空类伤害、触电、饥饿以及末影珍珠伤害。
功能
- 在客户端重新着色原版实体的受伤覆盖层。
- 为广泛的伤害类别使用不同的颜色,例如火焰和爆炸、冰冻和溺水、植物、奥术/凋零/虚空类伤害、触电、饥饿以及末影珍珠伤害。
- 对于未匹配的伤害类型,保留原版红色作为回退颜色。
- 支持通过 JSON 配置文件自定义颜色和伤害类型覆盖。
- 通过
damageTypeOverrides 支持来自模组和数据包的自定义伤害类型。
配置
游戏启动后,Mind Your Bruises 会创建以下配置文件:
.minecraft/config/mind-your-bruises.json
在开发环境中,文件会创建于:
run/config/mind-your-bruises.json
配置文件直接位于 config/ 目录下,为一个 JSON 文件。
如果安装了 Mod Menu 和 YetAnotherConfigLib,你也可以从 Mod Menu 入口打开游戏内配置界面。游戏内界面支持主开关、固定颜色组的颜色选择器以及高级伤害类型覆盖设置。
示例配置:
{
"enabled": true,
"fireColor": "#ff7014",
"frostColor": "#4bd2ff",
"plantColor": "#50dc3c",
"fallbackColor": "#ff0000",
"arcaneColor": "#b950ff",
"shockColor": "#d8f6ff",
"starvationColor": "#9a7a32",
"enderColor": "#2bd6b3",
"damageTypeOverrides": {}
}
手动编辑后需要重启游戏才能生效。
配置字段说明:
enabled: 开启或关闭模组的重新着色受伤覆盖层效果。当设置为 false 时,覆盖层将回退到原版红色。
fireColor, frostColor, plantColor, fallbackColor, arcaneColor, shockColor, starvationColor, 和 enderColor: 采用 #rrggbb 格式的十六进制 RGB 颜色值。接受不带 # 的值,并在保存时自动规范化。
damageTypeOverrides: 在内置映射的基础上添加自定义覆盖规则。左侧为伤害类型 ID,右侧为颜色组。有效的颜色组包括 fire, frost, plant, fallback, arcane, shock, starvation, 和 ender。内置映射不会写入配置文件;若要覆盖内置规则,需在此处显式添加。
默认颜色组:
| 颜色组 |
默认颜色 |
内置伤害类型 |
fire |
#ff7014 |
火焰、岩浆、灼热地板、火球、爆炸、烟花 |
frost |
#4bd2ff |
冻结和溺水伤害 |
plant |
#50dc3c |
仙人掌和甜浆果丛伤害 |
arcane |
#b950ff |
魔法、间接魔法、龙息、音爆、荆棘、凋零、凋零骷髅、世界外伤害、边界外伤害、通用击杀 |
shock |
#d8f6ff |
闪电伤害 |
starvation |
#9a7a32 |
饥饿伤害 |
ender |
#2bd6b3 |
末影珍珠伤害 |
fallback |
#ff0000 |
未匹配的伤害类型、原版物理伤害、蜜蜂蜇伤、窒息、挤压 |
例如,此配置可使自定义的多刺植物伤害类型使用植物覆盖层颜色,并将原版溺水伤害强制回退到红色的默认覆盖层:
"damageTypeOverrides": {
"examplemod:thorny_vine": "plant",
"minecraft:drown": "fallback"
}
如果某个伤害类型未在 damageTypeOverrides 中列出,Mind Your Bruises 将首先尝试其内置的广泛匹配规则,最后回退到 fallbackColor。
依赖要求
- Minecraft 1.21.11
- Fabric Loader 0.19.3 或更高版本
- Java 21 或更高版本
Mod Menu 和 YetAnotherConfigLib 为可选依赖,但如果你希望在游戏中编辑配置,建议安装。没有它们,模组仍可正常运行,只需手动编辑 mind-your-bruises.json 并重启游戏即可进行配置。
兼容性
Mind Your Bruises 仅作用于客户端。它仅改变你客户端上实体受伤时的渲染方式,不会更改伤害规则、生命值、无敌帧或服务器行为。
构建
.\gradlew.bat build
构建生成的 jar 文件将位于 build/libs/ 目录下。
Mind Your Bruises
English | 简体中文
Mind Your Bruises is a client-side Minecraft Fabric mod for 1.21.11 that recolors the vanilla entity hurt overlay based on the damage type that caused it.
The mod keeps vanilla red as the fallback color, then uses different overlay rows for broad damage categories such as fire and explosion, frost and drowning, plant, arcane/wither/void-like damage, shock, starvation, and ender pearl damage.
Features
- Recolors the vanilla entity hurt overlay on the client.
- Uses different colors for broad damage categories such as fire and explosion, frost and drowning, plant, arcane/wither/void-like damage, shock, starvation, and ender pearl damage.
- Keeps vanilla red as the fallback color for unmatched damage types.
- Supports JSON configuration for colors and damage type overrides.
- Supports custom damage types from mods and datapacks through
damageTypeOverrides.
Configuration
Mind Your Bruises creates this config file after the game starts:
.minecraft/config/mind-your-bruises.json
In a development environment, the file is created under:
run/config/mind-your-bruises.json
The config uses one JSON file directly under config/.
If Mod Menu and YetAnotherConfigLib are installed, you can also open the in-game configuration screen from the Mod Menu entry. The in-game screen supports the main toggle, fixed color group color pickers, and advanced damage type overrides.
Example config:
{
"enabled": true,
"fireColor": "#ff7014",
"frostColor": "#4bd2ff",
"plantColor": "#50dc3c",
"fallbackColor": "#ff0000",
"arcaneColor": "#b950ff",
"shockColor": "#d8f6ff",
"starvationColor": "#9a7a32",
"enderColor": "#2bd6b3",
"damageTypeOverrides": {}
}
Manual edits require a game restart.
Configuration fields:
enabled: Turns the mod's recolored hurt overlay on or off. When set to false, the overlay falls back to vanilla red.
fireColor, frostColor, plantColor, fallbackColor, arcaneColor, shockColor, starvationColor, and enderColor: Hex RGB colors in #rrggbb format. Missing # is accepted and normalized on save.
damageTypeOverrides: Adds custom overrides on top of the built-in mappings. The left side is a damage type id and the right side is a color group. Valid color groups are fire, frost, plant, fallback, arcane, shock, starvation, and ender. Built-in mappings are not written to the config file; to override one, add it here explicitly.
Default color groups:
| Color group |
Default color |
Built-in damage types |
fire |
#ff7014 |
Fire, lava, hot floor, fireballs, explosions, fireworks |
frost |
#4bd2ff |
Freezing and drowning damage |
plant |
#50dc3c |
Cactus and sweet berry bush damage |
arcane |
#b950ff |
Magic, indirect magic, dragon breath, sonic boom, thorns, wither, wither skull, out of world, outside border, generic kill |
shock |
#d8f6ff |
Lightning damage |
starvation |
#9a7a32 |
Starvation damage |
ender |
#2bd6b3 |
Ender pearl damage |
fallback |
#ff0000 |
Unmatched damage types, vanilla physical damage, bee stings, suffocation, cramming |
For example, this makes a custom thorny plant damage type use the plant overlay color, and forces vanilla drowning damage back to the fallback red overlay:
"damageTypeOverrides": {
"examplemod:thorny_vine": "plant",
"minecraft:drown": "fallback"
}
If a damage type is not listed in damageTypeOverrides, Mind Your Bruises falls back to its built-in broad matching rules, then finally to fallbackColor.
Requirements
- Minecraft 1.21.11
- Fabric Loader 0.19.3 or newer
- Java 21 or newer
Mod Menu and YetAnotherConfigLib are optional, but recommended if you want to edit the config in game. Without them, the mod still works and can be configured by editing mind-your-bruises.json manually and restarting the game.
Compatibility
Mind Your Bruises is client-side only. It changes how hurt entities are rendered on your client and does not change damage rules, health, invulnerability frames, or server behavior.
Building
.\gradlew.bat build
The built jar will be generated under build/libs/.
评论 0
登录后参与评分
还没有评论,来抢沙发吧