Jump to content

HoloMobHealth | Display Mob Health | Damage Indicator | Client-side | JavaScript Formatting


Mozart

Recommended Posts

https://www.spigotmc.org/resources/holomobhealth-display-mob-health-damage-indicator-client-side-javascript-formatting.75975/

By the way! Check out my server at play.sunknights.fun!

[IMG] Consider donating!
It helps me keep on supporting my plugins while keeping them free! DM me and I'll put your name here! Click me!

Thank you for your donation to support me on my journey on coding plugins! 
(If you want your name shown as well, send me a message!)
$20 - Zzheyd

[IMG]
Join the discord server here!

Thanks for the absolutely beautiful icons!
[IMG](by Henry)
[IMG] (by Teo)

Note:
Multi-Line IS NOT SUPPORTED on 1.8 - 1.9.4
Damage Indicator IS NOT SUPPORTED on 1.8 - 1.10


Information of the Placeholders you can use in mob names are in the Default Config Section below.


About
It's frustrating when you can't see how much health your opponent has left. Well, now you can! With HoloMobHealth, you can customize how you would like to display mob health above its head!

Videos

Want video demonstrations? Here are some videos made by some awesome people!
Video by ServerMiner in English:


Video by SirBukkit in German:



Features
First of all, it won't affect your death messages or mob names!
The health display is only CLIENT-SIDE!
So that death message filled with hearts won't happen!

1. Display health above all mob's head
- Well obviously, this is the point of the plugin, here is a few pictures!
[IMG]

2. Customize your own mob health display design
- The plugin provides multiple different placeholders for you to customize your display, for example you can choose round health to nearest integer, or 2 decimal places, or display the mob's name!
[IMG]

3. Support hearts display 
- If you like to use hearts instead of text, you can! Just put the corresponding placeholder {ScaledSymbols} in the config!
[IMG]

4. Damage Indicators![1.11 or above]
- Show health gain and loses with tiny numbers around the mob!
[IMG]

5. Completely client-side! No mobs are changed

- The health display is only visual, meaning that the mob's actual name isn't changed on the server.
- If you want to not let the health display override named mobs, or want health display to display alongside the mob's name, you can do that all in the config!

6. Custom placeholder scripts
- Yes! You can create your own placeholders through the use of JavaScript
- More info on that below

7. Languages and Mob types
- All of course! You will be able to change all the text that is sent to players to your liking to suit your server.
- Entity type names will be translated to the language of each user's client language!

- Villager professions and Tropical Fish types are also identified by the plugin!

8. Blacklist any mobs
- Blacklist any mob type from being affected by the health display
- Blacklist any mob with a certain name
- Blacklist any mob with a name that contains a certain text

9. Dynamic health display
- You can toggle the plugin to only display mob health when it is attacked or taking damage in the config!

10. Supports RGB and Font[1.16 or above]
You can use RGB code in any part of the config that support colors!

Code (Text):
&x&F&F&F&F&F&F

or

Code (Text):
[color=#ffffff]

If you have a custom resource pack that has different fonts, you can even use them like color codes!

Code (Text):
[font=myawesomefont]

10. Compatibility with other plugins
- You can disable health display for mobs from MyPet, Citizens, MythicMobs (Partly) and Shopkeeper in the config!
- PlaceholderAPI placeholders can be used as well!
- If you have other plugins you want to be supported, tell me in the discussions!

Supported Plugins
- MythicMobs 
(Only Partly)
- Citizens (Except Player Mob Types)
- Shopkeepers
- MyPet
- PlaceholderAPI


Dependencies
- ProtocolLib (Please install the latest version that is compatible for your server version)

Installation
1. Put HoloMobHealth.jar into the plugins folder along with the required dependencies
2. Start the server
3. Edit the config (if you need to)
4. Restart the server (if you changed something in the config in step 3)


Development Builds
[IMG]

Jenkins


Placeholder Scripts
In HoloMobHealth, you can define your own custom placeholders through the use of JavaScripts, here is an example:
Take me to the example

Commands
/holomobhealth reload - Reloads the plugin (or /hmh reload)
/holomobhealth update - Check for updates (or /hmh update)
/holomobhealth toggle - Toggle mob health display for yourself (or /hmh toggle)


Permissions

Code (YAML):
permissions:
  holomobhealth.reload:
    description: Allows you to reload the plugin
    default: op
  holomobhealth.use:
    description: Allows you to see the health display
    default: true
  holomobhealth.toggle:
    description: Allows you to toggle health display for yourself
    default: true
  holomobhealth.toggle.others:
    description: Allows you to toggle health display for others
    default: op
  holomobhealth.update:
    description: Allows you to recieve update notifications
    default: op



Default Config
Latest Config with Descriptions

Limitations
- AlwaysShow doesn't work in 1.8 due to a Minecraft bug
- Multi-Line IS NOT SUPPORTED on 1.8 - 1.9.4
- Mobs disguised as the player mob type will not have its health shown as player names and mob names are handled differently




[IMG]

Report problems in the discussion, not in a review. Thanks :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...