Indicate
一款信息化工具模组,为 Minecraft 添加伤害指示器。当任何生物受到伤害时,指示器便会弹出显示。

技术文档
无需依赖即可显示通用的弹出文本(如 MISS、CRIT、DODGE),并出于兼容性考虑添加伤害指示器支持。
target.getPersistentData().putBoolean("indicate:miss", true);
target.getPersistentData().putBoolean("indicate:dodge", true);
target.getPersistentData().putBoolean("indicate:crit", true);
伤害指示器的数据文件应存储于 resources/assets/<mod_id>/damage_indicators 目录下。
{
// 必填:单一伤害类型、标签或两者的数组:
// "damage_type": "modid:damage_type",
// "damage_type": "#modid:damage_type_tag",
"damage_type": [
"#minecraft:is_fall",
"minecraft:fly_into_wall",
"minecraft:stalagmite"
],
// 可选的十六进制颜色(# 符号可选),默认值:"b31111" / "000000"
"color_hex": "d6c5a3",
"outline_color_hex": "241e14",
// 伤害数值前可选的前缀字形字符(例如:☠ 12.5)
"glyph": "\uE278",
// 字形可选的字体位置(默认:minecraft:default)
"font": "modid:font_location",
// 可选优先级(默认:0)。数值越高将覆盖通用预设(例如投射物使用 -10)
"priority": -10
}
API
IndicateAPI.miss(LivingEntity target);
IndicateAPI.dodge(LivingEntity target);
IndicateAPI.popup(LivingEntity target, Component label);
IndicateAPI.popup(LivingEntity target, Component label, int rgb);
IndicateAPI.popup(LivingEntity target, Component label, int rgb, int outlineRgb);
IndicateAPI.popup(LivingEntity target, Component label, Col color);
你是这个资源的作者?登录后可认领此资源。
相似资源
鞘翅纹饰Elytra Trims
KikuGie
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
装饰装备
477
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
341
Xaero的小地图
thexaero
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
冒险交通
241
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
239
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
239
评论 0
登录后参与评分
还没有评论,来抢沙发吧