? 核心功能
精确的小数生命值追踪:
原版 Minecraft 将记分板限制为整数,这意味着 0.5 生命值的玩家与 1.0 生命值的玩家在显示上完全相同。HealthIndicator 突破了这一限制。如果玩家的生命值低于 1 点满血,插件会动态显示其确切的小数生命值(例如 0.5 ❤️ 或 0.7 ❤️),确保玩家能准确判断对手是否会被一击必杀。
高级吸收之心与金苹果显示:
当玩家食用金苹果或获得吸收效果时,显示界面会动态分割。玩家看到的不再是单一混合的数字,而是清晰分离的基础生命值与金色生命值。
无吸收状态示例:20 ❤️
有吸收状态示例:20 ❤️ | 4 ?
通过 MiniMessage 完全自定义:
该插件配备了一个强大的 config.yml 配置文件,使用现代的 MiniMessage 格式。服务器管理员可以使用标准标签(如 <red>、<yellow>、<bold>)或精确的十六进制颜色代码(如 <#FF5555>)来自定义颜色,并且可以完全更改符号和布局,而无需触碰 Java 代码。
全维度世界支持:
插件自动跟踪并更新所有在线玩家在所有服务器维度及自定义世界中的生命值,无缝衔接。
⚙️ 技术规格
支持版本:Minecraft 1.21 及 1.21.1+
所需 Java 版本:Java 21(Minecraft 1.21 服务器严格必需)。
所需服务器软件:PaperMC、Purpur 或任何现代 Paper 分支。
(注意:本插件依赖现代 Paper API 的 NumberFormat 来覆盖原版的整数限制。它与标准 Spigot 不兼容。)
依赖项:无。该插件是完全独立的,不需要 PlaceholderAPI、ProtocolLib 或其他任何后台插件即可运行。
性能:高度优化。它利用轻量级的重复任务,每 10 刻(0.5 秒)更新一次玩家记分板,提供即时反馈,同时不会给服务器资源带来压力或导致 TPS 下降。
?️ 配置 (config.yml)
该插件生成一个简单易懂的配置文件,允许管理员精确规定在普通状态和吸收状态下生命值字符串的显示方式。
YAML
----------------------------------------
HealthIndicator Configuration
----------------------------------------
你可以使用标准的 MiniMessage 标签进行着色:<red>, <white>, <yellow>, <bold>, <#HEXCODE>
占位符:
%health% - 玩家的基础生命值数值
%absorption% - 玩家的金色生命值(金苹果/吸收之心)数值
玩家处于正常生命值状态(无金苹果)时的格式
normal-format: "<white>%health%</white> <red>❤</red>"
玩家拥有金苹果心时的格式
absorption-format: "<white>%health%</white> <gray>|</gray> <yellow>%absorption% ❤</yellow>"
? Core Features
Precise Decimal Health Tracking:
Vanilla Minecraft limits scoreboards to whole numbers, which means a player at 0.5 health looks identical to a player at 1.0 health. HealthIndicator bypasses this limitation. If a player drops below 1 full health point, the plugin dynamically displays their exact decimal health (e.g., 0.5 ❤️ or 0.7 ❤️), ensuring players know exactly when their opponent is one-shot.
Advanced Absorption & Golden Apple Display:
When a player consumes a Golden Apple or gains absorption, the display splits dynamically. Instead of a single blended number, players will see their base health and their golden health separated beautifully.
Example without Absorption: 20 ❤️
Example with Absorption: 20 ❤️ | 4 ?
Fully Customizable via MiniMessage:
The plugin features a robust config.yml that uses modern MiniMessage formatting. Server owners can customize colors using standard tags (like <red>, <yellow>, <bold>) or exact Hex codes (like <#FF5555>), and can completely change the symbols and layout without needing to touch the Java code.
Universal World Support:
The plugin automatically tracks and updates the health of every online player across all server dimensions and custom worlds seamlessly.
⚙️ Technical Specifications
Supported Versions: Minecraft 1.21 and 1.21.1+
Required Java Version: Java 21 (Strictly required for 1.21 Minecraft servers).
Required Server Software: PaperMC, Purpur, or any modern Paper-fork.
(Note: This plugin relies on the modern Paper API NumberFormat to override the vanilla integer limitations. It is not compatible with standard Spigot).
Dependencies: None. The plugin is 100% standalone and does not require PlaceholderAPI, ProtocolLib, or any other background plugins to function.
Performance: Highly optimized. It utilizes a lightweight repeating task that updates player scoreboards every 10 ticks (0.5 seconds), providing immediate feedback without straining server resources or causing TPS drops.
?️ Configuration (config.yml)
The plugin generates a simple, easy-to-read configuration file that allows admins to dictate exactly how the health string looks in both standard and absorption states.
YAML
----------------------------------------
HealthIndicator Configuration
----------------------------------------
You can use standard MiniMessage tags for colors: <red>, <white>, <yellow>, <bold>, <#HEXCODE>
Placeholders:
%health% - The player's base health number
%absorption% - The player's golden apple health number
Format when the player has normal health (no golden apples)
normal-format: "<white>%health%</white> <red>❤</red>"
Format when the player has golden apple hearts
absorption-format: "<white>%health%</white> <gray>|</gray> <yellow>%absorption% ❤</yellow>"
评论 0
登录后参与评分
还没有评论,来抢沙发吧