MobWalk
一个客户端侧的 Fabric 模组,显示所选生物可以安全站立和行走的位置。
手持魔杖右键点击方块,MobWalk 会绘制该生物从该位置能到达的所有表面,并标记无法避免的坑洞和危险区域(如灵魂沙)。

所有颜色以及是否标记每种危险区域均可配置。
依赖
MobWalk 纯客户端运行。
操作说明
默认情况下,魔杖是一根木棍,你可以将其设置为任意物品。
- 右键点击方块:绘制周围的可通行表面。
- 右键点击空气:清除选择。
- 潜行 + 滚动鼠标滚轮:在持有魔杖时,增大或减小检测范围。
- 潜行 + 右键点击空气:切换到下一个生物。
- 潜行:穿透墙壁查看已绘制的表面。
- 自动更新:围绕选择区域或你的位置自动重新计算。
部分生物已内置(例如玩家、劫掠兽、监守者),你也可以通过设置宽度、高度和垂直探测距离来添加自定义生物。
在持有魔杖时显示这些表面,或者设置为始终显示。
每个设置的更多详细信息可以在菜单工具提示中找到。
已知限制
- 由于缺少邻居方块,泛洪填充边缘附近的分类可能不准确。
- 两个可通行表面之间不可达的凸起可能被标记为“坑洞”,因为从技术上讲它从两个方向都不可达。
- 大面积的单刻泛洪可能导致卡顿。多刻泛洪可能会出现不同步。
- 蜂蜜的视觉碰撞箱与实体碰撞箱在水平和垂直方向上都不一致;此处未对此进行调整,因为通常它在膨胀半径内,因此不可见。
- 可达性假设水平速度为零。否则这就变成了跑酷模拟。大多数生物不会进行水平跳跃,因此找到的表面通常准确。
- 灵魂沙会使穿过下陷的半砖减速;目前未考虑这一点。(蜂蜜等类似情况)
免责声明
危险区域标记器可以设置为穿透墙壁显示,这可能会违反 Modrinth 内容规则 3.3.a(透视/X-ray)。如果这是一个硬性阻碍,我可以更改默认设置,使其不在服务器上启用。
AI 使用情况
代码使用 Cursor 编写,主要使用了 Opus 和 Grok。主要是因为这样我就不必学习 Fabric API 了。我也利用这个项目学习如何使用编码代理。规划工件可以在 Git 历史中找到。
90%+ 的实际设计和范围由我负责:可通行几何形状和逻辑、绘制内容及其方式、所有设置选项等。毕竟,这才是最有趣的部分。此外,即使是 Opus 在抽象规划方面也很糟糕。
MobWalk
A client-side Fabric mod that shows where a chosen mob can safely stand and walk.
Right-click a block with the wand and MobWalk paints every surface the chosen mob
could reach from there, and marks inescapable holes and hazards such as soul sand.

Every color, and whether each hazard is marked at all, is configurable.
Requirements
MobWalk is purely client-side.
Controls
The wand is a stick by default, and you can set it to any item.
- Right-click a block with the wand: paint the surfaces around it.
- Right-click air: clear the selection.
- Sneak + scroll while holding the wand: grow or shrink how far it checks.
- Sneak + right-click air: switch to the next mob.
- Sneak: see the painted surfaces through walls.
- Auto Update: Automatically recalculates around the selection or your location.
Some mobs are built in (eg Player, Ravager, Warden), and you can add your own with a width, height, and vertical reach.
Surfaces show while you hold the wand, or can be set to always show.
More details of each setting may be found in the menu tooltips.
Known limitations
- Classification near the edge of the flood fill may be inaccurate, due to missing neighbors.
- An unreachable ledge between two reachable surfaces may be marked as a "hole", since technically it is unreachable from both directions.
- Single tick floods over large areas can stutter. Multi-ticks flood may desync.
- The visual vs collision hitbox of honey is inconsistent horizontally as well as vertically; this is not adjusted for, since usually it is within the dilated radius, so is not visible.
- Reachability assumes zero horizontal velocity. Otherwise this becomes modeling all of parkour. Most mobs do not make horizontal jumps, so the surfaces found are generally accurate.
- Soul sand slows through a slab; currently this is not taken into account. (Same with honey etc)
Disclaimers
The hazard markers can be set to display through walls, which might violate Modrinth content rule 3.3.a (X-ray). If this is a hard blocker, I could change it to not allow on servers by default.
AI usage
The code was written with Cursor, primarily using Opus and Grok. Mainly because
it saves me having to learn the Fabric API. I also used this project to learn how to
use coding agents. Planning artefacts can be found in git history.
90%+ of the actual design and scope is mine: the walkability geometry and logic,
what gets drawn and how, all the settings options, etc. After all, that's the fun part.
Also, even Opus still sucks at abstract planning.
评论 0
登录后参与评分
还没有评论,来抢沙发吧