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 Dec 7, 2012@Tehkiah
I *think* I'm checking heroes after mobs. i'll have a play with the checking order and see what i can do
-
View User Profile
-
Send Message
Posted Dec 6, 2012I'm messing around with MobHealth, the dev versions of Heroes for 1.4.5, and the Mobs plugin and I found something a little strange: With only Heroes or only Mobs adjusting damage on monster spawns, MobHealth works just fine, but if running Heroes alongside Mobs, despite them working perfectly fine (Mobs takes over damage and works with the weapon damage settings from Heroes), Mobhealth fails to report any damage.
I used to use all three of these plugins alongside each other back in 1.2.5, but took a break from server development until recently. Not sure if you might have some insight into this! Thanks for this great plugin, either way! :D
-
View User Profile
-
Send Message
Posted Dec 6, 2012@MERCHANToDEATH
I can confirm that the rename for Enderman is broken. I've a ticket open for this already and should have 5.2.1 out this weekend with fix for this and updates for comparability with other plugins.
-
View User Profile
-
Send Message
Posted Dec 5, 2012First, great plugin. I have had your plugin in my server since it began and had very little to no problems with it ever. I am having a problem now with renaming a mob though. All the name s that I set up work except for enderman. It doesn't seem to want to use my new name for the mob even though all the others work fine. I'll double check my config, but I think it might not be hooked in right on that mob. Thanks for your help.
-
View User Profile
-
Send Message
Posted Dec 1, 2012@Nickbbeezy
Sure - i'll have a look see - just open a ticket with the error and bukkit + plugin versions (don't just say latest - lol/)
-
View User Profile
-
Send Message
Posted Dec 1, 2012Any chance of adding support for Citizens2 mob NPCs? Right now it just gives a nasty little error when someone hits a mob npc.
-
View User Profile
-
Send Message
Posted Nov 29, 2012@promarcos
Can you raise a ticket and I'll need the versions of bukkit, like a boss, mobhealth and heroes ;)
-
View User Profile
-
Send Message
Posted Nov 29, 2012'm using like a boss, mobspawn, and Heroes.
in my console displays these messages and health of monsters not appear.
2012-11-29 15:45:07 [SEVERE] Could not pass event WeaponDamageEvent to MobHealth v5.2.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at com.herocraftonline.heroes.listeners.HDamageListener.onEntityDamageCore(HDamageListener.java:185)
at com.herocraftonline.heroes.listeners.HDamageListener.onEntityDamage(HDamageListener.java:248)
at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callEvent(CraftEventFactory.java:80)
at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:377)
at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:399)
at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:658)
at net.minecraft.server.EntityAnimal.damageEntity(SourceFile:122)
at net.minecraft.server.EntityHuman.attack(EntityHuman.java:794)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1124)
at net.minecraft.server.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.Packet7UseEntity$$EnhancerByCGLIB$$6247e4a1.CGLIB$handle$0(<generated>)
at net.minecraft.server.Packet7UseEntity$$EnhancerByCGLIB$$6247e4a1$$FastClassByCGLIB$$6bb08230.invoke(<generated>)
at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.comphenix.protocol.injector.ReadPacketModifier.intercept(ReadPacketModifier.java:110)
at net.minecraft.server.Packet7UseEntity$$EnhancerByCGLIB$$6247e4a1.handle(<generated>)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113)
at net.minecraft.server.ServerConnection.b(SourceFile:39)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.NoSuchMethodError: cam.Likeaboss.getBossManager()Lcam/boss/BossManager;
at me.sablednah.MobHealth.API.MobHealthAPI.getMobHealth(MobHealthAPI.java:259)
at me.sablednah.MobHealth.HeroesEventListener.WeaponDamageEvent(HeroesEventListener.java:85)
at sun.reflect.GeneratedMethodAccessor281.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
... 34 more
-
View User Profile
-
Send Message
Posted Nov 28, 2012@Darkblader10
It should always show the player name not player. You mush have a conflict. Can you raise a ticket here... http://dev.bukkit.org/server-mods/mobhealth/create-ticket/
Be sure to include the version of bukkit, mobhealth and any plugin listed above. And don't just say latest - lol.
Hopefully we can find out why its nor working for you.
-
View User Profile
-
Send Message
Posted Nov 27, 2012When I disable the mobhealth for monsters, animals and pets I still can see the health of endermen in fights.
And it would be great if I can see the players name instead of "player". Maybe make it configurable. :)
-
View User Profile
-
Send Message
Posted Nov 27, 2012@Mayhem777
5.2.0 now supports Wither Skellies, Zombie babies/villagers , wither boss, bats and witches ;)
http://dev.bukkit.org/server-mods/mobhealth/files/47-mob-health-v5-2-0/
-
View User Profile
-
Send Message
Posted Nov 23, 2012@Mayhem777
Zombies vilagers/babys and wither skellies should show as just Zombie and Skellington respectivly.
Is Witherboss failing or just showing "CraftWitherBoss takes x damage" ?
-
View User Profile
-
Send Message
Posted Nov 23, 2012@promarcos
No need - EpicBoss is integrating with me ;) Once there is a Spout to test it all on it'll be out.
-
View User Profile
-
Send Message
Posted Nov 23, 2012@UltrafaceGuy
It almost certainly is due too Mon-Apoc dealing damage to try to kill the entity when it internal health says its dead. And as you say MC rescuing it.
I'll investigate more
-
View User Profile
-
Send Message
Posted Nov 23, 2012Working with 1.4? = yes
Zombie Villager + Wither Skeleton + WIther Boss = no compatible
-
View User Profile
-
Send Message
Posted Nov 21, 2012Please integrate with EpicBoss..!
-
View User Profile
-
Send Message
Posted Nov 19, 2012I found another bug! Because I just NEVER stop bothering the wonderful people who help my server with their plugins!
Anyways, sometimes when hitting a higher amount of damage than a target's health, it says "Mobname took WHATEVER damage. Killed" and the mob does not die. I believe this has something to do with Minecraft's 'maim' function, where sometimes upon taking a large amount of fatal damage, mobs and players are left with 1/2 a heart.
In any case, I am rocking Monster Apocolypse, with no errors from either.
-
View User Profile
-
Send Message
Posted Nov 19, 2012@Darkblader10
Oh it should do, and does for me? - is it not for you?
-
View User Profile
-
Send Message
Posted Nov 15, 2012It would be great if it would show the player's name instead of just "player"
-
View User Profile
-
Send Message
Posted Nov 9, 2012@Mayhem777 mob counters?