mc_move
Move a Minecraft character to coordinates using walk, fly, jump, or swim modes, with automatic obstacle avoidance and water swimming; repeat calls continue toward the target when not yet arrived.
Instructions
移动。mode="walk" 走过去(自动避障;在水里会自动改成"直接游",实测 2 格/秒);mode="fly" 创造模式直飞(最稳,创造模式默认用它);mode="jump" 原地跳一下(爬台阶/脱困,不需要坐标);mode="swim" 在水里游到 x/y/z(不给坐标就只上浮换气)。
🔴 一次只走 10 秒(用户要求:单次调用别超过 11 秒)。没走到会返回 arrived:false + remaining(还差几格)+ hint——直接再叫一次 mc_move 往同一个目标走就行,会从当前位置接着走;走远路就是连着叫几次,比一次挂 90 秒好(挂住的时候用户看不到消息)。
🔴 在水里(mc_status 里 在水里)寻路基本不动(A* 不把水当节点,实机"4 秒只挪 1 格"):mc_move 会自动直接游(按住 forward+jump 浮在水面,实测 2 格/秒),上了岸再交回寻路。快淹死了就 mode:"swim" 不给坐标(只上浮换气):水挖不掉,别去 mc_dig 水。
🔴 路上自己垫方块上去(pillared)会报 pillaredWith/held——手上会变成垫脚那种方块,别以为还攥着镐(要挖就 mc_act{mode:"break"},它会自己换)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| z | No | ||
| mode | No | walk / fly / jump / swim(创造模式缺省 fly;jump 不需要坐标;swim 不给坐标就只上浮换气) | |
| budgetMs | No | walk/swim 的最长时间(默认 10000,上限 10000);swim 不给坐标时的上浮时间(默认 3000,上限 3000) |