Fancy DamageIndicator

插件显示生存体验的伤害。支持彩虹和MiniMessage!

资源图片
# DamageIndicator

Build Status Latest Release

DamageIndicator 是一个 Paper 插件,用于显示对实体造成的伤害。它提供了战斗反馈的可视化表示,从而增强了你的生存服务器上的玩家体验。 ## 特性 - **悬浮伤害文本**: 清晰地看到你对生物和其他玩家造成的伤害。 - **可配置**: 自定义伤害指示器的各种方面,包括: - 启用/禁用插件。 - 忽略特定实体类型。 - 忽略特定世界。 - **可配置指示器生存时间**: 设置伤害指示器保持可见的时间。 - **格式**: 控制显示伤害文本的颜色和样式。 - **轻量级**: 设计高效,不会对服务器性能产生重大影响。 ## 伤害 ![](https://github.com/tantaihaha4487/assets/blob/main/DamageIndicator/dmg.gif?raw=true) ## 暴击伤害 ![](https://github.com/tantaihaha4487/assets/blob/main/DamageIndicator/crit.gif?raw=true) ## 治疗 ![](https://github.com/tantaihaha4487/assets/blob/main/DamageIndicator/heal.gif?raw=true) ## 安装 1. 从 [Modrinth](https://modrinth.com/plugin/fancy-damageindicator#download) 下载插件的最新版本。 2. 将 `DamageIndicator-2.x.x.jar` 文件放入你的服务器的 `plugins/` 文件夹中。 3. 重新启动或重新加载你的服务器。 4. (可选) 配置位于 `plugins/DamageIndicator/` 的 `config.yml` 文件,以满足你的服务器需求。 ## 配置 插件会在首次运行时在 `plugins/DamageIndicator/` 目录中生成一个 `config.yml` 文件。以下是一些关键的配置选项: ```yaml # config.yml 示例 # # 启用或禁用插件。 # enable: true indicator: # 用于在指示器中显示的格式 # # 你可以在下方生成你自己的格式: # https://www.birdflop.com/resources/rgb/ # 选择 Color 格式以 MiniMessage # health-indicator-format: "+{healamount} [{currenthealth}/{maxhealth}❤]" damage-indicator-format: "-{damage} [{currenthealth}/{maxhealth}❤]" critical-damage-indicator-format: " -{damage} [{currenthealth}/{maxhealth}❤]" # 指示器在消失之前的生存时间(单位:tick) lifetime: 12 # 要忽略的实体和世界的列表 blacklist: entities: - "item_frame" - "item" worlds: - "world_example" ``` ## 命令 | 命令 | 描述 | 权限 (推测) | |--------------------|---------------------------------------------|-----------------------| | `/damageindicator` | 插件信息/重新加载的基本命令。 | `damageindicator.use` | ## 支持 & 贡献 如果你遇到任何问题、有任何建议或想做贡献,请访问 [GitHub 仓库](https://github.com/tantaihaha4487/DamageIndicator/) 或在那里打开一个 issue。 **作者**: TantaiHaha, Thanachot **版本**: 2.0.2 **版本**: 1.21.x