跳到正文

HealthBars NameTag Fix

Client-side fix that restores permanent nametags hidden by HealthBars.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

HealthBars NameTag Fix

A tiny client-side compatibility patch for HealthBars that restores permanent name tags for any entity that’s supposed to always show its name — for example MineColonies citizens and visitors.

The Problem

HealthBars lets you hide its health bar / name overlay for certain entities via no_health_bar_mobs, hide_at_full_health, or by disabling its rendering entirely. When it steps back for an entity like that, it does not hand rendering back to vanilla the way you’d expect — entities that rely on a persistent nametag (Entity#isCustomNameVisible(), e.g. MineColonies citizens with the alwaysRenderNameTag server option, or mobs with a name tag item that forces the name to always show) lose their permanent name tag and only show their name while directly aimed at.

The Fix

This mod hooks into the entity render loop client-side and manually draws the vanilla name tag for any entity with a persistent nametag flag — but only in the exact cases where HealthBars itself isn’t already rendering something for that entity (rendering disabled, entity excluded via no_health_bar_mobs, or hidden via hide_at_full_health). It never draws on top of HealthBars’ own overlay and never double-renders when you’re aiming directly at the entity, so there’s zero visual conflict. It’s not tied to any specific mod — it works for MineColonies, or any other mod/entity that sets a permanent nametag.

Requirements

Client-side only. Safe to leave out of the server pack.

Known Limitations

  • Reads a few small public fields/methods from HealthBars’ client config via reflection (not part of any official API), so a future HealthBars update could in theory change or remove them. If that happens the mod will simply stop having an effect rather than crash your game.

License

MIT — do whatever you want with it.

常见问题

HealthBars NameTag Fix 支持哪些 Minecraft 版本?

HealthBars NameTag Fix 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

HealthBars NameTag Fix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Drehverschluss 的其他作品

查看全部 →