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 Apr 14, 2013@SableDnah
For instance change that shared label you were talking bout.
Are you aware of the villager bug? I guess the issue is that the client takes the mobs server sided name to display it on the top thingy on the trade interface, bugging the client out.
-
View User Profile
-
Send Message
Posted Apr 14, 2013@H8llfire
Yeah, using the scoreboard system I can't give each player its own display name i can only have a number per player - followed by a shared label. so hence the HP or percent option.
As soon as I work out a clean way of doing health bars for players I'll be on it. I would use the "displayname" but that'd clash with too many other plugins i think.
What did you have in mind for "more customization" options?
-
View User Profile
-
Send Message
Posted Apr 14, 2013Hi, I love the new update, however can you add more customization to the Player health bars?
That would be great. I guess its a clientside limitation to not add healthbars to players?
Also, a bug: When you right click a vilager with a health bar above you get kicked with following message:
Internal exception: java.io.IOException: Received string lenth longer that maximum allowed (40 > 32)
-
View User Profile
-
Send Message
Posted Apr 11, 2013Would be cool if you could display item damage in ItemMeta too! Even if it's just an option, would be really awesome to have!
-
View User Profile
-
Send Message
Posted Apr 11, 2013@deathnote1029
You're correct - that should be an info not a warning - i shall tweak for the next release :)
-
View User Profile
-
Send Message
Posted Apr 11, 2013Hey SableDnah, Really strange but i get this error in my console on startup.
2013-04-11 09:00:17 [WARNING] [MobHealth] [MobHealth] MobHealth v6.0.0 is upto date. 2013-04-11 09:00:17 [WARNING] [MobHealth] [MobHealth] http://dev.bukkit.org/server-mods/mobhealth/
Not really a warning as much as it is a notification, even when i am set to 6.0.0 :P anyway to fix that? Just to help a perfectionist out who hates seeing [warning] in his serverlog ;D
Thanks <3 deathnote1029
-
View User Profile
-
Send Message
Posted Apr 11, 2013@xXSshadowXx
Interesting. 6.0.0 has a new version checker- it should say
[WARNING] [MobHealth] [MobHealth] MobHealth 6.0.0 is available (93632 bytes) (You're using 5.3.4)
I suspect you have 2 copies of mobhealth in your plugins folder? Same thing happened to me in testing.
-
View User Profile
-
Send Message
Posted Apr 10, 2013I think the version is being reported incorrectly.
I am in fact using 6.0.0 Awesome plugin regardless. We have enjoyed it for quite a while now :)
-
View User Profile
-
Send Message
Posted Apr 10, 2013@KCZerG
Are you using LikeABoss ? if so what version? Also you say "most recent" - most recent beta? dev?
-
View User Profile
-
Send Message
Posted Apr 10, 2013@Sonorpearl 1.5r0.2 has the scoreboard API (not the beta) I'm writing for that now.
-
View User Profile
-
Send Message
Posted Apr 10, 2013Does Bukkit already have an API for Healthbar? I saw one in the Map from Hypixel, without Mods (With CommandBlocks I Guess)
-
View User Profile
-
Send Message
Posted Apr 10, 2013This is with most recent craftbukkit
14:39:54 [WARNING] [MobHealth] Task #358 for MobHealth v6.0.0 generated an exception java.lang.NoSuchMethodError: cam.entity.LabEntityManager.getLabEntity(Lorg/bukkit/entity/Entity;)Lcam/entity/LabEntity; at me.sablednah.MobHealth.API.MobHealthAPI.getMobName(MobHealthAPI.java:403) at me.sablednah.MobHealth.MessageScheduler.run(MessageScheduler.java:100) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:512) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
-
View User Profile
-
Send Message
Posted Apr 10, 2013Heres your new version in console, plugin does not function.
14:32:18 [WARNING] [MobHealth] Task #229 for MobHealth v6.0.0 generated an exception java.lang.NoSuchMethodError: cam.entity.LabEntityManager.getLabEntity(Lorg/bukkit/entity/Entity;)Lcam/entity/LabEntity; at me.sablednah.MobHealth.API.MobHealthAPI.getMobName(MobHealthAPI.java:403) at me.sablednah.MobHealth.MessageScheduler.run(MessageScheduler.java:100) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:510) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
-
View User Profile
-
Send Message
Posted Apr 10, 2013@anotherfahlman
@jessefjxm
Now the scoreboard API is available I'm looking into using it now ;)
-
View User Profile
-
Send Message
Posted Apr 9, 2013It would be greater if the plugin can show mobs' health using scoreboard & mob's custom name.
-
View User Profile
-
Send Message
Posted Apr 9, 2013I've been using this plugin for a while. I hope to see the ability to see the damage above mobs heads in numbers. Thanks for all the work you put in to this plugin.
-
View User Profile
-
Send Message
Posted Apr 9, 2013@bloodless2010
It should do - MobHealth tries to work out the actual damage inflicted to the target.
-
View User Profile
-
Send Message
Posted Apr 6, 2013@bloodless2010
That is damage resisted. For example, if I hit someone with a diamond sword who have diamond armor, they will resist some damage. So instead of Player took 7 damage, it would say Player took 2(+5) damage.
You can disable it in the config.
-
View User Profile
-
Send Message
Posted Apr 5, 2013What is the stuff after taken damage? i.e bloodless2010 took 3(+8) damage what is the +8 for?
-
View User Profile
-
Send Message
Posted Apr 5, 2013Does this work correctly with mcMMO? Certain things like unarmed,axes and swords skills effect the damage you deal!