使 Vivecraft 的 VR 功能在站在 Sable 子层级(sub-level)上时正常运行 —— 即处于由物理驱动的移动结构(如船只或火车车厢)之上。
仅客户端。 在未修改的服务器上也能正常工作。
修复内容
VR 传送会将你传送到虚空。 当你瞄准移动结构上的某个位置进行传送时,你会掉入远离该结构的空白空间中。Vivecraft 使用方块射线投射来确定目标点,因此在子层级上,它会选择 Sable 实际存储结构方块的那个遥远区域中的目的地 —— 然后直接将那个坐标写入玩家。
VR 近战攻击无法命中目标。 攻击身旁的生物毫无效果,且日志中充满错误信息。Vivecraft 的攻击检测框由两个不同的坐标系同时构建而成,导致其覆盖范围约为 2000 万个方块。Sable 拒绝处理如此庞大的查询请求,因此返回空结果,没有任何目标被选中。
这两个问题源于同一底层原因:Sable 将子层级的方块存储在远离其渲染位置的地方,而 Vivecraft 的 VR 代码早于 Sable 出现,并不知晓这一机制。
依赖要求
- Minecraft 1.21.1 · NeoForge 21.1.228+
- Vivecraft(已验证兼容版本
1.21.1-1.3.15-neoforge)
- Sable 2.0.5+
本模组不捆绑上述依赖 —— 请自行安装。由于 Sable 采用 PolyForm Shield 许可证,禁止再分发。
报告问题
模组会记录自身的诊断信息:包括各项修复是否加载成功,以及每次传送时 Vivecraft 选择的目的地与实际使用的目的地之间的对比。正常游玩并退出后,发送 logs/latest.log 文件即可 —— 通常只需这一个文件。详见
TESTING.md。
源代码 · PolyForm Shield 1.0.0
Makes Vivecraft VR work properly while you are
standing on a Sable sub-level — a moving,
physics-driven structure such as a ship or a train carriage.
Client-side only. It works on unmodified servers.
What it fixes
VR teleport drops you into the void. You aim at a spot on the moving structure,
teleport, and fall through empty space far away from it. Vivecraft aims with a block
raycast, so on a sub-level it picks a destination in the far-off region where Sable
actually stores the structure's blocks — then writes that position to you directly.
VR melee hits nothing. Swinging at a mob standing next to you does nothing, and the
log fills with errors. Vivecraft's swing search box is built from two different coordinate
frames at once, so it spans ~20 million blocks. Sable refuses any query that large and
returns no targets at all.
Both are the same underlying problem: Sable keeps a sub-level's blocks somewhere far from
where it draws them, and Vivecraft's VR code predates Sable and does not know that.
Requirements
- Minecraft 1.21.1 · NeoForge 21.1.228+
- Vivecraft (verified against
1.21.1-1.3.15-neoforge)
- Sable 2.0.5+
Neither is bundled — install them yourself. Sable's PolyForm Shield licence does not
permit redistribution.
Reporting a problem
The mod logs its own diagnosis: whether each fix loaded, and for every teleport, the
destination Vivecraft chose versus the one actually used. Play, quit normally, and send
logs/latest.log — that one file is usually enough. See
TESTING.md.
Source · PolyForm Shield 1.0.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧