promotional bannermobile promotional banner
premium banner
Add numeric Health bar above entities head

Description

HealthBar – Floating Health Bars for Mobs

HealthBar is a lightweight Hytale plugin that renders floating health bars above mobs and NPCs.


✨ Features

  • Floating health bars above mobs/NPCs

    • Shows current / max HP.
    • Updates in real time as the mob takes damage or heals.
  • Eye‑height aware positioning

    • Uses the entity’s ModelComponent and Model.getEyeHeight(...).
    • Works correctly with different mob sizes.
  • Configurable vertical offset

    • Add extra height above the entity’s eyes so the bar doesn’t clip into models.
    • Controlled via a simple config file.
  • Automatic cleanup

    • Health bars are removed when a mob dies.
    • Orphaned holograms are cleaned up safely when entities disappear or unload.
    • Old holograms from previous runs are removed on server startup.
  • Respect for invulnerability

    • Entities with the Invulnerable component are ignored (no health bar).
  • Global toggle

    • You can globally enable/disable the entire health bar system via config.
    • When disabled, all existing holograms are removed and no new ones are spawned.

⚙️ Configuration

A config file is created automatically the first time the plugin runs.

  • Location (since v1.0.5):
    <plugin-data-directory>/healthbar.properties

Example:

# Vertical offset added on top of the entity’s eye height
y-offset=0.3

This mod add numeric HealthBar above entities head.

if you have any issues contact me on discord: ender_griefeur99

alt text