Damage Indicator & Healthbar ⭕[1.21✅] icon

Damage Indicator & Healthbar ⭕[1.21✅] -----

Adds visual flying damage indicators for every damage type.




This update changes zero functionalities, only its updated for Spigot 1.21.3+, and with it Java 21.

This means that these and future versions of the plugin will no longer work on older versions of spigot.

Furthermore, due to lack of time on my behalf, I could not extensively test after making this update, so if there's any issues please do let me know on discord (StealingDaPenta) or spigot DM's.

Enjoy playing!
----------, Jan 16, 2025

Added a new config key
HEALTH_BAR_ALWAYS_VISIBLE defaulting to false.

If you set this to true in combination with
ENABLE_HOLOGRAM_HEALTH_BAR on false; then the custom names will be permanently visible as healthbars.

oh.. also updated to spigot 1.20.6 api
----------, Jun 21, 2024

Thanks to ngHunt for pointing out an issue resulting in console log spam.
Fixed the related problems in this version.
----------, Jun 10, 2024

All damage causes from https://minecraft.fandom.com/wiki/Damage now have a OneToOne map with a color for the splash numbers in the config file.

Thanks to Rebooted_Souls for the suggestion.
----------, May 2, 2024

  • Lots of code optimizations
  • Lots of unit tests added (technical security)
  • Reworked how the config works:
    • Color codes now need to be of the format &(r,g,b)
      example: &(123,0,21)
    • Decorations are now added with codes
      examples: &b &s &u &i
    • Reset all styles with &r

Your old config file will break with this new update.
Please update your config to follow these new conventions, or delete it so the plugin generates a new one.

You can also find the default config page on this spigot page > Documentation.


upload_2024-3-13_11-4-26.png
----------, Mar 13, 2024

A user reported having stuck damage indicator numbers, that wouldn't dissapear after restarting the server.

That is possible, as my fail safe on stuck armor stands (which is what all holograms in Minecraft are behind the scenes) only triggers when a chunk is (re)loaded.

Therefore I've now added a command /arearemove that allows you to remove ALL holograms (created by this plugin) in a 50 x 50 x 50 around you. This requires the permission damageindicator.arearemove.

With that, I've also moved the damageindicator.reload permission out of the config file. It was pointless being there and cluttered the configs.

upload_2024-3-4_20-43-28.png
----------, Mar 4, 2024

- Fixed an issue reported by a user, where sometimes the hp bar length was "one character longer" than normal. By default it was 16, and sometimes it was 17. (Not counting the prefix or suffix).

I've fixed that issue, and added the bar length to the config so you can now have it shorter or longer.
Again, not counting prefix or suffix.
----------, Dec 18, 2023

  • Added feature to replace custom names with holographic names
  • Enable this feature in the config. Note: this requires Holographic healthbars to be enabled.
  • You can now set the delay between Hologram updates (default 3 ticks).
  • Code optimization

upload_2023-12-14_13-7-28.png
1.png
----------, Dec 14, 2023

Version 1.2!
  • Added a toggleable mode to use holograms instead of name-replacing healthbars
  • Fixed the name reset of name-healthbars when the mob kills a player (for display in chat purposes)
  • Fixed the bars accuracy : your mobs will never have an "empty" hp bar again when they're still alive
  • Added fully customizable prefixes
  • Added fully customizable suffixes
  • Added /reload command with aliases like /config to reload the configuration without having to reboot your server
  • Several bug fixes
FIND A CONFIG WITH EXPLANATORY COMMENTS IN THE DOCUMENTATION TAB!
hp bar prefix suffix hologram.png
----------, Dec 7, 2023

" will be there an update where we can edit a bar style?"

  • Fixed HP Bar display bug that got introduced in v1.1.4: now accurately displays up to date health;
  • Added bar styles in the config: configurate your custom character, bold, underlined, strikethrough
Just adding ONE of the character is enough! The length is predefined!
Defaults to hearts (see images)
  • Added Name reset upon death: if an entity dies and at the moment of death the name was an hp bar: set the name back to the original name before dying.
Default config.png
example2.png
example.png
----------, Dec 4, 2023

TL;DR: Account for damage modified via scripts.
----------, Dec 1, 2023

If you noticed we jumped from V1.1.4 to 1.1.7, you noticed well.
I'll keep it short, here are the 3 most important changes:​

  • Added a toggle in the configuration file that enables/disables the different features of the plugin, currently: damage indicator (splash numbers) & health bars.
I added this, because people might be interested in only one part of the plugin, or because maybe a feature is not compatible with another plugin.

  • Compatibility with damage modifiers.
Code-wise this wasn't a big change, but functional it means a lot. The shown damage by the dmg indicator is now calculated AFTER all things like armor are taken into account, instead of before.
  • Compatibility with Custom names.
The health bar feature now takes the name of the entity into account before replacing it with a healthbar. After the given duration, the original name is placed back on the entity.

Furthermore: general code optimizations.

If you have requests / bugs / ..., please just reach out to me over Spigot DM's or discord :)

To see the changes in code, find the source code here: https://github.com/TomDesch/damageIndicator
----------, Nov 28, 2023

What's the first thing you think of when you read "Damage indication"?
That's right: health bars!

Entities will now have a healthbar displayed as their custom name, devided in two sections: (alive/maxHP)
The colors of these sections can be modified in the config, but are by default:
  • Percentage alive (0, 255, 0)
  • Percentage unalived (100, 100, 100)
The duration to which the healthbar is displayed, is customizable in the config as well (in seconds).
Example: '7'
However, note that this value needs to be between 1 and 10 seconds.

ps: Moved the open-source code to a new repository on github.
----------, Nov 27, 2023

I added a configuration file (config.yml) in which you can choose your colors based on the RGB system, for each major damagetype.
By default, its configured as follows:
  • MAGIC (magic) (95, 10, 95)
  • MELEE (attack, sweep, thorns) (100, 100, 100)
  • POISON (poison) (0, 100, 20)
  • FIRE (fire, fire tick, lava, hot floor) (200, 90, 25)
  • RANGED (projectile) (130, 70, 0)
  • OTHER (everything else) (130, 130, 30)
You can change the color by updating the numbers between the bracket up to (255, 255, 255)
----------, Nov 20, 2023

Resource Information
Author:
----------
Total Downloads: 2,543
First Release: Nov 18, 2023
Last Update: Jan 16, 2025
Category: ---------------
All-Time Rating:
6 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings