Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
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.


