Simple MobHealthBars
A client-side mod for Minecraft Fabric 1.21.4 that displays health indicators above mobs when you target them or approach them.
Key Features
The intelligent detection system shows health bars when looking at creatures or when they are nearby. Indicators dynamically change color from green to yellow and red depending on the current health level. The mob name and exact values of current and maximum health are displayed.
Smooth animations make health changes visually pleasing - bars gradually decrease when taking damage and increase when healing. An additional line-of-sight check feature prevents indicators from showing through walls and other obstacles.
Smooth fade-in and fade-out effects make the interface more natural. The mod is optimized for performance - limits the number of simultaneously displayed indicators to ensure smooth gameplay even with large mob gatherings.
Supported Mobs
Health indicators work with all hostile mobs (zombies, skeletons, creepers), peaceful animals (cows, pigs, sheep) and neutral creatures (wolves, iron golems). Health bars are not displayed for other players.
Technical Features
Uses Fabric's WorldRenderEvents system for efficient rendering. Smooth animations are implemented through interpolation, line-of-sight checking based on raycasting, thread-safe data structures, and optimized rendering with distance-based scaling.