This plugins display the health of players or mobs above their head.
Links
Github - Source Code Download
Please leave star on Github or a like/comment on this thread. Feel free to clone, fork or contribute to this repository.
Features
Works without client modifications
You can customize the character which will be displayed in the healthbar
Works with mobs and players
Config
# Show health bar above mobs
enabledMob=true
# Show the health of a player besides his nametag
nametagHealth=true
# Show the health of a player under his nametag (only the health number)
belowNameHealth=false
# What character should be used to display the health
displayChar='|'
Screenshots
Mob health
Player health with nametag and belowName options enabled
Sadly, the plugin will override the old the nametag. Maybe itās possible to append health indicators to the existing nametag. Iāll try to look into it.
Which mod or plugin do you use which changes the nametag? If I find a ways to fix this issue, I want to make sure that the other plugin/mod still works.
Version
forge-1.8-11.14.4.1577
spongeforge-1.8-1577-3.1.0-BETA-1024
[20:17:17] [Server thread/INFO] [healthname]: Loading HealthName v0.2
[20:17:17] [Server thread/ERROR] [Sponge]: Could not pass FMLPreInitializationEvent to Plugin{id=healthname, name=HealthName, version=0.2}
java.lang.NullPointerException
at ninja.leaping.configurate.objectmapping.ObjectMapper$FieldData.serializeTo(ObjectMapper.java:105) ~[ObjectMapper$FieldData.class:1.8-1577-3.1.0-BETA-1024]
at ninja.leaping.configurate.objectmapping.ObjectMapper$FieldData.deserializeFrom(ObjectMapper.java:87) ~[ObjectMapper$FieldData.class:1.8-1577-3.1.0-BETA-1024]
at ninja.leaping.configurate.objectmapping.ObjectMapper$BoundInstance.populate(ObjectMapper.java:140) ~[ObjectMapper$BoundInstance.class:1.8-1577-3.1.0-BETA-1024]
at com.github.games647.healthname.config.Settings.load(Settings.java:55) ~[Settings.class:?]
at com.github.games647.healthname.HealthName.onPreInit(HealthName.java:60) ~[HealthName.class:?]
at org.spongepowered.common.event.listener.GamePreInitializationEventListener_HealthName_onPreInit4.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86) ~[RegisteredListener.class:1.8-1577-3.1.0-BETA-1024]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:233) [SpongeModEventManager.class:1.8-1577-3.1.0-BETA-1024]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:277) [SpongeModEventManager.class:1.8-1577-3.1.0-BETA-1024]
at org.spongepowered.mod.SpongeMod.onStateEvent(SpongeMod.java:167) [SpongeMod.class:1.8-1577-3.1.0-BETA-1024]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) [minecraft_server.1.8.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) [LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190) [LoadController.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) [minecraft_server.1.8.jar:?]
at net.minecraftforge.fml.common.LoadController.onPost(LoadController.java:53) [LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550) [Loader.class:?]
at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88) [FMLServerHandler.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:355) [FMLCommonHandler.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:117) [po.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_66]