
ShowDamage
嘿,这个插件是做什么的?
这是一个简单的插件,允许你通过弹出窗口查看对实体造成的伤害。
ShowDamage 拥有高度可配置的配置文件,因此任何颜色、图标或可见性设置都可以更改。
效果如下:
对实体造成非暴击伤害:

暴击伤害有其独特的颜色和指示器:

对实体造成的伤害会与最近的横扫攻击伤害合并计算:

爆炸伤害也会被计入:

如果伤害是由投射物造成的,插件还会在聊天栏或快捷栏中显示消息。
仅当目标与攻击者之间的距离大于配置文件中指定的值时,才会显示此消息:

所有颜色也可以进行配置。
命令
-
/showdamage toggle-popup: 切换你的弹出窗口可见性。
需要权限:"showdamage.command.disablepopup"
-
/showdamage reload-config: 重新加载配置文件。
需要权限:"showdamage.command.reloadconfig"
配置项
messages:
- hotbar-messages: (true/false) 是否应在快捷栏显示投射物伤害信息?
- chat-messages: (true/false) 是否在聊天栏显示投射物伤害消息?
display-settings:
- popup-background-transparency: (0-255) 设置弹出窗口背景颜色的 alpha 值,即透明度。0 = 完全透明,255 = 黑色。
- popup-lifetime-ticks: 不言自明。定义弹出窗口应显示多少个刻(20 刻 = 1 秒)。
- popup-visibility-distance: 实体到玩家的半径距离,超过该距离后弹出窗口将不可见。
- popup-additional-height: 额外的弹出窗口位置高度。默认情况下,弹出窗口的生成位置位于实体上方 0.15 处。
- count-multiple-entities: 插件是否应将直接攻击和剑的横扫攻击合并为单次命中范围?
- multiple-entities-count-distance: 插件可以将剑挥击攻击关联起来的范围。
- projectile-message-distance: 从弓、雪球、三叉戟或其他投射物击中开始,在聊天栏和快捷栏中显示命中消息的距离。
- allow-toggle-command: 是否允许玩家本地禁用弹出窗口?
- show-to-damage-source-only: 插件是否仅向攻击者显示弹出窗口?
- show-damage-as-hearts: 启用心形模式。以满血(大心)和半血(小心)的形式显示伤害。
- show-through-walls: 伤害是否应穿透方块可见?
- filter-non-living-entities: 插件是否还应显示对末影水晶、盔甲架*等非生物实体造成的伤害?
插件使用 HEX 颜色渲染其所有渐变。如果你想选择更好的颜色,请使用 RGB Birdflop:
colors:
- crit-damage:
- first: 渐变的第一个颜色,存储为 HEX 格式,不带 '#'(例如 BE2510)
- second: 渐变的第二个颜色,存储为 HEX 格式,不带 '#'(例如 FD7348)
- mitigated-damage: 基本上是被格挡的伤害,当你被击中时会显示在快捷栏上方。
- first: 渐变的第一个颜色。
- second: 渐变的第二个颜色。
- icon: 将显示在伤害左侧的图标。可以为空。
- message:
- first: 消息文本的颜色。默认为绿色 (`25af46`)
- second: 'i' 图标的颜色。
- elements: `Entity` 名称和 `DAMAGE HP` 文本的颜色。
prefixes:
- show-attack-prefixes: (true/false) 是否应显示前缀(暴击符号、横扫、爆炸、战锤、投射物、三叉戟等)。
- crit-prefix: 如果伤害是暴击,应用于伤害的符号或字符串。
- sweep, explosion, mace, projectile, trident, spear: 这些应该不言自明。
版本发布
我会尽力使这个插件尽可能完善,因此它可以频繁更新。
其他
如有任何问题、建议等,请直接通过 Discord 联系我:@turbotaliz
或通过 GitHub:

ShowDamage
Hey, what does this one do?
This is a simple plugin, that allows you to see the damage done to an entity via pop-up.
ShowDamage have a highly configurable config, so any colors, icons or visibility settings can be changed.
And this is how it looks:
Non-critical damage dealt to entity:

Critical damage have it's own colors, and an indicator:

Damage dealt to entity combines with a nearest sweep attacks damage:

Explosion damage counts as well:

The plugin also displays messages in the chat or on the hotbar if damage was dealt using a projectile.
It will only appear if the distance between the target and the attacker is greater than the value specified in the configuration:

And all colors can be configurated as well.
Commands
-
/showdamage toggle-popup: Toggles a pop-up visibility for you.
Requires permission: "showdamage.command.disablepopup"
-
/showdamage reload-config: Reloads the configuration.
Requires permission: "showdamage.command.reloadconfig"
Config entries
messages:
- hotbar-messages: (true/false) Should hotbar projetile damage be visible?
- chat-messages: (true/false) Should chat projectile damage messages be visible?
display-settings:
- popup-background-transparency: (0-255) Sets the alpha value of the popup background color, or how transparent it should be. 0 = fully transparent, 255 = black.
- popup-lifetime-ticks: Pretty self-explanatory. Defines how many ticks (20 ticks - 1 second) a popup should be visible.
- popup-visibility-distance: The radius from the entity to the player at which it becomes invisible.
- popup-additional-height: Additional pop-up position height. By default, pop-up spawn location is 0.15 above entity.
- count-multiple-entities: Should the plugin combine direct attacks and sweeping sword attacks in a single hit span?
- multiple-entities-count-distance: The range within which the plugin can link attacks with a sword swing.
- projectile-message-distance: The distance at which messages about hits from a bow, snowball, trident, or other projectile begin to appear in the chat and hotbar.
- allow-toggle-command: Should the plugin allow players to disable pop-ups locally?
- show-to-damage-source-only: Should the plugin display pop-ups only to the attacker?
- show-damage-as-hearts: Enables hearts mode. Displays damage as full HP (big heart) and half HP (small heart).
- show-through-walls: Should the damage be visible thru the blocks?
- filter-non-living-entities: Should the plugin also show damage dealt to End Crystals, Armor Stands* etc.?
Plugin uses HEX colors to render all it's gradients. If you want to pick something better, use RGB Birdflop:
colors:
- crit-damage:
- first: First color of the gradient, stored in HEX, without a '#' (like BE2510)
- second: Second color of the gradient, stored in HEX, without a '#' (like FD7348)
- mitigated-damage: Basically a blocked damage that shows above your hotbar when you are hit.
- first: First color of the gradient.
- second: Second color of the gradient.
- icon: An icon that will be displayed left to the damage. Can be empty.
- message:
- first: Color of the message text. Default one is green (`25af46`)
- second: Color of the 'i' sign.
- elements: Color of `Entity` name and `DAMAGE HP` text.
prefixes:
- show-attack-prefixes: (true/false) Should the prefixes (crit sign, sweep, explosion, mace, projectile, trident etc.) be visible at all.
- crit-prefix: A symbol or a string that applies to the damage if it was critical.
- sweep, explosion, mace, projectile, trident, spear: should be pretty self-explanatory.
Releases
I'll try to make this plugin as polished as i even can, so this plugin can be updated really often.
Other
For any questions, suggestions etc. you can contact me directly, using Discord: @turbotaliz
Or GitHub: .
评论 0
登录后参与评分
还没有评论,来抢沙发吧