Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
BuildingHealthDisplay
Building health bar. Also optionally lets you show integrity and use custom integrity colours.
| Date uploaded | 4 years ago |
| Version | 0.4.0 |
| Download link | cjayride-BuildingHealthDisplay-0.4.0.zip |
| Downloads | 2378 |
| Dependency string | cjayride-BuildingHealthDisplay-0.4.0 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2350README
Uploading this open source mod from Nexus Mods because it's not on Thunderstore yet.
Developer: aedenthorn
Original mod link: https://www.nexusmods.com/valheim/mods/793
Building health display
This is a small quality-of-life mod that lets you tweak the little bar that shows how much health a building piece has.
- Lets you optionally set colours for low, mid, and high remaining health, with smooth blending from one colour to another (default red, yellow, and green)
- Lets you optionally hide the health bar.
- Lets you optionally show custom health text with the health bar (default shows current / max (percent))
- Lets you optionally show piece structural integrity (default shows current / max (percent))
- Lets you optionally set colours for low, mid, and high piece integrity, with smooth blending from one colour to another (default red, yellow, and green)
The health and integrity texts are in the format {0}/{1} ({2}) just as an example to show all three showable values. You can customize this as you like. {0} is replaced by current value. {1} is replaced by max value. {2} is replaced by percentage value.
Config
A config file BepInEx/config/aedenthorn.BuildingHealthDisplay.cfg is created after running the game once with this mod).
You can adjust the config values by editing this file using a text editor or in-game using the Config Manager.
To reload the config from the config file, type buildinghealthdisplay reset into the game's console (F5).
Github
https://github.com/aedenthorn/ValheimMods/tree/master/BuildingHealthDisplay
CHANGELOG
v0.8.1
- Re-upload to tag for Deep North Update on Thunderstore
v0.8.0
- Updated for Valheim 1.0 (Unity 6)
- Rebuilt against the live 1.0 client (Unity 6000.0.75f1)
- Piece health now reads
ZDOVars.s_healthinstead of the string ZDO key - Call
WearNTear.GetSupport/GetMaxSupportvia Harmony Traverse (those methods are still private) - Harmony patch targets
Hud.UpdateCrosshair(Player, float)by name; extra HUD children are null-checked - Build against the game's Managed Unity assemblies (Unity 6 dropped
unstripped_corlib/TextCoreModule) - BepInEx dependency updated to denikson-BepInExPack_Valheim-5.4.2350
- Piece highlight / custom integrity colours remain disabled (same as 0.7.1)
v0.7.1
- Commented out piece highlighting until a fix can be provided. Health bar and text still work.
v0.7.0
- Removed terminal reload
- Added compatibility for v0.217.46
0.6.2
- Fixed potential issue with missing assembly file
0.6.1
- Changed config file name to cjayride.BuildingHealthDisplay.cfg
0.6.0
- 2 changes (commits) by "Aedenthorn" on Aug 24, 2023 and Oct 6, 2023
0.4.1
- Verified works on Mistlands update
- Changed config file name to cjayride.BuildingHealthDisplay.cfg
- Changed default value of ShowIntegrityText = false