MobHealth
MobHealth
Simple damage reporting. When you hit a mob, MobHealth tells you how much damage you did and how much health it has left: in chat, on the action bar, on the mob's name tag, as a boss bar, as a floating damage number, or as a health bar hovering over the mob. Any combination, and nothing for players to install.
MobHealth 11 is the classic plugin rebuilt around the NeoForge version's feature set, and it runs on every server line from Beta 1.7.3 to 26.3. Pick the file for your server:
+bukkit1.13-26.3: Spigot and Paper, 1.13 through 26.3+bukkit1.8-1.12: 1.8 through 1.12.2+bukkit1.7: CraftBukkit / Spigot 1.7.2 through 1.7.10+beta1.7.3: Beta 1.7.3 (CraftBukkit #1060, Poseidon, UberBukkit, Canyon)
Display modes
| Mode | Needs |
|---|---|
Chat: Zombie [||||||||||] 14/20 (-6) |
any server |
| Action bar: the same readout above the hotbar | 1.8+ |
| Nameplate: a coloured bar on the mob's name tag | 1.7+ |
| Boss bar: the widget at the top of the screen | 1.9+ |
| Damage indicators: red numbers that pop off the mob and rise | 1.8+ |
| Graphical: a floating bar riding above the mob | 1.19.4+ |
Bars go green → yellow → red as health drops. MobHealth says at startup which enabled modes your server cannot show, so nothing fails quietly.
Options
- Show for hostile, neutral and passive mobs, players and bosses separately, with per-mob
overrides (
minecraft:villager=false). - Only the attacker sees it, or everyone nearby.
- Bar length, glyphs, numbers as
14/20or70%, how long bars linger, how long after a kill. /mobhealth togglelets each player mute it;mobhealth.seelets you hide it from a rank.- The config has the same keys as the NeoForge mod, so one set of docs covers both.
Commands and permissions
/mobhealth reload (mobhealth.reload, op) · /mobhealth toggle [on|off] [player]
(mobhealth.toggle, everyone; mobhealth.toggle.others, op) · mobhealth.see (everyone)
Source and issues
https://github.com/Sablednah/MobHealth. The NeoForge version is a separate project, MobHealth ReForged.
Video
See MobHealth in action here…
Thanks to WoopaGaming for the video.

-
View User Profile
-
Send Message
Posted Nov 5, 2013This plugin is breaking with Mobs and Spawns (coldandtired). Hoping that you can get these fixed cause the errors are breaking my server and I really enjoy this plugin being used.
[WARNING] [MobHealth] Task #4396060 for MobHealth v7.1.0 generated an exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at java.util.Collections$UnmodifiableList.get(Unknown Source) at me.sablednah.MobHealth.API.MobHealthAPI.getMobMaxHealth(MobHealthAPI.java:336) at me.sablednah.MobHealth.SetHealth.setPlayer(SetHealth.java:60) at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:458) at me.sablednah.MobHealth.ServerDamageEntityListener$ScheduledshowBar.run(ServerDamageEntityListener.java:217) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:524) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) 2013-11-05 21:40:51 [INFO] shaythegoon101 issued server command: /difficulty 0 2013-11-05 21:40:51 [INFO] shaythegoon101: Set difficulty to PEACEFUL[m 2013-11-05 21:40:52 [WARNING] [MobHealth] Task #4396094 for MobHealth v7.1.0 generated an exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at java.util.Collections$UnmodifiableList.get(Unknown Source) at me.sablednah.MobHealth.API.MobHealthAPI.getMobMaxHealth(MobHealthAPI.java:336) at me.sablednah.MobHealth.SetHealth.setPlayer(SetHealth.java:60) at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:458) at me.sablednah.MobHealth.ServerDamageEntityListener$ScheduledshowBar.run(ServerDamageEntityListener.java:217) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:524) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) 2013-11-05 21:40:52 [WARNING] [MobHealth] Task #4396118 for MobHealth v7.1.0 generated an exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at java.util.Collections$UnmodifiableList.get(Unknown Source) at me.sablednah.MobHealth.API.MobHealthAPI.getMobMaxHealth(MobHealthAPI.java:336) at me.sablednah.MobHealth.SetHealth.setPlayer(SetHealth.java:60) at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:458) at me.sablednah.MobHealth.ServerDamageEntityListener$ScheduledshowBar.run(ServerDamageEntityListener.java:217) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:524) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) 2013-11-05 21:40:53 [WARNING] [MobHealth] Task #4396123 for MobHealth v7.1.0 generated an exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at java.util.Collections$UnmodifiableList.get(Unknown Source) at me.sablednah.MobHealth.API.MobHealthAPI.getMobMaxHealth(MobHealthAPI.java:336) at me.sablednah.MobHealth.SetHealth.setPlayer(SetHealth.java:60) at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:458) at me.sablednah.MobHealth.ServerDamageEntityListener$ScheduledshowBar.run(ServerDamageEntityListener.java:217) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:524) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) 2013-11-05 21:40:54 [WARNING] [MobHealth] Task #4396130 for MobHealth v7.1.0 generated an exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at java.util.Collections$UnmodifiableList.get(Unknown Source) at me.sablednah.MobHealth.API.MobHealthAPI.getMobMaxHealth(MobHealthAPI.java:336) at me.sablednah.MobHealth.SetHealth.setPlayer(SetHealth.java:60) at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:458) at me.sablednah.MobHealth.ServerDamageEntityListener$ScheduledshowBar.run(ServerDamageEntityListener.java:217) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:524) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
I'm not sure if this is much help to you at the moment...
Shaythegoon
-
View User Profile
-
Send Message
Posted Oct 2, 2013Is there a way for it have the mob health stay above their head instead of only showing up when you look at it?
-
View User Profile
-
Send Message
Posted Sep 28, 2013@Brocodo
Yes, sorry about that.
You're using Heroes aren't you. It looks like the latest Heroes builds are triggering either triggering multiple notices, and/or not detecting the entity type correctly. It's under investigation.
-
View User Profile
-
Send Message
Posted Sep 28, 2013Could this be mobhealth?
http://pastebin.com/6578sxwH
-
View User Profile
-
Send Message
Posted Sep 22, 2013@Brocodo
Ok try this Dev build... http://sabletopia.co.uk:8080/job/MobHealth/11/MobHealth$MobHealth/
-
View User Profile
-
Send Message
Posted Sep 20, 2013@SableDnah
MA isn't updated yet. But they say this Mobarena version is working with 1.6.2:
MobArena v0.95.5
-
View User Profile
-
Send Message
Posted Sep 12, 2013@SableDnah
Ah okay, didn't update MA yet
@SableDnah
Ah okay thanks. I didn't update MA yet.
I will update MA and see if the issue still exists.
-
View User Profile
-
Send Message
Posted Sep 11, 2013This is a really cool plugin. But can you make another plugin that increases mob health? That would be cool to go along with this plugin.
-
View User Profile
-
Send Message
Posted Sep 9, 2013@Brocodo
It's MobArena - I'll update support - what version are you using?
-
View User Profile
-
Send Message
Posted Sep 9, 2013I get some errors since i updated to 1.6.2
Error: http://pastebin.com/srSpQPbb
I use:
- Spigot latest dev
- Factions 2.1.0
- Heroes 1.5.3
Thanks :)
-
View User Profile
-
Send Message
Posted Sep 8, 2013@CommodoreAlpha
Both of those look like they use the new inbuilt bukkit max health system. So should work "out of the box".
usePercentforPlayer just changes the display from "10 / 20" to 50%. Useful if you want an indication of damage without giving away the full health.
-
View User Profile
-
Send Message
Posted Sep 7, 2013Could you support MobManager? It allows one to change the health of mobs (among a slew of other things).
As for plugins that alter a player's health, would this plugin need to support such plugins if I set "usePercentforPlayer" to "true"? Or will it display the right percentage regardless? (I use PermissionsHealth.)
-
View User Profile
-
Send Message
Posted Aug 30, 2013@Dronaman Try rolling back to 6.1.4 again - but before starting add/update these settings in config.yml `updateCheck` `doUpdate`
Set them both to false - this will disable the updater and keep you on 6.1.4.
If this has problems let me know and I'll push out a 1.5.2 only version for people staying with 1.5.2 for long term.
-
View User Profile
-
Send Message
Posted Aug 29, 2013Apparently this plugin auto-updates to 1.6.2. The update breaks Applied Energistics auto-crafting since that uses some type of entity. I tried downloading a Minecraft 1.5.2 version of MobHealth, v6.1.4. However, this auto-updates to MobHealth 7.1.0 on server startup. Since my backup plugin apparently only backs up the world folder, I don't have a copy of an earlier config file I can use to keep the plugin from updating. I guess I will have to drop this plugin unless I can get a 1.5.2 config. I am running a 1.5.2 server and don't want to reset it to go to Minecraft 1.6.2.
Here's the pastebin: http://pastebin.com/BTSe9Wig
I didn't think it required a ticket since it is obvious that MobHealth 7.1.0 is for Minecraft 1.6.2.
-
View User Profile
-
Send Message
Posted Aug 29, 2013To SableDnah
Hi, i wrote ticket and atached server log, too.
-
View User Profile
-
Send Message
Posted Aug 29, 2013@NekozePAN
Can I have a copy of the error? Other than Linrox's i've not seen this, and havn't see what the error actually is :/
-
View User Profile
-
Send Message
Posted Aug 29, 2013I have issues with numbers showing hp above players heads. I wrote a ticket.
-
View User Profile
-
Send Message
Posted Aug 29, 2013Hi, I saw auto-updated error log falls on 1.5.2 server same as Linrox. You should be well-known this issue.
Thanks.
-
View User Profile
-
Send Message
Posted Aug 23, 2013@merlin4life
That's not very helpful. - error dumps should go in tickets. And need more information really, what was happening? As far as Ii can see one player hit another player and that player became invalid?
Do you get this alot? Just once? Every time you hit a player, any time a specific player is hit?
-
View User Profile
-
Send Message
Posted Aug 23, 20132013-08-19 13:10:28 [SEVERE] Could not pass event EntityDamageByEntityEvent to MobHealth v7.1.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:46)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:94)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:398)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:423)
at net.minecraft.server.v1_6_R2.EntityLiving.damageEntity(EntityLiving.java:643)
at net.minecraft.server.v1_6_R2.EntityHuman.damageEntity(EntityHuman.java:715)
at net.minecraft.server.v1_6_R2.EntityPlayer.damageEntity(EntityPlayer.java:394)
at net.minecraft.server.v1_6_R2.EntityHuman.attack(EntityHuman.java:885)
at pgDev.bukkit.DisguiseCraft.listeners.attack.AttackProcessor.run(AttackProcessor.java:32)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:67)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:518)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.IllegalStateException: Cannot set scoreboard for invalid CraftPlayer
at org.bukkit.craftbukkit.v1_6_R2.entity.CraftPlayer.setScoreboard(CraftPlayer.java:1011)
at me.sablednah.MobHealth.SetHealth.setPlayer(SetHealth.java:58)
at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:458)
at me.sablednah.MobHealth.ServerDamageEntityListener.onEntityDamage(ServerDamageEntityListener.java:102)
at sun.reflect.GeneratedMethodAccessor177.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:425)
... 19 more