Shadow Tweaks
Entity shadows under your control: size, opacity, distance and colour, per category.
Download 1.2.0
- Side
- Client only
- Requires
- Minecraft 1.21.11
- Fabric Loader 0.20.1 or newer
- YetAnotherConfigLib
- Optional
- Mod Menu
- LumiLib
- License
- Apache 2.0
Client-side control over entity shadows: size, opacity, render distance, and which kinds of entity get one at all. Every setting applies instantly, and every default matches vanilla exactly.
What a toggle cannot do
Most performance mods give you a single on/off switch for entity shadows. This gives you the dial instead, and two things no toggle can do.
Shadows by entity category. Keep shadows on players so you can read positioning in a fight, and drop them for the floor full of items and experience orbs. Five categories: players, hostile mobs, passive mobs, items and XP orbs, everything else.
Render distance. Vanilla fades every shadow out at 16 blocks, and that limit is written into the code:
float alpha = (float)((1.0 - state.squaredDistanceToCamera / 256.0)
* (double) this.getShadowOpacity(state));
256 is 16 squared. Past that, alpha is zero and the shadow is gone, however clear your view is. Shadow Tweaks replaces the constant, so distant mobs keep their shadow out to 64 blocks if you want them to.
Features
- Shadow size, 0.00 to 3.00. At 0.00 the whole shadow calculation is skipped, so it costs less than vanilla.
- Opacity — fade shadows down without removing them
- Render distance, 4 to 64 blocks. Vanilla is 16.
- Per-category visibility, five independent switches
If nothing seems to happen
Minecraft has its own Entity Shadows switch in the video settings, and Sodium Extra exposes the same one. Vanilla checks it before any shadow is calculated, so with it off, Shadow Tweaks does nothing by design. The config screen tells you when it detects this.
Compatibility
Every hook uses MixinExtras’ stackable injectors. There is not a single exclusive injector in this mod, so other mods touching the same calls can coexist instead of one of them failing to load.
All three hooks sit in one vanilla method, EntityRenderer.updateShadow, at
the point where radius and opacity have already been resolved
polymorphically. Entities whose renderer overrides those methods — slimes,
striders, turtles, villagers, and anything a third-party mod brings along —
are covered too.