命令/agent

来自Minecraft Wiki
ProjectXero留言 | 贡献2022年3月20日 (日) 06:28的版本 (排序命令语法条目列表(游戏内是字典序))
跳转到导航 跳转到搜索
本文章所述内容仅适用于教育版基岩版
agent
需要的权限等级
0[仅教育版]
1[仅基岩版]

Agent控制命令,仅允许被玩家所连接的WebSocket端执行,玩家无法直接在游戏中执行该命令。

语法

agent <command: AgentDirectionCommand> <direction: AgentDirection>
agent <command: AgentItemCommand> <slotNum: int>
agent <command: AgentCommand>
agent collect <item: Item>
agent collect all
agent drop <slotNum: int> <quantity: int> <direction: AgentDirection>
agent place <slotNum: int> <direction: AgentDirection>
agent setitem <slotNum: int> <item: Item> <count: int> <aux: int>
agent tp [destination: x y z] [y-rot: float]
agent tp <destination: x y z> facing <lookAtPosition: x y z>
agent transfer <slotNum: int> <quantity: int> <dstSlotNum: int>
agent turn <direction: AgentTurnDirection>

参数

<command: AgentDirectionCommand>包括move|destroy|detect|attack|detectredstone|dropall|inspect|inspectdata|interact|till
<direction: AgentDirection>包括up|down|forward|back|left|right
<command: AgentItemCommand>包括getitemcount|getitemspace|getitemdetail
<command: AgentCommand>包括create|getposition
<direction: AgentTurnDirection>包括left|right

历史

携带版
1.0.0?加入了/agent
教育版
?加入了/agent

参见