Community listing page, reviews here may not be monitored by the author.
Entity Health Display
No reviews yet
Fabric server-side library mod for displaying entities' health.
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the server. Also works in singleplayer.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
About
Entity Health Display is a fabric server-side library for displaying entities' health.
Installing
To use Entity Health Display in your project add the Modrinth repository to your build file and a mod dependency. Replace the VERSION_TAG with the latest version, for example 0.3.1+1.20.2
repositories {
maven {
url "https://api.modrinth.com/maven"
content { includeGroup "maven.modrinth" }
}
maven { url "https://maven.nucleoid.xyz" }
}
dependencies {
modImplementation include("maven.modrinth:entity-health-display:VERSION_TAG")
modImplementation include("eu.pb4:placeholder-api:${project.placeholder_api}")
modImplementation include("eu.pb4:polymer-virtual-entity:${project.polymer_version}")
}
Example
HealthDisplayEvents.FORMAT_HEALTH_DISPLAY.register((entity, world) -> {
String color = (entity.getMaxHealth() / 2) >= entity.getHealth() ? "<yellow>" : "<green>";
var text = TextParserUtils.formatText("<red>" + entity.getName().getString() + " " + color + String.format("%.1f", entity.getHealth()) + "<white>/<green>" + (int)entity.getMaxHealth() + "<red>❤");
return text;
});
HealthDisplayEvents.SHOULD_DISPLAY_HEALTH.register((entity, world) -> {
return true;
});
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
(opens in a new tab)
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers