Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
agent
Permission level
required

0‌[Education Edition only]
1‌[Bedrock Edition only]

Restrictions

None

Information icon.svg
This feature is exclusive to Bedrock Edition and Education Edition. 

/agent is a comment used to control an agent. Agent control commands are only allowed to be executed by the WebSocket side to which the player is connected, and the player cannot execute the command directly in the game.

Syntax[]

agent move <direction>
agent turn <turnDirection>
agent attack <direction>
agent destroy <direction>
agent drop <int:slotNum> <int:quantity> <direction>
agent dropall <direction>
agent inspect <direction>
agent inspectdata <direction>
agent detect <direction>
agent detectredstone <direction>
agent transfer <int:srcSlotNum> <int:quantity> <int:dstSlotNum>
agent create
agent tp <coordinates>
agent collect <string:item>
agent till <direction>
agent place <int:slotNum> <direction>
agent getitemcount <int:slotNum>
agent getitemspace <int:slotNum>
agent getitemdetail <int:slotNum>

Parameters[]

<direction> is one of forward|back|left|right|up|down
<turnDirection> is one of left|right

History[]

Pocket Edition
1.0.0?Added/agent.
Education Edition
?Added/agent.

See also[]

Advertisement