This plugin adds a floating health bar ui above entities you attack, such as npcs, animals, patrol helicopter, and others. It supports multiple color themes, and you can configure how long the ui stays visible and which entities trigger it.
Permissions
enemyhealthbar.use
- Allows a player to see the health bar ui.enemyhealthbar.ignore
- Prevents a player's own health from being displayed to others when they are attacked.
Commands
/healthbar
- Toggles the health bar ui on or off.
Configuration
JSON:
{
"Health Bar Display Duration Seconds": 5.0,
"Health Bar Toggle Chat Command": "healthbar",
"Whitelisted Entity Keywords (Leave empty to allow all entities)": [
"player",
"scientist",
"bear",
"polarbear",
"wolf",
"stag",
"boar",
"patrolhelicopter",
"bradleyapc",
"vehicles"
],
"Blacklisted Entity Keywords": [],
"Required Distance To Target": 50.0,
"Selected Ui Color Palette": "Orange",
"Ui Color Palettes": {
"Orange": {
"Health Bar Background Color": "#3A1E03",
"Health Bar Border Color": "#190C02",
"Health Bar Fill Color": "#D27411",
"HP Value Text Color": "#FFE9C2"
},
"Green": {
"Health Bar Background Color": "#033A0D",
"Health Bar Border Color": "#051905",
"Health Bar Fill Color": "#11D238",
"HP Value Text Color": "#D7FFD2"
},
"Blue": {
"Health Bar Background Color": "#03193A",
"Health Bar Border Color": "#020E19",
"Health Bar Fill Color": "#1192D2",
"HP Value Text Color": "#D2F1FF"
},
"Red": {
"Health Bar Background Color": "#3A0D03",
"Health Bar Border Color": "#190503",
"Health Bar Fill Color": "#D23811",
"HP Value Text Color": "#ECD646"
}
}
}
Health Bar Display Duration Seconds
- How long the health bar stays visible after an attack.Health Bar Toggle Chat Command
- The chat command players can use to toggle the health bar on or off for themselves.Whitelisted Entity Keywords
- Determines which entities can display a health bar. If left empty, all entities are allowed. If specific keywords are added, only entities whose prefab name contains one of those keywords will show a health bar.Blacklisted Entity Keywords
- Prevents specific entities from ever displaying a health bar, even if they match the whitelist. This is useful if you want to allow most enemies but exclude certain ones.Required Distance To Target
- Maximum distance from the target required to see its health bar.Selected Ui Color Palette
- The name of the currently active ui color scheme.Ui Color Palettes
- A list of custom color schemesthat can be selected inSelected Ui Color Palette
.- Each palette consists of:
Health Bar Background Color
- The color behind the health bar.Health Bar Border Color
- The border color of the bar.Health Bar Fill Color
- The color representing remaining health.HP Value Text Color
- The text color for displaying exact HP values.
- Each palette consists of:
Localization
JSON:
{
"NoPermission": "You do not have permission to use this command.",
"HealthBarEnabled": "Enemy health bar enabled!",
"HealthBarDisabled": "Enemy health bar disabled!"
}