Mods / Simple Entity HealthBar
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 🚧
- Scale Main Hud health bar config
- Hp value on nameplates
- Improve UI composition
- 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)
- 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)
| Mod Version | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|
| 0.0.6 | 108 | 6 hours ago | simpleentityhealthbar_0.0.6.zip | 1-click install | ||
|
- Scale Main Hud health bar config | ||||||
| 0.0.5 | 3797 | Sep 21st at 4:30 PM | simpleentityhealthbar_0.0.5.zip | 1-click install | ||
| ||||||
| 0.0.4 | 262 | Sep 20th at 1:59 PM | simpleentityhealthbar_0.0.4.zip | 1-click install | ||
| ||||||
| 0.0.3 | 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 | |
The new update killed itself upon interaction with a Primitive survival mob (snake)
The_Draconas try it out. Added just the current value so that it wouldn't be too big of a thing.
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.
would it be possible to add the numbers to the floating style bar like the hud style has?
FawkesPC C:\Users\UserNameHere\AppData\Roaming\VintagestoryData\ModConfig\SimpleEntityHealthbar.json
{
"ShowHudHealthBar": false,
"ShowNameplates": true,
"MaxTargetDistance": 15
}
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 ^^'
Distorti0N yeah, i'll try to make it work next time i get some time.
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
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.
Used it on my server it did not load and didn't give the option to download it from the server
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.
Wouldn't end-user adjustable range be a solution? Let the player decide how much breaks their own immersion or not.
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.
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.
Wickidspliff try disable and enable the block info again through the settings.
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?
Oh_Snap currently i'm ensuring that the basic functionality works with little to no side effects. I will definetly work on allowing customization :)
Any way to resize the healthbar?
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.
The tooltip no longer appears for me when there is no healthbar visible
yesss, I've been wishing for a health bar like this