文档
命令
MTR Surveyor 全部客户端命令及其作用。
MTR Surveyor 的所有命令都是客户端命令。它们通过 Minecraft 的客户端命令分发器注册,因此在任何服务器上都能用 — 包括那些没装本 mod 的服务器。单人世界同样可用。
根命令为 /mtrsurveyor。在聊天框输入 /mtrsurveyor 即可(仅需一个斜杠)。
参考
| 命令 | 说明 |
|---|---|
/mtrsurveyor syncWaypoints | 强制立即同步一次路径点。 |
/mtrsurveyor mode | 显示当前显示模式。 |
/mtrsurveyor mode station | 切换到车站模式 — 每站一个路径点。 |
/mtrsurveyor mode platform | 切换到站台模式 — 每个站台一个路径点并带路线信息。 |
/mtrsurveyor config enabled <true|false> | 开启或关闭自动路径点同步。不带参数则显示当前值。 |
/mtrsurveyor config showStations <true|false> | 显示或隐藏车站路径点。 |
/mtrsurveyor config showDepots <true|false> | 显示或隐藏车厂路径点。 |
详情
/mtrsurveyor syncWaypoints
强制在下一个客户端 tick 触发一次同步(节流为每 ~5 秒 / 100 tick 一次)。适合在 MTR 大幅改动后或路径点看起来过期时使用。
- 若未安装 Xaero’s Minimap,会以红色文字失败:
Xaero's Minimap is not installed! - 成功时:
Waypoint sync requested! Waypoints will update shortly.
/mtrsurveyor mode
不带子参数时,以青色文字打印当前模式:
Current waypoint mode: station
/mtrsurveyor mode station / mode platform
设置配置中的 waypointMode 并立即请求同步。回复:
Waypoint mode set to: station (one waypoint per station)Waypoint mode set to: platform (one waypoint per platform with route info)
各模式外观见显示模式。
/mtrsurveyor config <key> <true|false>
通用的布尔开关。三个已暴露的键:
enabled— 自动路径点同步的总开关。showStations— 切换showStationLandmarks配置项。showDepots— 切换showDepotLandmarks配置项。
不带参数调用某个键会打印当前值,例如:
Waypoint sync is currently set to true
带 true 或 false 调用会设置值、持久化到 mtrsurveyor.toml,并以绿色文字确认。
未暴露为命令的选项
有几个配置项 — formalInitLog、debugLog、showEmptyStation、showHiddenRoute — 没有对应的命令。请直接编辑 .minecraft/config/mtrsurveyor.toml。详见配置。