promotional bannermobile promotional banner
premium banner
Simple Clean HealthBars for any mob.

Description

# Mob Health Bar Mod

A client-side Minecraft mod for Fabric 1.21.4 that displays health bars above mobs when you look at them or get close to them.

## Features

- 🎯 **Smart Targeting**: Shows health bars when looking at mobs or when they're nearby
- πŸ’š **Dynamic Health Bars**: Color-coded health bars (green → yellow → red based on health percentage)
- πŸ“ **Mob Information**: Displays mob name and current/max health
- 🎨 **Smooth Animations**: Health bars animate smoothly when mobs take damage or heal
- πŸ‘οΈ **Line of Sight**: Optional line-of-sight checking (won't show through walls)
- 🎭 **Fade Effects**: Smooth fade in/out animations
- πŸš€ **Performance Optimized**: Limits number of visible health bars for smooth gameplay

## Installation

1. Make sure you have **Minecraft 1.21.4** and **Fabric Loader** installed
2. Download and install **Fabric API** from [Modrinth](https://modrinth.com/mod/fabric-api) or [CurseForge](https://www.curseforge.com/minecraft/mc-mods/fabric-api)
4. Place the `.jar` file into your `mods` folder
5. Launch Minecraft with the Fabric profile


## Usage

 **Looking at Mobs**: Point your crosshair at any mob to see its health bar

## Supported Mobs

- βœ… All hostile mobs (zombies, skeletons, creepers, etc.)
- βœ… All passive animals (cows, pigs, sheep, etc.)
- βœ… All neutral mobs (wolves, iron golems, etc.)
- ❌ Players (health bars are not shown for other players)

## Compatibility

- **Minecraft Version**: 1.21.4
- **Mod Loader**: Fabric
- **Side**: Client-side only
- **Dependencies**: Fabric API

## Technical Details

- Uses Fabric's WorldRenderEvents for efficient rendering
- Implements smooth animations using interpolation
- Raycast-based line of sight checking
- Concurrent data structures for thread safety
- Optimized rendering with distance-based scaling


## License

This project is licensed under the MIT License.