I See Your Chunks
I See Your Chunks 能够在远超渲染距离的远处,渲染出站在真实地形上的玩家。与在世界边缘悬浮在空荡空间中的玩家模型不同,服务器会流式传输该玩家所在的区块,客户端则将其作为实际几何体进行绘制——包含真实的遮挡、实时的方块更新以及针对你 LOD 地形的正确深度处理。
⚠️ 客户端需要 Voxy。 Voxy 负责渲染流式传输的地形。如果没有它,客户端虽然仍会显示远处的玩家和生物,但它们将悬浮在地面之上。专用服务器不需要 Voxy(它是一个仅客户端模组)。详见工作原理。
✨ 功能特性
核心功能
- ? 真实地形,而非幻影: 远处的玩家会在其占据的实际区块上渲染,而不是悬浮在虚空中
- ? 零生成开销: 仅流式传输服务器上已加载的区块——不会生成、加载或刻新内容
- ? 实时方块更新: 当流式传输区块中的方块发生变化时,服务器会重新发送整个区块,客户端也会重新接收,从而使远处的地形就地更新:火把、熔岩和建筑都会实时更新。在 1.20.1 中,由于其服务器也会发送其自身视距内的所有区块,超出你渲染距离的那一圈编辑会在到达的同一刻被推送到 Voxy
- ♾️ 远超渲染球体: 通过将流式传输的列作为额外的渲染根注入,地形可以在 Voxy 自身的渲染球体之外广泛渲染——中间的空白圆盘没有额外开销。Voxy 的投影远平面从其硬编码的 48,000 向外扩展,远处的玩家保持相同的可达范围,因此被观察的玩家及其脚下的地面始终贴合在一起。该可达范围会随可见度滑块实时跟踪——在滑块最大值下可达 1,024,000 格——因此提高滑块会立即扩展地形和玩家的可见范围,无需重连。1,024,000 的上限是一个刻意为之的“绰绰有余”的封顶值,而非技术限制(反向 Z 深度意味着它可以以极低的成本继续延伸)
- ? 真实光照: 远处地形由区块数据包中的实际方块光 + 天空光照明,因此火把和熔岩会发光,阴影也会正确投射,而不是使用扁平的近似值
- ? 正确的遮挡: 由于地形在客户端端确实存在,位于山后的玩家会被真正隐藏——无需猜测部分遮挡
- ? 选择加入握手: 客户端声明自身;服务器只向请求过的客户端发送数据
高级功能
- ?️ 共享地面上的生物: 围绕被观察玩家流式传输的地形中栖息的生物也会显示出来,站在同样的真实地面上——绝不会孤立悬浮
- ? 坐骑随行: 无论被观察玩家骑乘的是什么,都会与他们一同显示——船、马、坐骑的坐骑——即使在地形为零的情况下,这样就不会有人坐在虚空中
- ?️ 可调节的地形覆盖范围: 一个滑块用于选择每个被观察玩家周围有多少个区块,从最近的区块开始向外增长至一定半径,上限为服务器的渲染距离
- ?️ 隐身感知: 观察者、隐形状态和消失状态的玩家(melius-vanish)会在任何带宽消耗之前在服务端进行过滤
- ? 带宽受限: 对每位观看者流式传输的区块数量有硬性上限,覆盖范围和更新间隔均可配置
- ? 优雅降级: 模组服务器上的原版客户端,或原版服务器上的模组客户端——两者都会回退到纯原版行为
⚙️ 工作原理
该模组在网络边界处清晰划分:
- 客户端 → 服务器(握手): 加入时,客户端发送它希望揭示远处玩家的距离,以及希望每个玩家周围有多少个区块的地形。服务器回复确认——包括其自身的渲染距离和是否开启流式传输——以便客户端使其滑块和区块存储与现实同步。原版客户端从不发送握手,也不会收到任何数据。
- 服务器(流式传输): 每个刻间隔,服务器找出在该距离内可揭示的玩家,并发送靠近每个玩家最近的区块——从他们站立的区块开始(默认 3×3),按最近优先原则向外增长,上限为服务器的渲染距离——再加上该补丁周围的一个单区块邻居光环。仅发送已存在的区块,且仅发送原版尚未发送给该观看者的区块。站在可见区域(而非光环)的生物会与地形一同揭示。
- 客户端(接受): 客户端的区块缓存存储半径扩大,以便接受这些超出范围的区块,而不是丢弃它们。
- 客户端(移交 Voxy): 每个流式传输的远处区块在到达时直接转换为 Voxy 的 LOD 存储——使用区块数据包中的实际方块光 + 天空光——并通过 Voxy 自己的远渲染器进行绘制,与其 LOD 正确地进行深度排序。超出 Voxy 渲染球体的列还会额外注入为额外的渲染根,以便在任何距离下绘制而不膨胀球体。
- 实时更新: 当流式传输区块中的方块发生变化时,服务器将该区块(仅其正在主动流式传输的区块)标记为脏并在下一个间隔重新发送整个区块;客户端重新接收它,Voxy 重新网格化该列,从而在不重连的情况下显示远处的编辑。
为什么客户端需要 Voxy: 流式加载的区块位于 Sodium 渲染距离之外,因此 Sodium 不会将它们编译为网格。Voxy 才是真正将这些地形显示在屏幕上的模组——如果没有它,该模组的地形部分将完全无效,远处的玩家会漂浮在虚空中。因此出于此原因,Voxy 是客户端所必需的,但仅限客户端:专用服务器负责流式传输而从不进行渲染,因此它既不需要也无法加载 Voxy(这是一个仅客户端的模组)。如果缺少 Voxy,客户端日志会记录一条醒目的警告。
为什么存在邻居光晕: Voxy 的 LOD 网格生成器在构建时会读取每个区块的邻居区块,因此如果一个区块的邻居尚未流式加载,则该区块无法生成网格并保持不可见——这将导致只有任何地块的内部部分被渲染。在请求的地块周围额外流式加载一圈区块,可以为每个可见区块提供其邻居;光晕本身永远不会被绘制,也永远不会暴露生物。
? 安装
将 JAR 文件安装在服务器和客户端上。服务器负责追踪和流式传输;客户端移除渲染限制。
必需项(两端都需要)
- Fabric Loader 0.16.12+
- Fabric API
- Java: 26.x 版本需 Java 25,1.21.1 和 1.20.1 版本需 Java 21(模组本身针对 1.20.1 使用 Java 17,但其所需的 Voxy 分支是基于 Java 21 构建的)
客户端必需项
- Voxy: 绘制流式加载的远处地形(仅客户端模组;专用服务器不需要也不想要它)。请使用适用于您 Minecraft 版本的构建:
可选项
?️ 配置
设置位于 config/i-see-your-chunks.json,可以通过 Mod Menu 在游戏中编辑。
| 选项 |
描述 |
默认值 |
enabled |
总开关 — 如果为 false 则完全禁用模组 |
true |
renderRemotePlayers |
渲染远处的玩家(并流式加载他们的区块) |
true |
renderRemoteEntities |
渲染位于流式加载地形中的远处生物 |
true |
visibilityDistanceBlocks |
远处玩家可见的范围(渲染最远可达 1,024,000 个方块) |
Maximum |
chunkRenderCount |
围绕每个被查看玩家的 terrain 区块数(0 = 无,按由近及远顺序) |
9 (3×3) |
streamFarChunks |
服务器端:流式加载已揭示玩家周围的地形 |
true |
sendSpectators |
服务器端:揭示处于旁观者模式的玩家 |
false |
updateIntervalTicks |
服务器端:流式传输循环之间的刻数间隔(1–40) |
5 |
注意: streamFarChunks、sendSpectators 和 updateIntervalTicks 仅在运行服务器逻辑的机器上生效。其余选项均为客户端侧。当 chunkRenderCount = 0 时不发送任何地形,因此只有被查看的玩家——以及他们骑乘的任何实体——会出现;游离的生物仅在它们可以站立的流式加载地面上显示。
更改配置会立即重新发送握手信息,因此流式传输会在无需重新连接的情况下进行调整。
?️ 雾效
远处的玩家和生物所受到的雾效处理与其站立的地形完全相同,因此远处的玩家会与脚下的地面融入迷雾中,而不是突兀地显现出来。该模组本身从不改变 Voxy 的雾效;你能看到的范围由 Voxy 的雾效设置决定。
- Minecraft 26.2 (Voxy 0.2.19) 和 26.1.2 (Voxy 0.2.18): Voxy 在固定距离之外限制其地形雾效,因此远处地形保持部分迷雾,且远处的玩家在任意距离下都保持可见。
- Minecraft 1.21.1 和 1.20.1 (Voxy 分支): 这些分支共享相同的雾效。分支会在
section_render_distance × 512 个方块处(默认值为 16,即 8,192)将其地形完全褪色为雾的颜色。超过该距离后,地形和玩家都呈现纯雾的颜色。要看得更远,请在 Voxy 的设置中降低 Fog Intensity 或关闭 Environmental Fog。两者同时作用于地形和玩家。
- Iris 光影包 自行控制雾效,因此应用光影包中的雾效。
- 在 1.21.1 中,发光 的玩家以不受雾效影响的方式绘制,以便其轮廓仍然可见。
✅ 兼容性
| Mod |
状态 |
备注 |
| Voxy |
客户端必需 |
渲染流式加载的远处地形;客户端必需,专用服务器不需要 |
| Sodium |
完全兼容 |
不与 Sodium 内部代码耦合——更新时不会出错 |
| Iris / shaders |
完全兼容 |
流式加载的区块是普通地形,因此光影正常处理它们 |
| melius-vanish |
完全兼容 |
消失的玩家永远不会被揭示(反射桥接,失败时开放) |
| C2ME |
兼容 |
更快的生成速度不会改变流式传输的内容——仅发送已加载的区块 |
? 技术细节
该模组在这些点注入:
ChunkMap$TrackedEntity.updatePlayer() — 解除追踪距离上限和区块要求:对玩家及其乘坐的生物(包括坐骑链)无条件生效,对普通生物仅在它位于该玩家实际渲染的区块内时生效(即可见区域,而非外围光环区)
ChunkMap.tick() — 定期根据每位玩家重新评估受管实体,因为随着远处玩家周围的流式区域滑过或移开,生物的可见性会发生变化
ChunkHolder.broadcast() — 当已流式处理的远端区块发生变化时将其标记为脏数据,以便流式处理器在下一次间隔时重新发送整个区块(仅跟踪正在主动流式的区块;使用全量重发是因为客户端无法将增量差异应用到从未缓存过的越界区块中)
ClientChunkCache.<init> 以及 updateViewRadius() — 扩大客户端存储半径,以防止已流式处理的区块被拒绝为越界(两者均为必需项:半径通常在登录数据包中到达,此时 updateViewRadius 尚未触发)
ClientChunkCache.replaceWithPacketData() — 将每个到达的远端区块直接转换为 Voxy 的 LOD 存储,并提供我们自己的光照。Voxy 正常的摄入流程读取的是 客户端 光照引擎,而该引擎永远不会在渲染距离之外点亮区块(因此它会静默地写入空值);此处改为通过 Voxy 自身的转换管道运行,从区块数据包中捕获真实光照。超出客户端存储半径的区块(即数千方块外的查看者所在区块)会在解码前被原版逻辑拒绝;这些区块会从完整的数据包缓冲区中重新解码为一个临时区块并直接摄入,从而使得任意距离的地形都能渲染,且无需将其保留在缓存中
ClientChunkCache.replaceWithPacketData() / drop()(实体tick处理):将存储半径之外的已流式处理区块标记为进行实体 tick,并在服务器遗忘它们时取消标记。客户端仅对其已存储的区块中的实体执行 tick,且位置更新仅在实体自身的 tick 时生效,因此如果没有此机制,远处玩家周围的生物(及坐骑)将会原地冻结
ClientPacketListener.handleLevelChunkWithLight() — 捕获区块数据包中的真实方块光照 + 天空光照,以便上述摄入流程能将其传递给 Voxy(否则原版会丢弃越界区块的光照数据)
LevelRenderer.isSectionCompiledAndVisible()(1.21.1 版本为 isSectionCompiled(),1.20.1 版本为 isChunkCompiled()):允许实体在一个 Sodium 从未编译的区块部分中渲染,因为 Voxy 正在绘制该地面
ClientLevel.setBlocksDirty()(仅限 1.20.1):当某个区块处于缓存状态但超出 Sodium 的渲染距离时,在该 tick 结束时将其重新摄入到 Voxy 中。1.20.1 版本的服务器无论客户端的渲染距离如何,都会发送其视野范围内的所有区块,而 Voxy 通常仅在区块卸载时才拾取此类区块的修改
EntityRenderDispatcher.shouldRender() / Entity.shouldRenderAtSqrDistance() — 尊重视锥体的距离限制覆盖
VoxyRenderSystem.computeProjectionMat() — 将 Voxy 硬编码的 48,000 方块投影近面提升至共享的远渲染边界,以防止注入的远端列在此处被裁剪(仅在 Voxy 存在时应用,由 mixin 配置插件控制)。该边界根据可见距离滑块实时计算(下限 48,000,上限 1,024,000),且该方法每帧运行,因此范围会立即跟随滑块变化;受管实体的远平面使用相同的边界,使地形及其上的玩家保持同步,并共同跟随滑块调整而无需重新连接
客户端与服务器握手(输入 ClientHelloPayload,返回 ServerAckPayload)携带偏好设置和服务器的实际限制;此处不依赖区块生成,因此与生成侧模组兼容。
地形范围。 在客户端存储半径内的区块(约 48 个区块)正常通过原版缓存。超出该范围后,它们被直接解码至 Voxy 的 LOD 中且永不缓存,因此任意远处玩家周围的地形仍可渲染——这受限于 Voxy 自身的紧凑 LOD 存储,而非持有的区块。超出 Voxy 渲染球体的列作为额外的渲染根节点注入,并对它们移除 Voxy 的距离剔除,使其一直绘制到 Voxy 的投影远平面——本模组将此远平面从 Voxy 硬编码的 48,000 提升了。该远平面根据可见距离滑块实时计算(滑块最大值处钳制于下限 48,000 和上限 1,024,000),并与受管实体的远平面共享,从而使地形及其上的玩家达到相同的距离,并共同跟随滑块调整而无需重新连接。选择 1,024,000 的上限仅仅是因为它对于任何实际用途来说都绰绰有余,并非因为技术上有什么东西阻止其超过该值——由于深度缓冲采用反向 Z 轴,将其推得更远几乎不会带来精度损失。光照使用来自每个区块数据包的真实方块 + 天空光照;如果某个区块从未附带光照数据,则回退基于高度图的天空近似模拟。
?️ 项目结构
common/ 各 MC 版本通用的代码(配置、网络、流式传输、共享 Mixin、客户端逻辑)
26.2/fabric/ MC 26.2 模块:特定版本的渲染 Mixin、GUI、平台辅助工具
26.1.2/fabric/ MC 26.1.2 模块
1.21.1/fabric/ MC 1.21.1 模块(Mojang 映射)
1.20.1/fabric/ MC 1.20.1 模块(Mojang 映射,Java 17 字节码)
? 构建
./gradlew clean build
每个 JAR 文件输出至 <version>/fabric/build/libs/。
? 许可证
本项目遵循 GNU Affero 通用公共许可证 v3.0 (AGPL-3.0)。
你拥有以下权利:
- ✅ 用于整合包
- ✅ 个人用途进行修改
- ✅ 分发修改后的版本(也必须采用 AGPL-3.0)
详见 LICENSE 文件以获取完整详情。
I See Your Chunks
I See Your Chunks renders distant players standing on real terrain, far past your render distance. Instead of a player model floating in empty space at the edge of the world, the server streams the chunks that player is standing in, and your client draws them as actual geometry — with real occlusion, live block updates, and correct depth against your LOD terrain.
⚠️ Clients need Voxy. Voxy is what renders the streamed terrain. Without it a client still shows distant players and mobs, but floating with no ground under them. Dedicated servers do not need Voxy (it's a client-only mod). See How It Works.
✨ Features
Core Functionality
- ? Real Terrain, Not Ghosts: Distant players are rendered on the actual chunks they occupy, not floating in the void
- ? Zero Generation Cost: Only chunks already loaded on the server are streamed — nothing new is generated, loaded, or ticked
- ? Live Block Updates: When a block changes in a streamed chunk the server re-sends that whole chunk and the client re-ingests it, so distant terrain updates in place: torches, lava, and builds all appear live. On 1.20.1, whose servers also send every chunk within their own view distance, edits in that ring beyond your render distance are pushed into Voxy the same tick they arrive
- ♾️ Far Past the Render Sphere: Terrain renders well beyond Voxy's own render sphere by injecting only the streamed columns as extra render roots — no cost for the empty disc in between. Voxy's projection far plane is pushed out from its hardcoded 48,000, and distant players are held to the same reach, so a viewed player and the ground under them always clip together. That reach tracks the visibility-distance slider live — up to 1,024,000 blocks at the slider's maximum — so raising the slider extends both terrain and players immediately, with no reconnect. The 1,024,000 ceiling is a deliberate "more than enough" cap, not a technical limit (reverse-Z depth means it could go further at no real cost)
- ? Real Lighting: Far terrain is lit from the chunk packet's actual block + sky light, so torches and lava glow and shadows fall correctly, instead of a flat approximation
- ? Correct Occlusion: Because the terrain is genuinely present client-side, a player behind a hill is actually hidden — no partial-occlusion guesswork
- ? Opt-In Handshake: Clients announce themselves; the server sends nothing to anyone who didn't ask
Advanced Features
- ?️ Mobs on Shared Ground: Mobs sitting in the terrain streamed around a viewed player are shown too, standing on that same real ground — never floating in isolation
- ? Mounts Ride Along: Whatever a viewed player is riding is always shown with them — the boat, the horse, the mount's mount — even at zero terrain, so nobody sits on thin air
- ?️ Adjustable Terrain Footprint: A slider picks how many chunks surround each viewed player, growing nearest-first from just their chunk out to a radius, capped at the server's render distance
- ?️ Vanish-Aware: Spectators, invisible, and vanished players (melius-vanish) are filtered server-side before any bandwidth is spent
- ? Bandwidth Bounded: Hard caps on streamed chunks per viewer, a configurable footprint, and a configurable update interval
- ? Degrades Gracefully: Vanilla client on a modded server, or modded client on a vanilla server — both fall back to plain vanilla behaviour
⚙️ How It Works
The mod is split cleanly across the network boundary:
- Client → Server (handshake): On join, the client sends how far out it wants distant players revealed and how many chunks of terrain it wants around each one. The server replies with an ack — its own render distance and whether streaming is on — so the client can keep its slider and chunk storage in step with reality. A vanilla client never sends the handshake and receives nothing.
- Server (streaming): Each tick interval, the server finds revealable players within that distance and sends the chunks nearest each one — grown nearest-first from the chunk they stand in (default 3×3), capped at the server's render distance — plus a one-chunk neighbour halo around that patch. Only already-resident chunks are sent, and only those vanilla hasn't already sent to that viewer. Mobs standing in the visible patch (not the halo) are revealed alongside the terrain.
- Client (acceptance): The client's chunk-cache storage radius is widened so those out-of-range chunks are accepted instead of dropped.
- Client (Voxy hand-off): Each streamed far chunk is converted straight into Voxy's LOD store as it arrives — using the real block + sky light from the chunk packet — and Voxy draws it through its own far renderer, correctly depth-sorted against its LODs. Columns beyond Voxy's render sphere are additionally injected as extra render roots so they draw at any distance without inflating the sphere.
- Live updates: When a block changes in a streamed chunk, the server marks that chunk (and only chunks it is actively streaming) dirty and re-sends the whole chunk on the next interval; the client re-ingests it and Voxy re-meshes that column, so distant edits appear without a reconnect.
Why Voxy (on clients): streamed chunks lie beyond Sodium's render distance, so Sodium never compiles them into meshes. Voxy is what actually puts that terrain on screen — without it, the terrain half of this mod does nothing and distant players float in the void. It is required on clients for that reason, but only there: a dedicated server does the streaming and never renders anything, so it neither needs nor can load Voxy (a client-only mod). The client logs a loud warning if Voxy is missing.
Why the neighbour halo: Voxy's LOD mesher reads each chunk's neighbours to build it, so a chunk with un-streamed neighbours can't mesh and stays invisible — which would leave only the inner part of any patch rendering. Streaming one extra ring around the requested patch gives every visible chunk its neighbours; the halo itself is never drawn and never reveals mobs.
? Installation
Install the JAR on both the server and the clients. The server does the tracking and streaming; the client removes the rendering limits.
Required (both sides)
- Fabric Loader 0.16.12+
- Fabric API
- Java: 25 on 26.x, 21 on 1.21.1 and 1.20.1 (the mod itself targets Java 17 on 1.20.1, but the Voxy fork it needs is built for Java 21)
Required on clients
- Voxy: draws the streamed far terrain (client-only mod; dedicated servers don't need or want it). Use the build for your Minecraft version:
Optional
- Mod Menu — in-game access to the config screen
?️ Configuration
Settings live in config/i-see-your-chunks.json and can be edited in-game through Mod Menu.
| Option |
Description |
Default |
enabled |
Master toggle — disables the mod entirely if false |
true |
renderRemotePlayers |
Render distant players (and stream their chunks) |
true |
renderRemoteEntities |
Render distant mobs that sit in streamed terrain |
true |
visibilityDistanceBlocks |
How far out distant players are revealed (rendering reaches at most 1,024,000 blocks) |
Maximum |
chunkRenderCount |
Chunks of terrain around each viewed player (0 = none, nearest-first) |
9 (3×3) |
streamFarChunks |
Server-side: stream terrain around revealed players |
true |
sendSpectators |
Server-side: reveal players in spectator mode |
false |
updateIntervalTicks |
Server-side: ticks between streaming passes (1–40) |
5 |
Note: streamFarChunks, sendSpectators, and updateIntervalTicks only take effect on the machine running the server logic. The rest are client-side. At chunkRenderCount = 0 no terrain is sent, so only the viewed players — and whatever they are riding — appear; loose mobs are shown only where there is streamed ground to stand on.
Changing the config re-sends the handshake immediately, so streaming adjusts without a reconnect.
?️ Fog
Distant players and mobs are fogged exactly like the terrain they stand on, so a far player blends into the haze with the ground under them instead of standing out against it. The mod never changes Voxy's fog itself; how far you can see is decided by Voxy's fog settings.
- Minecraft 26.2 (Voxy 0.2.19) and 26.1.2 (Voxy 0.2.18): Voxy caps its terrain fog past a fixed distance, so far terrain keeps a partial haze and distant players stay visible at any range.
- Minecraft 1.21.1 and 1.20.1 (Voxy forks): the forks share the same fog. The fork fades its terrain fully to fog colour at
section_render_distance × 512 blocks (8,192 with the default of 16). Past that, terrain and players alike are pure fog colour. To see farther, lower Fog Intensity or turn off Environmental Fog in Voxy's settings. Both apply to terrain and players together.
- Iris shader packs control fog themselves, so the pack's fog applies instead.
- On 1.21.1, a glowing player is drawn without fog so its outline still renders.
✅ Compatibility
| Mod |
Status |
Notes |
| Voxy |
Client-required |
Renders the streamed far terrain; required on clients, not needed on dedicated servers |
| Sodium |
Full |
No coupling to Sodium internals — nothing to break on update |
| Iris / shaders |
Full |
Streamed chunks are ordinary terrain, so shaders treat them normally |
| melius-vanish |
Full |
Vanished players are never revealed (reflective bridge, fails open) |
| C2ME |
Compatible |
Faster generation doesn't change what's streamed — only already-loaded chunks are sent |
? Technical Details
The mod injects at these points:
ChunkMap$TrackedEntity.updatePlayer() — lifts the tracking-distance cap and chunk requirement per viewer: unconditionally for players and whatever they ride (mount chains included), and for a loose mob only while it sits in a chunk that actually renders for that viewer (the visible patch, never the halo)
ChunkMap.tick() — periodically re-evaluates managed entities against every player, since a mob's visibility flips as the streamed region around a distant player slides over or off it
ChunkHolder.broadcast() — marks a streamed far chunk dirty when it changes, so the streamer re-sends the whole chunk on its next interval (only chunks it is actively streaming are ever tracked; a full re-send is used because the client can't apply incremental deltas to an out-of-range chunk it never cached)
ClientChunkCache.<init> and updateViewRadius() — widens the client storage radius so streamed chunks aren't rejected as out-of-range (both are required: the radius normally arrives in the login packet, before updateViewRadius would ever fire)
ClientChunkCache.replaceWithPacketData() — converts each arriving far chunk into Voxy's LOD store directly, supplying our own light. Voxy's normal ingest reads the client light engine, which never lights a chunk past render distance (so it would silently write nothing); instead it is run through Voxy's own conversion pipeline with the real light captured from the chunk packet. Chunks past the client's storage radius (a viewed player thousands of blocks away) are rejected by vanilla before decoding; those are re-decoded from the intact packet buffer into a throwaway chunk and ingested directly, so far terrain renders at any distance without being held in the cache
ClientChunkCache.replaceWithPacketData() / drop() (entity ticking): marks streamed chunks past the storage radius as ticking for entities, and unmarks them when the server forgets them. The client only ticks entities in chunks it has stored, and position updates only take effect on an entity's own tick, so mobs (and mounts) around a distant player would otherwise freeze in place
ClientPacketListener.handleLevelChunkWithLight() — captures the chunk packet's real block + sky light so the ingest above can feed it to Voxy (vanilla otherwise discards that light for out-of-range chunks)
LevelRenderer.isSectionCompiledAndVisible() (isSectionCompiled() on 1.21.1, isChunkCompiled() on 1.20.1): lets an entity render in a section Sodium never compiled, because Voxy is drawing that ground instead
ClientLevel.setBlocksDirty() (1.20.1 only): re-ingests an edited chunk into Voxy at the end of the tick when it is cached but outside Sodium's render distance. A 1.20.1 server sends every chunk within its view distance whatever the client's render distance, and Voxy otherwise only picks up such a chunk's edits when it unloads
EntityRenderDispatcher.shouldRender() / Entity.shouldRenderAtSqrDistance() — distance-limit overrides that still respect the frustum
VoxyRenderSystem.computeProjectionMat() — raises Voxy's hardcoded 48,000-block projection far plane to the shared far-render bound so injected far columns aren't clipped there (applied only when Voxy is present, gated by a mixin config plugin). The bound is computed live from the visibility-distance slider (48,000 floor, 1,024,000 ceiling) and this method runs every frame, so the reach follows the slider immediately; the managed-entity far plane uses the same bound, keeping terrain and the players on it in lockstep
The client↔server handshake (ClientHelloPayload in, ServerAckPayload back) carries preferences and the server's actual limits; nothing here relies on chunk generation, so it stays compatible with generation-side mods.
Terrain range. Chunks within the client's storage radius (~48 chunks) pass through the vanilla cache normally. Beyond that, they're decoded straight into Voxy's LOD and never cached, so terrain around an arbitrarily distant player still renders — bounded by Voxy's own compact LOD store, not by held chunks. Columns past Voxy's render sphere are injected as extra render roots, and Voxy's distance cull is lifted for them, so they draw out to Voxy's projection far plane — which this mod raises from Voxy's hardcoded 48,000. That far plane is computed live from the visibility-distance slider (clamped to a 48,000 floor and a 1,024,000 ceiling at the slider's maximum) and shared with the managed-entity far plane, so terrain and the players on it reach the same distance and both follow the slider without a reconnect. The 1,024,000 ceiling is chosen simply as more than enough for any practical use, not because anything technical stops it there — pushing it out is nearly free on precision because the depth buffer is reverse-Z. Lighting uses the real block + sky light from each chunk packet; if a chunk ever arrives without light data, it falls back to a heightmap-based sky approximation.
?️ Project Layout
common/ version-agnostic code shared by every MC version (config, networking, streaming, shared mixins, client logic)
26.2/fabric/ MC 26.2 module: version-specific render mixins, GUI, platform helpers
26.1.2/fabric/ MC 26.1.2 module
1.21.1/fabric/ MC 1.21.1 module (Mojang mappings)
1.20.1/fabric/ MC 1.20.1 module (Mojang mappings, Java 17 bytecode)
? Building
./gradlew clean build
Each JAR is written to <version>/fabric/build/libs/.
? License
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
You are free to:
- ✅ Use in modpacks
- ✅ Modify for personal use
- ✅ Distribute modified versions (must also be AGPL-3.0)
See the LICENSE file for full details.
评论 0
登录后参与评分
还没有评论,来抢沙发吧