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 :)
I am using a plugin called Minigames, and whenever i die while in a minigame, it spams the console with an error saying that the player death could not be passed MobHealth, could you please look into this? it is very annoying when i need to read the console messages
Suggestion: an option to only show health of mobs with custom names via chat :)
Love this plugin, but you should make an option that work with citizens, for example disable healthbar on not-attacking npc
how much ram does this plug in take up if im using mc pro hosting?
Is there a way to make the health bar appear immediately above mobs heads when you look at one? Not like players when it's always shown, but not having to hit the mob to know his health...
Mods loaded:
Bedhealth BringAllHere ChatManager CreeperHeal dynmap-1.7.1 EssentialsAntiBuild EssentialsChat Essentials EssentialsProtect EssentialsSpawn LightningOnStrikev1.0 LWC mcMMO MobHealth Modifyworld NoCheatPlus PermissionsEx SimplePlayerList Timeismoney TimeTracker-1.4
edit: ticket 58 created
@borigaro
Can you add more info about what plugins you're using so i can see if theres any commonality.
In fact prolly gonna need a ticket for this.
@mat41997
Not sure why you felt the need to post a link to another plugin here - bit rude tbh. Heath Bar is an awesome plugin - I even traded bug fixes with the author, and if you just want health bars - his plugin is always gonna be a few features ahead of me. MobHealth's focus is damage notifications, health bars is just a logical extra feature and i will be adding more control options for the bars in the future.
@Paril101
Thanks for the pull req - i'll tweak it to be even more flexable.. eg add some more options like only showing name for custom mobs etc.
@sablednah I have the same problem @malaxan is having, started the other day, can't see mob name (which i want to,) except here and there for a moment. Normally the name text is overwritten with red or grey hearts. I removed your mod, blew away the .yml files, reloaded the server, and verified i am running the most recent .jar. All to no avail. :(
Pleas add style to useBarForMobs:
http://dev.bukkit.org/bukkit-mods/health-bar/
This is an awesome plugin, but as always I have a few suggestions, I think support to disable Citizen npcs health bars should be added, and there should also be the option to disable health bar for a certain entity, Thanks you for creating this, it's deifnently in my top 5 fave plugins.
@SableDnah
Health bars are prefixed by the mob name (ie, "Zombie Pigman: [||||||||||||||||]"). I find this a bit.. redundant for us, because we don't plan to have special named bosses, and we all know what a Zombie Pigman is :) It also shoves the bar way to the right of the name, which is very confusing if you're fighting a large group of mobs.
I think a feature in lang.yml to customize the format of the tag would be cool; something like.. tagFormat: "%n: %h" ...where %n is replaced with mob name and %h is replaced with health formatting.
Basically I -only- want health bars. No names, no notifications (which I have figured out how to disable, so no biggie there), just bars. If you'd like, I will set up a pull request for you.
EDIT: https://github.com/Sablednah/MobHealth/pull/5
@Paril101
Yeah side effect, damage reports is the plugins focus - healthbars was 'just' a complementary feature.
If forgot about squids (i always do!), serves e right for relying on instanceof Animal.
Can you explain more about what you envisioned (maybe in a pm?) at the moment you can turn on or off the health bar system to just leave damage notifications. - and disable them on villagers and animals.
Hey there.
I really like this plugin, and am considering putting it in the Official PlanetMinecraft Server, but I have one feature suggestion; could you have it hide the mob name by request? I don't intend to have superbosses/custom named enemies, and even if I did, I don't think underlings or regular mobs need a name attached to them, as it just makes the health bar harder to find. I checked the Configuration page, but it seems outdated as it's missing many entries so I'm not sure if I'm just missing something or not. Thanks!
Also, small bug: Squids are not considered "animals", so they still show a health bar.
@SableDnah
The healthBarCharacter looks just like you have it. I don't have a healthPrefix line at all.
This is happening on brand new mobs that I /spawnmob. Any other ideas?
Add the PigZombieBaby Yeah I know it doesn't exist but I spawned 1 =p !
@malaxan
Open lang.yml and make sure these lines read as follows... healthBarCharacter: "|" and if you have it healthPrefix","&r&f&r"
Then hit some new mobs. Existing mobs will probably remain messed up until hit. - You can always use /butcher to clear old mobs away.