MobHealth

Mob Health
This simple but invaluable plugin lets you know the damage you just caused to a mob (including other players), and how much health it has left.
Now with ActionBars!
If you have 1.8 bukkit/spigot then you can now enable actionbars by adding useActionBar: true to your config (or set to false to disable).
-
Mob Health has a range of useful options including:
- Control over how messages are shown
- When messages are shown
- When messages are *not* shown (a useful feature!)
- Exactly what is displayed - including your own custom messages...
Current Release Version: 9.1.0
Updater Information
Note that unless you edit MobHealth configuration it will automatically update as new versions are approved by the Bukkit team.
You can edit config.yml in the /plugins/MobHealth/ folder you can find the following settings.
updateCheck true- Show notification of available updates.
doUpdate true- Update MobHealth automatically when new download is available.
Change doUpdate to false to stop any file download, and updateCheck to false to stop notices about new versions in your startup log.
Got API?
MobHealth now has 100% more API included!
You can trigger damage notifications, if your plugin adds skills or spells for example. And far more usefully - you can query MobHealth to get the current health and max health of any Mob, regardless of which plugin is responsible for tracking it.
Think of it as Vault for mob health levels ;) You code for one plugin - I sort out the mess behind the scenes.
See the API page for more info.
NEW healthbars!!
As frequently requested, MobHealth can now display health bars above Mobs, and a health counter for players.
PLEASE NOTE: If enabled - these bars show above ALL players / mobs, regardless of any toggle or permissions settings.
Enable this feature with the following flags in config:
showPlayerHeadHealth: true
Enables health counter display below player names.
usePercentForPlayer: true
Changes health counter from HP to a percentage of health left (recommended).
showMobHeadHealth: true
Enable health bars for all mobs.
useBarForMobs: true
If true, use a health bar in format of [||||||||||] if false, show in format of "10/20"
Compatible Plugins
EpicBossRecoded
You shouted for it - here it is, Epic Boss support.
Thanks to ThaH3lper for adding in an entire API for MobHealth.
Spout
If Spout-plugin is installed and the client uses SpoutCraft (and disableSpout is on its default false setting) then notification will be shown with the achievement notification (as seen above).
ZombieMod
Exclusive to Imagicraft's Zombie Apocalypse RP (Zarp) server, ZombieMod creates several variaties of Zombie to terrorise players trying to survive in this post-apocalyptic server.
SimpleNotice
MobHealth now supports the Client Mod simple notice. Lets you show the messages elsewhere so your chat is spam free.
Thanks to FeildMaster for the pull request :)
Heroes
Heroes health and levelled up HP's are reported correctly as are mobs whose health levels have been adjusted in the config. Use of a Heroes skill will trigger a notification when it damages.
Mobs
Mobs adjustments to health are now tracked and reported in MobHealth.
Thanks to coldandtired for adding in MaxHealth and an API for me :)
Mob Arena
Bosses in a currently running Mob Arena report correct health and max-health. As do waves with a modified reduced health.
Thanks to garbagemule for adding MaxHealth to mob area for me.
LikeABoss/Corruption
MobHealth detects wandering bosses and correctly reports their health and name.
Thanks to bm01 and Erackron for integration help.
Monster Apocalypse (6.0b+)
If Monster Apocalypse is set to handle mob's health then these values are used for MobHealth.
Thanks to blainicus for answering my queries.
Video
See MobHealth in action here...
Thanks to WoopaGaming for the video.
Commands
/MobHealth reload
Reloads current configuration.
/MobHealth toggle [player]
Toggle notifications. [player] is ignored via chat and mandatory via the console.
Configuration
See the configuration page for full details.
Permissions
See the permissions page for full details.
Source Code
https:github.com/Sablednah/MobHealth
Stats Collection
Like many bukkit plugins, Mobhealth utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- The number of damage notices displayed (but not their content)
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Changelog
9.0.0: New ActionBar notifications.
8.3.0: Adds Rabbit, Endermite and Guardian mobs
8.2.2: Added fallback code for potential missing new methods.
8.2.1: Rollback gettextresource to get resources
8.2.0: Filter rogue &f colour code prefix's. Add scoreboard event (so it can be cancelled to preserve scoreboards).
8.0.1: Cleanup - removed unused class, update metrics to V7
8.0.0: Reworked Heroes integration. 1.7.2 compatibility fixes.
Download
Github no longer allows a "downloads" section, so I no longer mirror files there. If you'd like to test beta/dev versions follow me on twitter and ask there! But understand such files would not yet be approved by BukkitDev staff.
Known Bugs/Conflicts
- Plugins that alter mobs health levels usually return false health levels.
The plugins listed above are supported.
Donations
Donations of any amount are, of course appreciated :)
Contributions go towards maintaining my development server to encourage continued development, MobHealth is solo coded by me, and supporting so many other plugin takes a fair bit of time. So if you think that time is worth something then Hit the dontae button in the top right of this page :)

-
View User Profile
-
Send Message
Posted Jun 2, 2013@SableDnah
I've completely removed mobhealth and recreated folder, config.yml and lang.yml from scratch - same problem.
If I remove mobhealth altogether I still have these hearts. This just started recently so I'm guessing maybe another plugin? The odd thing is I don't have any other plugins that mess with the healthbar.
plugins: worldedit worldguard vault multiverse-core multiverse-inventories multiverse-portals essentials soulbound rpg items dtlcitizenstrader citizens2 denizen epicbossrecoded magicspells mcmmo generousmobs sentry
-
View User Profile
-
Send Message
Posted Jun 2, 2013is there a way to see how much damage you take from mobs in chat
-
View User Profile
-
Send Message
Posted May 30, 2013@fr333n3rgy
Ahh - sorry for mixup. By NPC I meant only the Villager's.
What plugin are you using to make NPC spiders and slimoids?
-
View User Profile
-
Send Message
Posted May 30, 2013@malaxan
Gonna need to see your config.yml and lang.yml - - open a ticket and let me know what's in them.
It looks like the healthbarprefix has been messed with so it doesn't know where the name ends and the bar begins.
-
View User Profile
-
Send Message
Posted May 30, 2013SPIDER, SLIME & MAGMA_CUBE NPC still show HealthBar even if disabled in config, other NPCs seems ok - using latest rel. of plugin.
P.S. Great plugin - thanks!
-
View User Profile
-
Send Message
Posted May 30, 2013@SableDnah
Oh, yes. It's fixed! Thanks!
-
View User Profile
-
Send Message
Posted May 29, 2013I'm having a problem configuring the healthbar over a monster's head. No matter what I try, I can't get rid of the hearts in the text and to the left above the monster's head.
Any ideas??
Direct Link to image...
-
View User Profile
-
Send Message
Posted May 29, 2013@yeshjho
Open lang.yml from the /plugins/mobhealh/ folder and edit the line - healthBarCharacter: It may show as a ? or a square box depending on your editor. replace that line with healthBarCharacter: "|"
Meanwhile i'll make sure 6.1.4 defaults to a usable character (the special character you can't see is the heart - use healthBarCharacter: "<3" if you still want to try heart bars.
-
View User Profile
-
Send Message
Posted May 29, 2013OMG When I run the bukkit first time, It says
'2013-05-29 18:43:00 [INFO] About to download a new update: MobHealth v6.1.3 2013-05-29 18:43:00 [INFO] [MobHealth] Downloading update: 10% of 101854 bytes. 2013-05-29 18:43:00 [INFO] [MobHealth] Downloading update: 20% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 30% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 40% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 50% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 60% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 70% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 80% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 90% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Downloading update: 100% of 101854 bytes. 2013-05-29 18:43:01 [INFO] [MobHealth] Finished updating.'
And reboot server, Always error with
'2013-05-29 18:43:15 [SEVERE] Cannot load configuration from stream org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xFFFD) special characters are not allowed in "<string>", position 530 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:202) at me.sablednah.MobHealth.MobHealth.reloadLangConfig(MobHealth.java:442) at me.sablednah.MobHealth.MobHealth.getLangConfig(MobHealth.java:449) at me.sablednah.MobHealth.MobHealth.loadConfiguration(MobHealth.java:366) at me.sablednah.MobHealth.MobHealth.onEnable(MobHealth.java:139) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:301) at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:280) at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:240) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:379) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: unacceptable character '?' (0xFFFD) special characters are not allowed in "<string>", position 530 at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ... 17 more 2013-05-29 18:43:15 [SEVERE] Error occurred while enabling MobHealth v6.1.3 (Is it up to date?) java.lang.NullPointerException at me.sablednah.MobHealth.MobHealth.loadConfiguration(MobHealth.java:391) at me.sablednah.MobHealth.MobHealth.onEnable(MobHealth.java:139) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:301) at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:280) at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:240) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:379) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)'
How can I resolve this error?
-
View User Profile
-
Send Message
Posted May 25, 2013@SableDnah
I am using de beta build 2771 Weird thing is the healthbars do work fine...
-
View User Profile
-
Send Message
Posted May 25, 2013@demellion
Thanks for the heads up ;)
-
View User Profile
-
Send Message
Posted May 25, 2013@xmkxmkxm
Timout bars is tricky - I'd have to track all the entities i put a bar on and when and then remove them.
I use shopkeepers myself and know exactly what you mean. I'll see if i can for now split useBarForMobs down into monsters, animals and npc's.
-
View User Profile
-
Send Message
Posted May 25, 2013@mlopezv
Hmm I'm sure the mcmmo team are aware of mobhealth, hopefully they'll swap. In the meantime I've added /mh and /mobh and /mhealth will push next release soon.
If you're not scared of tinkering - you can open the jar with winzip and edit plugin.yml yourself ;)
-
View User Profile
-
Send Message
Posted May 25, 2013@eloyedelenbosch
By the looks of that error your bukkit version doesn#t support scoreboards?
What cb build number are you using? did "Scoreboard API not detected." show during startup?
-
View User Profile
-
Send Message
Posted May 24, 2013The plugin is working perfectly but i still got lots of errors in my console... What could be the problem. Error example: http://pastebin.com/PZWa2nSb
What could be the problem? Does this plugin even support 1.5.2? Thx
-
View User Profile
-
Send Message
Posted May 24, 2013I found that I can't disable animal's healthbar. I was using a plugin called shopkeepers, and it allowed me to change villagers' name. After I left click the villager, the bar will appear and won't disappear again unless I restart my server. I think the bar of animals is not necessary. Consider about dividing animal and monsters' healthbar or let the bar disappear after a while if nothing cause the damage.
-
View User Profile
-
Send Message
Posted May 21, 2013This plugin slash commands now conflict with mcMMO health bar commands (/mobhealth is overriden by mcMMO)
I know this is mcMMO fault, and they have it ticketed it in their Mod page already, but It could be useful if you guys create a parallel alias too to resolve this problem and make users lives easier (something like /mh toggle and so on...).
Thanks in advance.
-
View User Profile
-
Send Message
Posted May 19, 2013SableDnah, Latest Heroes builds removed the method getHealth(), so now plugin is spamming each time mobs being hit. Watch this, if you can. Thanks
-
View User Profile
-
Send Message
Posted May 15, 2013@iltkamil
I've not tested it yet. But if Ancient RPG use the new setMaxHelth() functions to control player/entity health then it should work "out of the box"
-
View User Profile
-
Send Message
Posted May 15, 2013@McPixel
@Xarinor
I'll try to make the character used for the bar customizable for next release.
As for the visibility range - Thats set client side.
The only alternative is complex distance scanning to check where all players are in relation to each mob and then removing bars on those outside range - LagMonster loves his idea - lol
However I HAVE noticed that names with colour characters in them are always visible - whereas those without only show when looking at the entity. I would love for this to be fixed - but I THINK its a client side bug (or possibly - an undocumented surprise feature).