跳到正文

Shadow Nametag Fix

Removes the duplicate "ghost" nametag that shaders draw, by skipping nametag rendering during Iris's shadow pass. Works with any shaderpack and keeps your shadow.

收藏

截图

介绍

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

Shadow Nametag Fix

Ever seen a rotated, duplicated nametag floating in the air when playing with shaders? This tiny client-side mod removes it.

The problem

With Iris shaders (Complementary Reimagined, Euphoria Patches, BSL, and many others), the game renders entities — including their nametags — during the shadow pass, from the sun’s point of view. Effects like light shafts then project that shadow buffer back onto your screen, dragging the nametag along as a rotated “ghost” copy next to the real one.

The common workaround is to disable the player shadow (PLAYER_SHADOW=-1) in each shaderpack’s settings — but that has to be redone for every pack and every update, and you lose your shadow.

What this mod does

Shadow Nametag Fix simply skips nametag rendering while Iris is drawing the shadow pass. The nametag never enters the shadow buffer, so there’s nothing to project — the ghost is gone.

  • ✅ Works with any shaderpack — no per-pack settings to maintain
  • ✅ Survives shaderpack switches and updates
  • ✅ Keeps your shadow — only the nametag is skipped, not the player
  • ✅ Does nothing when shaders are off — fully vanilla behavior
  • ✅ Lightweight: a single Mixin, no config, no extra dependencies

Compatibility

  • Minecraft: 1.20.1
  • Loader: Fabric
  • Iris: optional. The mod finds Iris by reflection, so it doesn’t require Iris to be installed and won’t break if Iris updates.
  • Client-side only — not needed on the server.

How it works (technical)

A Mixin injects into EntityRenderer#renderLabelIfPresent and cancels it whenever ShadowRenderingState.areShadowsCurrentlyBeingRendered() reports the shadow pass is active. Iris is accessed reflectively, so there’s no hard compile-time dependency.

License

MIT — do whatever you like, including bundling it in modpacks.

常见问题

Shadow Nametag Fix 支持哪些 Minecraft 版本?

Shadow Nametag Fix 支持 Minecraft Java 版 1.20.1–1.20.6,共 6 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Shadow Nametag Fix 怎么安装?

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

评论

登录后评论和评分

TheSilentD3ath 的其他作品

查看全部 →