#Displaying Health Above Pet

1 messages · Page 1 of 1 (latest)

balmy elbow
#

How to add health bar in pets?
so i can know the exact health of the pet . im doing it manually going to pet menu

weak quest
#

You can use placeholders for that

balmy elbow
weak quest
# balmy elbow can you make an example for me. sorry i already try doing that but not working i...

You have multiple ways to achieve that:

Using pet's name

You can set the pet's tag_name bone to be displaying health.
For that, you can turn off the naming system by displaying the pet's MythicMob name instead.
In the config.yml toggle the following settings as such:

# If you want MythicMobs name tag to show up instead of custom names players could give to their pet (true or false)
UseDefaultMythicMobsNames: true
# Whether renaming the pet should override the default name when it's set to `None`
OverrideDefaultName: false

Then, in the MythicMob file, you can set the displayname with whatever you want, and use the placeholders to display health:

Display: "Your pet - HP: <caster.hp>/<caster.mhp>"

For more information about that, I refer you to MythicMobs discord 👍

Using another bone

Maybe you would like to keep the custom naming system, and show the health through another name tag. You can add another tag_health bone for instance, and use that one through ModelEngine naming system.

You'll find more info here: https://git.lumine.io/mythiccraft/modelengine/-/wikis/Making-your-first-model

I redirect you to ModelEngine/MythicMobs discord on how to make these work, it's out of MCPets scope.
The procedure would be somewhat similar to the previous one, except that you don't need to turn off some settings in the config.yml of MCPets