预览

此模组会在实体受到伤害时,在其上方显示可自定义的伤害指示器。它是一个服务端模组,能够准确地将伤害事件传输给客户端,确保在多人游戏环境中的完全兼容性和一致性。
特性
- 服务端权威: 伤害在服务端检测并发送给附近的客户端,这意味着你看到的数字就是实际造成的伤害。
- 暴击区分: 暴击在视觉上与普通攻击区分开来,拥有独立的可配置颜色、大小乘数和动画强度。该模组使用原版逻辑来检测玩家造成的暴击。
- 流畅动画: 指示器具有流畅的生命周期,包括初始的“弹出”效果、带有缓动的轻微向上漂移以及干净的淡出动画。
游戏内配置
该模组支持通过 ModMenu(推荐)和 Cloth Config(必需)在游戏内进行完全配置。配置文件也可位于 config/damage_indicator.json。
你可以微调指示器的几乎所有方面:
-
显示设置:
- 启用或禁用整个模组。
- 设置指示器的最大渲染距离。
- 调整数字的基础缩放比例(大小)。
-
文本与颜色:
- 定义自定义伤害格式字符串(例如
%.1f 表示保留一位小数)。
- 切换显示小数或四舍五入为整数。
- 使用颜色选择器为普通伤害和暴击分别设置自定义颜色。
-
动画:
Lifetime:指示器在屏幕上停留的时间。
Pop Duration:初始弹跳/弹出动画的持续时间。
Fade Start Time:指示器开始淡出的时间。
Vertical Speed:指示器向上漂浮的速度。
Horizontal Spread:新指示器的随机水平偏移量。
-
暴击:
Critical Scale Multiplier:暴击相比普通攻击大多少倍。
Critical Pop Effect:专门针对暴击的弹出动画强度。
Normal Pop Effect:普通攻击的弹出动画强度。
Preview

This mod displays customizable damage indicators above entities when they take damage. It is a server-side mod that accurately transmits damage events to clients, ensuring full compatibility and consistency in multiplayer environments.
Features
- Server-Authoritative: Damage is detected on the server and sent to nearby clients, meaning the numbers you see are the real damage dealt.
- Critical Hit Distinction: Critical hits are visually distinct from normal hits, with their own configurable color, size multiplier, and animation intensity. The mod uses vanilla logic to detect critical hits from players.
- Smooth Animations: Indicators have a fluid life cycle, featuring an initial 'pop' effect, a gentle upward drift with easing, and a clean fade-out animation.
In-Game Configuration
The mod is fully configurable in-game using ModMenu (recommended) and Cloth Config (required). The configuration file is also available at config/damage_indicator.json.
You can fine-tune nearly every aspect of the indicators:
-
Display Settings:
- Enable or disable the mod entirely.
- Set the maximum render distance for indicators.
- Adjust the base scale (size) of the numbers.
-
Text & Color:
- Define a custom damage format string (e.g.,
%.1f for one decimal place).
- Toggle between showing decimals or rounding to whole numbers.
- Set custom colors for both normal and critical damage using a color picker.
-
Animation:
Lifetime: How long an indicator stays on screen.
Pop Duration: The length of the initial bounce/pop animation.
Fade Start Time: When the indicator should begin to fade out.
Vertical Speed: How fast the indicator floats upwards.
Horizontal Spread: The random horizontal offset for new indicators.
-
Critical Hits:
Critical Scale Multiplier: How much larger critical hits are compared to normal ones.
Critical Pop Effect: The intensity of the pop animation specifically for critical hits.
Normal Pop Effect: The intensity of the pop animation for normal hits.
评论 0
登录后参与评分
还没有评论,来抢沙发吧