Mods / Simple Entity HealthBar

Tags: #QoL #Utility
Author: OldManYells
Side: Client
Created: Sep 6th at 8:01 PM
Last modified: 6 hours ago
Downloads: 5689
Follow Unfollow 186

Recommended download (for Vintage Story 1.21.0, 1.21.1 and 1.21.2 - 1.21.5):
simpleentityhealthbar_0.0.6.zip  1-click install


Status: Experimental / WIP

New Feature: Target Entity Nameplate with configurable max distance (capped at 50)

 

The 50 block cap was set as the experience doesn't seem that useful even at that distance. The nameplate is just to big and even if i tried to do some scaling with would have a poor quality. Nonetheless if you want to try and provide feedback please do.

 

Note: Since standard tooltip is suppressed when the healthbar is shown t tooltip information appears below the healthbar (The screenshot here show that information when debug is enabled in Dev settings)

 

Latest Changes:

  • Feat: Improved UI composition
  • Feat: Add Main Health bar scaling config (Percentage based, clamped between 30-100)
  • Feat: Added Health points to nameplates (Can be disabled in configs)

 

 

Configuration


{
"ShowHudHealthBar": true,
"ShowNameplates": false,
"ShowNameplateHp": true,
"MaxTargetDistance": 50,
"HudHealthBarScalePercentage": 100
}

Roadmap 🥅


  • Allow more Healtbar customization (Size, info, etc)
  • Creature Portrait (one can dream!)

Changelog 🚧


v0.0.6
  • Scale Main Hud health bar config
  • Hp value on nameplates
  • Improve UI composition
v0.0.5
  • Feat: Display entity nameplates (Name + Healthbar) over their heads (targeted entity only) - Comes disabled by default
  • Feat: Allow for Configuration through config file
  • Feat: Allow target max target distance through configuration (capped at 50 blocks)
v0.0.4
  • Tweak: UI is now always scaled to 30% screen size
  • Tweak: Traders now show a green health bar as they're friendly 
  • Tweak: Name and Health text with outline for better visiblity
  • Feat: Healthbar now stays 1 second after losing target (still switches immediately when target changes)
  • Fix: Change the way BlockInfoHud is hidden to prevent changing user preferences (It was breaking in certain cases leaving the Block Info Hud disabled)
v0.0.3
-Tweak: Improved handling of show/hide Block Info tooltip
v0.0.2
- BugFix: Default Tooltip being permenantly disabled after first use

Mod Version For Game version Downloads Released Changelog Download 1-click mod install*
0.0.6
1.21.2 - 1.21.5
108 6 hours ago simpleentityhealthbar_0.0.6.zip 1-click install

- Scale Main Hud health bar config
- Hp value on nameplates
- Improve UI composition

0.0.5
1.21.0 - 1.21.1 1.21.2 - 1.21.5
3797 Sep 21st at 4:30 PM simpleentityhealthbar_0.0.5.zip 1-click install
  • Feat: Display entity nameplates (Name + Healthbar) over their heads (targeted entity only) - Comes disabled by default
  • Feat: Allow for Configuration through config file
  • Feat: Allow target max target distance through configuration (capped at 50 blocks)
0.0.4
1.21.0 - 1.21.1
262 Sep 20th at 1:59 PM simpleentityhealthbar_0.0.4.zip 1-click install
  • Tweak: UI is now always scaled to 30% screen size
  • Tweak: Traders now show a green health bar as they're friendly
  • Feat: Healthbar now stays 1 second after losing target (still switches immediately when target changes)
  • Fix: Change the way BlockInfoHud is hidden to prevent changing user preferences (It was breaking in certain cases leaving the Block Info Hud disabled)
0.0.3
1.21.0 - 1.21.1
1109 Sep 7th at 12:22 PM simpleentityhealthbar_0.0.3.zip 1-click install

- Improve handling of Block Info Hud visiblity

0.0.2 293 Sep 6th at 9:55 PM simpleentityhealthbar_0.0.2.zip 1-click install

- BugFix: Default Tooltip permanently disabled

0.0.1 120 Sep 6th at 8:02 PM Empty simpleentityhealthbar_0.0.1.zip 1-click install

21 Comments (oldest first | newest first)

💬 OverGrownHell, 12 minutes ago

The new update killed itself upon interaction with a Primitive survival mob (snake)

💬 OldManYells , 6 hours ago

The_Draconas try it out. Added just the current value so that it wouldn't be too big of a thing.

💬 OldManYells , 16 hours ago

The_Draconas shouldn't be hard, i'll see how it looks (i need to fix couple of weird issues with it) and if i can add it as a optional thing.

💬 The_Draconas, Oct 27th at 7:56 AM

would it be possible to add the numbers to the floating style bar like the hud style has?

💬 itsmars, Oct 21st at 2:36 AM (modified Oct 21st at 2:36 AM)

FawkesPC C:\Users\UserNameHere\AppData\Roaming\VintagestoryData\ModConfig\SimpleEntityHealthbar.json

{
"ShowHudHealthBar": false,
"ShowNameplates": true,
"MaxTargetDistance": 15
}

💬 FawkesPC, Oct 18th at 8:49 PM

Where abouts do I fiddle with configs to have the healthbar floating like in that last screenshot? At the moment every chicken and rabbit (and other mobs) are like facing up against a Dark Souls boss with the sudden large healthbar at the top ^^'

💬 OldManYells , Oct 18th at 3:50 PM

Distorti0N yeah, i'll try to make it work next time i get some time.

💬 Distorti0N, Oct 5th at 9:20 PM (modified Oct 5th at 9:22 PM)

OldManYells Hey, really digging your approach to a health bar here, but I don't suppose you'd be open to adding the UI Scale to the config file? I much prefer lowkey HUD elements and at the current scale (30% (?)), its a large piece of screen real-estate for me. It also appears to have clipped the total health off the end, so doesn't display the numbers like your screenshots do. 

 

Otherwise, having the bar at the top of the screen only when mousing over the mob is the least immersion breaking for me, so thank you for putting this together. 

 

Tried to imbed an image, didn't work, so here's a link to the kinda bar I am seeing. 

https://freeimage.host/i/KXgHF1e

💬 OldManYells , Sep 21st at 5:26 PM

Dookin not quite sure on this, but it's probably because i'ts a client side only mod and is set in the code as such. I'm guessing the when that happens the server my not enforce that?! At least is what i'm seeing in the tests i've done. I also have a personal server and only the mods that have a server and client part that are required to work together are sent to me. All the rest i have to download explicitly on the client side.

💬 Dookin, Sep 21st at 5:16 PM

Used it on my server it did not load and didn't give the option to download it from the server 

💬 OldManYells , Sep 21st at 4:35 PM

Tasshroom33 DigitalHare i got entertained playing with some particular case and went ahead and added nameplates. They come disabled by default but you can enabled them through config and also adjust max distance for targeting (although capped at 50, as explained in the mod description). let me know how it feels.

💬 DigitalHare, Sep 20th at 7:22 PM

Wouldn't end-user adjustable range be a solution? Let the player decide how much breaks their own immersion or not.

💬 OldManYells , Sep 20th at 4:18 PM

Tasshroom33 this also leverages block (4.5 block i think?!), the same as Block Info Hud. I've already considered on increasing the reach, although theres the argument that it starts to be a bit off as it starts to give you and advantage. If you have a too big of a reach you can even detected mobs by chance just because you moused over them at a distance. It's even worse with the immersive heathbars the other mod provides has it clearly highlights them on screen when you're nearby. Next time i pick this up again i'll see how i feel about it then regarding the direction i want this to take.

💬 Tasshroom33, Sep 20th at 3:10 PM

What is the max distance of this? That was my main gripe with the way the other healthbar mod handles the healthbar is that it's only like 5-10 blocks away which for bears\wolves\ect is a little crazy.

💬 OldManYells , Sep 10th at 11:25 PM

Wickidspliff try disable and enable the block info again through the settings.

💬 Wickidspliff, Sep 10th at 3:11 PM

I updated to the latest version and now my block info doesn't disappear after looking at an entity but there is no more healthbar?

 

💬 OldManYells , Sep 7th at 12:30 PM

Oh_Snap currently i'm ensuring that the basic functionality works with little to no side effects. I will definetly work on allowing customization :) 

💬 Oh_Snap, Sep 7th at 12:00 PM

Any way to resize the healthbar?

💬 OldManYells , Sep 6th at 11:24 PM

Samuel_REDACTED the new versionn should fix it. Just install it and after you trigger the health bar again it should fix the tooltip displaying again.

 

💬 Samuel_REDACTED, Sep 6th at 10:11 PM

The tooltip no longer appears for me when there is no healthbar visible

💬 berserkus, Sep 6th at 8:11 PM

yesss, I've been wishing for a health bar like this

 (edit comment delete)