<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fagent</id>
	<title>Minecraft:Commands/agent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fagent"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/agent&amp;action=history"/>
	<updated>2026-04-09T10:58:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/agent&amp;diff=49553&amp;oldid=prev</id>
		<title>imported&gt;RedX at 22:46, 29 December 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/agent&amp;diff=49553&amp;oldid=prev"/>
		<updated>2025-12-29T22:46:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{exclusive|bedrock|education}}&lt;br /&gt;
{{Infobox command&lt;br /&gt;
|oplevel=&lt;br /&gt;
* 0 {{only|EDU}}&lt;br /&gt;
* 1 {{only|BE}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;/agent&amp;#039;&amp;#039;&amp;#039; is a command used to control an [[Minecraft:agent]].&lt;br /&gt;
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 unless you use an NPC. The {{cmd|agent|link=none}} command can be run using an NPC.&lt;br /&gt;
&lt;br /&gt;
If a player summons an agent using an NPC then the only way to remove it from their world is by using an NBT Editor and deleting the &amp;lt;code&amp;gt;actorprefix&amp;lt;/code&amp;gt; file for that agent.  &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
: &amp;lt;code&amp;gt;agent . . .&amp;lt;/code&amp;gt;&lt;br /&gt;
:* &amp;lt;code&amp;gt;… move &amp;lt;direction&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Moves an agent in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… turn &amp;amp;lt;turnDirection&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Rotates an agent in a specified direction by 90 degrees.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… attack &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent attack in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… destroy &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent destroy a block or item in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… drop &amp;amp;lt;int:slotNum&amp;amp;gt; &amp;amp;lt;int:quantity&amp;amp;gt; &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent drop specified inventory slot numbered items in a specified quantity in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… dropall &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent drop all its items from all slots onto the ground by one block in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… inspect &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent return the name of the block in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… inspectdata &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent returns the data value of the block of a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… detect &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent detect if there is a collidable block in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… detectredstone &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent detect a redstone signal of a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… transfer &amp;amp;lt;int:srcSlotNum&amp;amp;gt; &amp;amp;lt;int:quantity&amp;amp;gt; &amp;amp;lt;int:dstSlotNum&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Transfers a specified quantity of items from one slot to another of an agent&amp;#039;s inventory.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… create&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Creates an agent at the current player&amp;#039;s position.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… tp &amp;amp;lt;coordinates&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Teleports an agent to a specified position.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… collect &amp;amp;lt;string:item&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent collect all items within a one block from agent in three dimensions.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… till &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent till grass in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… place &amp;amp;lt;int:slotNum&amp;amp;gt; &amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent place a block in a specified direction.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… setitem &amp;amp;lt;int:slotNum&amp;amp;gt; &amp;amp;lt;int:quantity&amp;amp;gt; &amp;amp;lt;int:amount&amp;amp;gt; &amp;amp;lt;int:data&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: {{info needed}}&lt;br /&gt;
:* &amp;lt;code&amp;gt;… getitemcount &amp;amp;lt;int:slotNum&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent return the number of items in a specified slot, as in how many the player could use before it would be empty.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… getitemspace &amp;amp;lt;int:slotNum&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent return the number of spaces remaining in a specified slot, as in the number of items you could add before it would be full.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… getitemdetail &amp;amp;lt;int:slotNum&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent return the name of the item in a specified slot.&lt;br /&gt;
:* &amp;lt;code&amp;gt;… getposition&amp;lt;/code&amp;gt;&lt;br /&gt;
::: Makes an agent retrieve its position in the world.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;amp;lt;direction&amp;amp;gt;&amp;lt;/code&amp;gt; is one of &amp;lt;code&amp;gt;forward|back|left|right|up|down&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;amp;lt;turnDirection&amp;amp;gt;&amp;lt;/code&amp;gt; is one of &amp;lt;code&amp;gt;left|right&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
=== &amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|pocket}}&lt;br /&gt;
|{{HistoryLine||1.0.0|dev=?|Added{{cd|/agent}}.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Minecraft Education&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|education}}&lt;br /&gt;
|{{HistoryLine||?|Added{{cd|/agent}}.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Minecraft:Agent]]&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:ja:コマンド/agent]]&lt;br /&gt;
[[Minecraft:pt:Comandos/agent]]&lt;br /&gt;
[[Minecraft:zh:命令/agent]]&lt;/div&gt;</summary>
		<author><name>imported&gt;RedX</name></author>
	</entry>
</feed>