Sakura Lava Vision
在岩浆中也能看清一切。 不再有橙色的视觉遮蔽,无需猜测岸边在哪里——在水面下拥有完整的视野距离。
本模组仅适用于客户端。它可以在单人游戏以及你加入的任何服务器中使用,即使服务器端未安装该模组也能正常工作。它只会改变你自己客户端的雾气渲染方式。
它不会让你免疫岩浆伤害。你仍然会像以前一样被灼烧并受到伤害——只有视觉效果发生了变化。
为什么其他可见性模组不起作用
我在现代版本上测试过的所有现有选项都因为以下两个原因之一而失败。
它们无声地依赖于你的头盔。 Tweakeroo 的 tweakLavaVisibility 看起来是正确的,其 mixin 也确实针对了正确的方法。但是,距离计算首先读取你的头部槽位,如果该槽位为空,则返回未修改的雾气距离。它是为了配合呼吸附魔(Respiration)进行缩放的,就像水下可见度一样。如果没有佩戴头盔,这个调整完全无效——而且由于其配置使用了 defaultRequire: 0,它永远不会告诉你这一情况。
光影会覆盖它们。 任何仅扩展原版 FogData 的模组,一旦你在 Iris 中启用光影包,就会被覆盖,因为光影会在上方绘制自己的岩浆雾气。
本模组从设计上就避免了这两个问题。没有装备或附魔要求,并且它挂钩了光影也从中读取的那个位置。
安装方法
- 为 Minecraft 26.2 安装 Fabric Loader
- 将 Fabric API 放入你的
mods 文件夹
- 将此模组放入你的
mods 文件夹
开箱即用。无需配置。
配置
首次启动时,会在 config/lavavision.json 生成一个配置文件。
| 选项 |
默认值 |
描述 |
enabled |
true |
总开关 |
mode |
FULL |
FULL = 完全清晰的视野,兼容光影。FOG_ONLY = 仅扩展雾距并保持橙色色调 |
fogDistance |
0.0 |
仅限 FOG_ONLY。直到雾气结束为止的方块数。0 = 使用你的渲染距离 |
hideFireOverlay |
true |
隐藏身处岩浆时覆盖屏幕的火焰效果。在干燥地面上被灼烧的效果仍保持正常 |
showToggleMessage |
true |
使用切换键时在动作栏显示提示 |
有一个切换键,默认未绑定,因此绝不会与 MaLiLib、Tweakeroo 或 MiniHUD 冲突。你可以在 选项 → 控制设置 → 杂项 → “切换岩浆视觉” 中为其绑定按键。
工作原理
与其与雾气数值对抗,不如直接定位决定 submerged rendering(浸没式渲染)的唯一关键点:Camera.getFluidInCamera(),当你的眼睛处于表面之下时,它会报告 LAVA。一个 mixin 使其改为报告 NONE,后续所有逻辑随之改变:
FogRenderer 停止选择岩浆雾气环境,回退到正常的大气雾气——没有橙色色调,视野距离完整。
- Iris 根据该方法构建其
isEyeInWater 着色器统一变量(uniform),因此光影包也不再应用其自身的岩浆雾气。
整个游戏中只有三个类引用了该方法,且这三个类都是纯粹的渲染代码。没有任何游戏逻辑依赖于此,这也是为什么伤害和灼烧效果不受影响的原因。
mixin 配置故意使用了 defaultRequire: 1。如果未来的 Minecraft 更新移动了任何目标方法,模组将在启动时 loudly fail(报错退出),而不是加载后悄无声息地什么都不做——这正是导致废弃模组看起来仍在工作的故障模式。
兼容性
已与 Sodium、Iris、MaLiLib、MiniHUD、Tweakeroo 和 WorldEditCUI 一起构建和测试。不需要移除任何其他模组。
源代码、完整技术说明和构建指南请参见 GitHub。
采用 MIT 许可证。
Sakura Lava Vision
See clearly while submerged in lava. No orange blindness, no guessing where the shore is — just full view distance underneath the surface.
This mod is client-side only. It works in singleplayer and on any server you join, without the server having it installed. It only changes how your own client draws fog.
It does not make you immune to lava. You still burn and take damage exactly as before — only what you see changes.
Why other lava-visibility mods don't work
Every existing option I tested on modern versions fails for one of two reasons.
They silently depend on your helmet. Tweakeroo's tweakLavaVisibility looks correct, and its mixin does target the right method. But the distance calculation starts by reading your head slot, and if that slot is empty it returns the fog distance completely unmodified. It was built to scale with Respiration, like underwater visibility. With no helmet on, the tweak does nothing at all — and because its config uses defaultRequire: 0, it would never tell you.
Shaders override them. Any mod that only widens vanilla's FogData gets overruled the moment you enable a shaderpack in Iris, because the shader draws its own lava fog on top.
This mod avoids both problems by design. There are no equipment or enchantment requirements, and it hooks the one place shaders also read from.
Installation
- Install Fabric Loader for Minecraft 26.2
- Put Fabric API in your
mods folder
- Put this mod in your
mods folder
Enabled out of the box. No configuration required.
Configuration
A config file is generated at config/lavavision.json on first launch.
| Option |
Default |
Description |
enabled |
true |
Master switch |
mode |
FULL |
FULL = completely clear view, shader-compatible. FOG_ONLY = only widens the fog and keeps the orange tint |
fogDistance |
0.0 |
FOG_ONLY only. Blocks until fog ends. 0 = use your render distance |
hideFireOverlay |
true |
Hides the flames covering your screen while inside lava. Burning on dry land still looks normal |
showToggleMessage |
true |
Action bar notice when using the toggle key |
There is a toggle key, unbound by default so it never clashes with MaLiLib, Tweakeroo or MiniHUD. You can bind it under Options → Controls → Miscellaneous → "Toggle lava vision".
How it works
Rather than fighting fog values, the mod targets the single point where submerged rendering is decided: Camera.getFluidInCamera(), which reports LAVA when your eyes are under the surface. A mixin makes it report NONE instead, and everything downstream follows:
FogRenderer stops selecting the lava fog environment and falls back to normal atmospheric fog — no orange tint, full view distance.
- Iris builds its
isEyeInWater shader uniform from that exact method, so shaderpacks stop applying their own lava fog too.
Only three classes in the entire game reference that method, and all three are pure rendering code. No gameplay logic depends on it, which is why damage and burning are untouched.
The mixin config uses defaultRequire: 1 on purpose. If a future Minecraft update moves any of the targeted methods, the mod fails loudly at startup instead of loading and quietly doing nothing — which is exactly the failure mode that makes abandoned mods look like they still work.
Compatibility
Built and tested alongside Sodium, Iris, MaLiLib, MiniHUD, Tweakeroo and WorldEditCUI. Nothing else needs to be removed.
Source code, the full technical write-up and build instructions are on GitHub.
Licensed MIT.
评论 0
登录后参与评分
还没有评论,来抢沙发吧