Agent控制指令,僅允許被玩家所連接的WebSocket端執行,玩家無法直接在遊戲中執行該指令。
語法[]
agent <command: AgentDirectionCommand> <direction: AgentDirection>agent <command: AgentItemCommand> <slotNum: int>agent <command: AgentCommand>agent collect <item: Item>agent collect allagent 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|tillcommand: AgentItemCommand包括getitemcount|getitemspace|getitemdetailcommand: AgentCommand包括create|getpositiondirection: AgentDirection包括up|down|forward|back|left|rightdirection: AgentTurnDirection包括left|right
slotNum: int
- 指定要改變的智慧體物品欄欄位。有效值為0至26的整數。
item: Item
quantity: int和count: int
- 指定被丟出、給予或移動的物品數量。
aux: int
- 指定參與指令的物品的資料值。
destination: x y z
- 指定要被傳送到的座標。
- 必須為三維座標,元素為浮點數。允許波浪號與插入符標記。
y-rot: float
- 指定傳送後智慧體的水平旋轉角度。
lookAtPosition: x y z
- 指定傳送後智慧體朝向的位置。
- 必須為三維座標,元素為浮點數。允許波浪號與插入符標記。
dstSlotNum: int
- 指定目標物品欄欄位。
歷史[]
| 攜帶版 | |||||
|---|---|---|---|---|---|
| 1.0.0 | ? | 加入了/agent。 | |||
| 教育版 | |||||
| ? | 加入了/agent。 | ||||
你知道嗎[]
- 雖然玩家無法在遊戲中直接執行
/agent指令,但是可以透過NPC執行。