Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/provismet/provihealth
Adds sleek and expansive healthbars to Minecraft.
https://github.com/provismet/provihealth
fabric fabricmc healthbar minecraft
Last synced: 3 months ago
JSON representation
Adds sleek and expansive healthbars to Minecraft.
- Host: GitHub
- URL: https://github.com/provismet/provihealth
- Owner: Provismet
- License: other
- Created: 2023-11-26T02:46:37.000Z (about 1 year ago)
- Default Branch: 1.21
- Last Pushed: 2024-09-07T20:18:35.000Z (5 months ago)
- Last Synced: 2024-09-07T21:29:46.002Z (5 months ago)
- Topics: fabric, fabricmc, healthbar, minecraft
- Language: Java
- Homepage: https://modrinth.com/mod/provis-health-bars
- Size: 293 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Provi's Health Bars
[![](https://img.shields.io/jitpack/version/com.github.Provismet/ProviHealth?style=flat-square&logo=jitpack&color=F6F6F6)](https://jitpack.io/#Provismet/ProviHealth) [![](https://img.shields.io/modrinth/dt/4wDQsby8?style=flat-square&logo=modrinth&color=F6F6F6)](https://modrinth.com/mod/provis-health-bars) [![](https://img.shields.io/curseforge/dt/945133?style=flat-square&logo=curseforge&color=F6F6F6)](https://www.curseforge.com/minecraft/mc-mods/provihealth)Adds health bar damage indicators to Minecraft.
Provi's Health Bars adds both a HUD health bar for your current target and in-world health bars for all mobs. The behaviour of both can be customised extensively in the settings menu.
The HUD health bar changes appearance based on the Entity Group of the mob you're targetting. Other mods can use the API entrypoint of this one to add additional HUD portraits and icons for custom Entity Groups, or even specific mobs.
## Dependencies
To access the settings menu you will need:
- [Mod Menu](https://github.com/TerraformersMC/ModMenu)
- [Cloth Config](https://github.com/shedaniel/cloth-config)## Dependency and API
This mod can be used as a dependency via [Jitpack](https://jitpack.io/#Provismet/ProviHealth).Example entrypoint usage:
This entrypoint initialiser is what the mod uses to set its own values for vanilla entity tags.
```java
public class SelfApiHook implements ProviHealthApi {
@Override
public void onInitialize () {
this.registerIcon(EntityTypeTags.AQUATIC, Items.COD, DEFAULT_PRIORITY + 1);
this.registerIcon(EntityTypeTags.ARTHROPOD, Items.COBWEB, DEFAULT_PRIORITY + 2);
this.registerIcon(EntityTypeTags.ILLAGER, Items.IRON_AXE, DEFAULT_PRIORITY);
this.registerIcon(EntityTypeTags.UNDEAD, Items.ROTTEN_FLESH, DEFAULT_PRIORITY + 3);this.registerPortrait(EntityTypeTags.AQUATIC, ProviHealthClient.identifier("textures/gui/healthbars/aquatic.png"), DEFAULT_PRIORITY + 1);
this.registerPortrait(EntityTypeTags.ARTHROPOD, ProviHealthClient.identifier("textures/gui/healthbars/arthropod.png"), DEFAULT_PRIORITY + 2);
this.registerPortrait(EntityTypeTags.ILLAGER, ProviHealthClient.identifier("textures/gui/healthbars/illager.png"), DEFAULT_PRIORITY);
this.registerPortrait(EntityTypeTags.UNDEAD, ProviHealthClient.identifier("textures/gui/healthbars/undead.png"), DEFAULT_PRIORITY + 3);
}
}
```Register your entrypoint:
```json
"entrypoints": {
"provihealth": ["path.to.your.class"]
}
```## Official Downloads
- Github (here)
- [Modrinth](https://modrinth.com/mod/provis-health-bars)
- [CurseForge](https://www.curseforge.com/minecraft/mc-mods/provihealth)