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 :)
thank for your consideration ;)
@Slyac
I'll see what I can do. :)
It is possible to do an Event ( can be cancelled ) when player's scoreboard update ? (In SetHealth.java : setPlayer)
I use this plugin and I want to use another scoreboard in certain condition, but when an entity is hit, the scoreboard switch to yours.
how to download mincraft helllp
@padfut0
The too dark spider bar is a spout think - it dims based on distance i think. I have zero control over how the client renders the bar.
As for the shrinking zombie bar - that looks like fire damage causing it. Does it happen every time you set fire to a mob?
@darkness7268
I have wondered about this.
If your Permissions plugin supports per world settings then you can use the mobhealth.show on the appropriate worlds - and turn on perms.
I'll work on a way to set world limits in the config for next version.
Problem I found 1. Zombie's healthbar shrinks 2. Spider's healthbar too dark
check this screenshots https://docs.google.com/file/d/0B_Ng7WQVwyFRcGs4TUh2T1hmYXM/edit
using spigot server based on bukkit 1.7.5
Is there a way to only have mob health on 1 world? (like have it in the rpg world but not faction)
@xH3LLRAIZ3Rx
MobHealth doesn't require spout either, - its optional for the "Achievement" style notice and the floating up RPG style notice.
HealthBars and damage notices work fine without spout.
Showing damage as a custom tag instead of a bar is an interesting idea tho. If people want an option to show that instead of healthbars let me know!
UPDATE Ahh I see how holograms does it now. Its using NSM code so needs updating each minecraft build, and i've promised myself to keep MobHealth to using only the bukkit API. BUT i'll have a talk to holograms people - as MH has a cool way of getting real damage done and an API so i'll see if they want to connect up and make us both + + awesome.
a new plugin came out that does this but not requires spout: DamageIndicatorsHolograms
@Thredziii
Its the healthbars that do that - set showPlayerHeadHealth to false to stop it messing with scoreboards.
I'll see why in the meantime - I'm not sure why it would scrub the inbuilt scoreboards
I used until I see it cancel the basic minecraft scoreboard :/ Scoreboard back after erased plugin. I use scoreboard objectives on sidebar.
@ledhead900
If campaign modifies mob's health and damage and names is a bukkit friendly way then it should work out of the box - and most plugins have stepped into line on this (inc Heroes).
Let me know what isnt working and i'll be sure to look into it.
@predawnia
Ditto for LeveledMobs - it should just work - if not let me know what bit fails.
@StreetkillnHD
Will look into it - I use colour codes myself so it shouldn't be striping them!
@donbuster66
To clarify. There are no permissions nodes for the health bars, so "ALL players will have a healthbar that ALL players will be able to see". You can also replace "players" with "living entities" monsters get it too. These healthbars hack the NameTag and scoreboard systems to put in a bar so spout is not needed - just 'nilla MC. The flaw of this is that I have no control over the client side to set permissions for visibility. It might be possible with clever scoreboard code - but MobHealth is mostly meant to be about seeing damage notifications - healthbars was just an obvious extra feature!.
You can disable healthbars for monsters, animals and/or players. But everyone can always see the bar if they are close enough to view name tags.
dont work with http://dev.bukkit.org/bukkit-plugins/colored-tags/ colors get removed.
@predawnia
While he is doing that could he also add support for http://dev.bukkit.org/bukkit-plugins/campaign/ ? I am not sure why it is not already supported it seems to be the go to mod for MMO servers.
@SableDnah Since you are updating to 1.7.2 can you add compatibility for LeveledMobs too? :)
LeveledMobs link is http://dev.bukkit.org/bukkit-plugins/leveledmobs/
Thank you. I love your plugin ;)
when you say "PLEASE NOTE: If enabled - these bars show above ALL players / mobs, regardless of any toggle or permissions settings." does this mean that ALL players will have a healthbar that ALL players will be able to see, or does this mean that ALL players will have a healthbar that only players WITH A PERMISSION (or players USING SPOUT) can see?
@G4meM0ment
I'll look info \n - < 3 is already in for ♥ so i can add █ too.
+x messages? You mean the damage notifications? Those are kinda the point of MobHealth - lol, health bars was just an addon! I try to keep up with the different plugin support so those messages are accurate, changing the priority doesn't work - as there is no way to ensure i get the final word. Instead I trigger a task 1 tick later and compare health before and after the event. Most plugins are falling in-line with the adjustable maxhealth added to CB, so my jobs getting easier. Now Heroes is back on CB im working on mobhealth 8 now so that should fix that.
To disable notifications tho, set all these to true. disableSpout, disableChat, showRPG, showSideNotification
I'll look into those debug messages.