Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Agent: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{Exclusive|Bedrock|Education}}{{Infobox entity
{{MC/Exclusive|Bedrock|Education}}{{Infobox entity
| image = Agent.png
| image = Agent.png
| addedVersion = v0.16.0 alpha build 1
| addedVersion = v0.16.0 alpha build 1
Line 11: Line 11:
| spawn = See [[#Usage|Usage]]
| spawn = See [[#Usage|Usage]]
}}
}}
An '''agent''' is a mob that helps players learn coding, by getting a player to code the actions on one. Agents can be programmed to execute several tasks, like planting and harvesting, mining, chopping trees, and building. It is only available in {{el|ee}} and {{BE}} worlds connected to a WebSocket server.   
An '''agent''' is a mob that helps players learn coding, by getting a player to code the actions on one. Agents can be programmed to execute several tasks, like planting and harvesting, mining, chopping trees, and building. It is only available in {{MC/El|ee}} and {{MC/BE}} worlds connected to a WebSocket server.   


== Spawning ==
== Spawning ==


In a ''Bedrock Edition'' world not connected to a WebSocket server, agents are [[Minecraft:Bedrock Edition unused features|unused]] and thus have no AI unless spawned by putting the command {{cmd|execute as @p run agent create}} into an [[Minecraft:NPC]], but can still store items given to them by a player in its inventory. Agents can also teleport between dimensions with the player.  
In a ''Bedrock Edition'' world not connected to a WebSocket server, agents are [[Minecraft:Bedrock Edition unused features|unused]] and thus have no AI unless spawned by putting the command {{MC/Cmd|execute as @p run agent create}} into an [[Minecraft:NPC]], but can still store items given to them by a player in its inventory. Agents can also teleport between dimensions with the player.  


Agents can be spawned with its spawn egg, obtainable with {{cmd|give @s spawn_egg 1 56}}. However, they do not spawn when spawned with the spawn egg.
Agents can be spawned with its spawn egg, obtainable with {{MC/Cmd|give @s spawn_egg 1 56}}. However, they do not spawn when spawned with the spawn egg.


== Usage ==
== Usage ==
In ''Minecraft Education'', agents are used in conjunction with [[Minecraft:Code Connection]], and are programmable by a {{w|visual programming language}}.
In ''Minecraft Education'', agents are used in conjunction with [[Minecraft:Code Connection]], and are programmable by a {{MC/W|visual programming language}}.


In the ''Education'' and ''Bedrock Editions'', agents can be used in conjunction with WebSocket servers.  
In the ''Education'' and ''Bedrock Editions'', agents can be used in conjunction with WebSocket servers.  
Line 31: Line 31:
Agents are completely invulnerable to all forms of damage, although they are targeted by zoglins and [[Minecraft:warden]]s. Agents pass through blocks, vehicles, and projectiles, thus making them unable to ride a [[Minecraft:minecart]] or [[Minecraft:boat]]. Agents cannot be [[Minecraft:Lead|leashed]].
Agents are completely invulnerable to all forms of damage, although they are targeted by zoglins and [[Minecraft:warden]]s. Agents pass through blocks, vehicles, and projectiles, thus making them unable to ride a [[Minecraft:minecart]] or [[Minecraft:boat]]. Agents cannot be [[Minecraft:Lead|leashed]].


Agents can push pressure plates and {{control|use}} [[Minecraft:door]]s, [[Minecraft:button]]s, [[Minecraft:lever]]s, and fence gates. They can {{control|destroy}} some blocks that are indestructible in Survival mode, such as [[Minecraft:bedrock]] and command block, except for allow and deny blocks.
Agents can push pressure plates and {{MC/Control|use}} [[Minecraft:door]]s, [[Minecraft:button]]s, [[Minecraft:lever]]s, and fence gates. They can {{MC/Control|destroy}} some blocks that are indestructible in Survival mode, such as [[Minecraft:bedrock]] and command block, except for allow and deny blocks.


=== Agent commands ===
=== Agent commands ===
{{main|Commands/agent}}
{{MC/Main|Commands/agent}}
* <code>attack &lt;direction&gt;</code>
* <code>attack &lt;direction&gt;</code>
* <code>destroy &lt;direction&gt;</code>
* <code>destroy &lt;direction&gt;</code>
Line 89: Line 89:
== History ==
== History ==
=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable|{{HistoryLine|pocket alpha}}|{{HistoryLine||v0.16.0|dev=build 1|[[File:Agent.png|32px]] Added agents.}}|{{HistoryLine|||dev=build 2|Removed agents.}}|{{HistoryLine|pocket}}|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|Agents have been re-added, hidden in a(n) <code>.apk</code> file.}}|{{HistoryLine|bedrock}}|{{HistoryLine||1.8.0|dev=beta 1.8.0.8|Added agent spawn egg texture file.}}|{{HistoryLine||1.9.0|dev=beta 1.9.0.0|Agents can now be spawned by putting the command <code>execute @p ~ ~ ~ agent create</code> into an NPC. }}
{{HistoryTable|{{MC/HistoryLine|pocket alpha}}|{{MC/HistoryLine||v0.16.0|dev=build 1|[[File:Agent.png|32px]] Added agents.}}|{{MC/HistoryLine|||dev=build 2|Removed agents.}}|{{MC/HistoryLine|pocket}}|{{MC/HistoryLine||1.0.0|dev=alpha 0.17.0.1|Agents have been re-added, hidden in a(n) <code>.apk</code> file.}}|{{MC/HistoryLine|bedrock}}|{{MC/HistoryLine||1.8.0|dev=beta 1.8.0.8|Added agent spawn egg texture file.}}|{{MC/HistoryLine||1.9.0|dev=beta 1.9.0.0|Agents can now be spawned by putting the command <code>execute @p ~ ~ ~ agent create</code> into an NPC. }}
}}
}}


=== ''Minecraft Education'' ===
=== ''Minecraft Education'' ===
{{HistoryTable|{{HistoryLine|education}}|{{HistoryLine||1.0.1|[[File:Agent.png|32px]] Added learn to code mascot.}}|{{HistoryLine||1.0.2|The entity ID has been changed from <code>learn_to_code_mascot</code> to <code>agent</code>.}}|{{HistoryLine||1.4.0|The default name tag color for agents has been changed to blue.}}|{{HistoryLine||1.7|Agents can now be removed through {{cmd|remove}}.
{{HistoryTable|{{MC/HistoryLine|education}}|{{MC/HistoryLine||1.0.1|[[File:Agent.png|32px]] Added learn to code mascot.}}|{{MC/HistoryLine||1.0.2|The entity ID has been changed from <code>learn_to_code_mascot</code> to <code>agent</code>.}}|{{MC/HistoryLine||1.4.0|The default name tag color for agents has been changed to blue.}}|{{HistoryLine||1.7|Agents can now be removed through {{MC/Cmd|remove}}.
|Players now can show their agent's coordinates on the HUD.
|Players now can show their agent's coordinates on the HUD.
|{{cmd|summon agent}} now creates or teleports the executor's agent to the executor.
|{{MC/Cmd|summon agent}} now creates or teleports the executor's agent to the executor.
|Added spawn eggs for agents.}}|{{HistoryLine||1.20.12|dev=1.20.10.0|Agents now have no range restrictions, it can move and build far away from the player.
|Added spawn eggs for agents.}}|{{MC/HistoryLine||1.20.12|dev=1.20.10.0|Agents now have no range restrictions, it can move and build far away from the player.
|Agents now have an animation for unsuccessful actions.
|Agents now have an animation for unsuccessful actions.
|Agents now choose which item to detect or interact with in a “line of sight” in the direction the code specified, up to 1 block away.}}
|Agents now choose which item to detect or interact with in a “line of sight” in the direction the code specified, up to 1 block away.}}
Line 102: Line 102:


== Issues ==
== Issues ==
{{issue list|projects=mcpe}}
{{MC/Issue list|projects=mcpe}}


== Trivia ==
== Trivia ==
*In 10 Years of Minecraft, there is a puzzle in the "Library" area that involves controlling an agent with glazed terracotta. On the {{BE}} version of the map, the agent is added in as a new mob, while on {{JE}}, it is an armor stand with remodeled infested chiseled stone bricks on its head.
*In 10 Years of Minecraft, there is a puzzle in the "Library" area that involves controlling an agent with glazed terracotta. On the {{MC/BE}} version of the map, the agent is added in as a new mob, while on {{MC/JE}}, it is an armor stand with remodeled infested chiseled stone bricks on its head.
*The agent addition in ''Pocket Edition'' was likely accidental due to ''Pocket Edition'' sharing the same codebase as ''Minecraft Education''.
*The agent addition in ''Pocket Edition'' was likely accidental due to ''Pocket Edition'' sharing the same codebase as ''Minecraft Education''.


Line 146: Line 146:


== Navigation ==
== Navigation ==
{{Navbox entities|mobs}}
{{MC/Navbox entities|mobs}}
{{Navbox Education|exclusive}}{{featured}}
{{MC/Navbox Education|exclusive}}{{featured}}


[[Category:Passive mobs]]
[[Category:Passive mobs]]

Latest revision as of 19:00, 9 April 2026

Script error: No such module "Exclusive".Template:Infobox entity An agent is a mob that helps players learn coding, by getting a player to code the actions on one. Agents can be programmed to execute several tasks, like planting and harvesting, mining, chopping trees, and building. It is only available in

  1. REDIRECT Template:Edition

Template:Rcat and Bedrock Edition worlds connected to a WebSocket server.

Spawning

In a Bedrock Edition world not connected to a WebSocket server, agents are unused and thus have no AI unless spawned by putting the command

  1. REDIRECT Template:Command

Template:Redr into an Minecraft:NPC, but can still store items given to them by a player in its inventory. Agents can also teleport between dimensions with the player.

Agents can be spawned with its spawn egg, obtainable with

  1. REDIRECT Template:Command

Template:Redr. However, they do not spawn when spawned with the spawn egg.

Usage

In Minecraft Education, agents are used in conjunction with Minecraft:Code Connection, and are programmable by a

  1. REDIRECT Template:Wikipedia

Template:Redr.

In the Education and Bedrock Editions, agents can be used in conjunction with WebSocket servers.

Agents carry their own 27-slot Minecraft:inventory, which can be manipulated by Minecraft:commands that the player programs one to use, or edited directly by a GUI that the player can access in-game, in any dimension.

The visual interface allows the player to drag and drop commands, structural constructs and other components into a sequence, and associate the sequence with a custom-named slash command, which can be executed in the traditional way, from the console.

File:Agent Flying.png
An agent in a dripstone cave

Agents are completely invulnerable to all forms of damage, although they are targeted by zoglins and Minecraft:wardens. Agents pass through blocks, vehicles, and projectiles, thus making them unable to ride a Minecraft:minecart or Minecraft:boat. Agents cannot be leashed.

Agents can push pressure plates and {{#vardefine: control | right click on mouse or left trigger on gamepad }}use Minecraft:doors, Minecraft:buttons, Minecraft:levers, and fence gates. They can {{#vardefine: control | left click on mouse or right trigger on gamepad }}destroy some blocks that are indestructible in Survival mode, such as Minecraft:bedrock and command block, except for allow and deny blocks.

Agent commands

{{#vardefine:params|0 }}Template:Hatnote

  • attack <direction>
  • destroy <direction>
  • drop <int:slotNum> <int:quantity> <direction>
  • drop all <direction>
  • move <direction>
  • turn <turnDirection>
  • inspect <direction>
  • inspect data <direction>
  • detect <direction>
  • detectredstone <direction>
  • transfer <int:srcSlotNum> <int:quantity> <int:dstSlotNum>
  • create agent
  • remove agent
  • teleport to player
  • teleport to location facing direction
  • collect <string:item>
  • till <direction>
  • place <int:slotNum> <direction>
  • place on move<int:slotNum> <true/false>
  • get item count <int:slotNum>
  • get item space <int:slotNum>
  • get item detail <int:slotNum>

<direction> refers to forward|back|left|right|up|down

<turnDirection> refers to left|right

Sounds

Template:SoundTable

Data values

ID

Template:ID table

History

Bedrock Edition

Template:HistoryTable

Minecraft Education

Template:HistoryTable

Issues

Script error: No such module "Issue list".

Trivia

  • In 10 Years of Minecraft, there is a puzzle in the "Library" area that involves controlling an agent with glazed terracotta. On the Bedrock Edition version of the map, the agent is added in as a new mob, while on Java Edition, it is an armor stand with remodeled infested chiseled stone bricks on its head.
  • The agent addition in Pocket Edition was likely accidental due to Pocket Edition sharing the same codebase as Minecraft Education.

Gallery

Textures

Screenshots

In other media

External links

Navigation

Passive
Template:Els & Template:Els only
Neutral
Hostile
Bosses
Mob types
Other
Player
Blocks
Template:Els only
Vehicles
Template:JE only
Projectiles
Template:JE only
Template:Els only
Stationary
objects
Java Edition only
Miscellaneous
Template:Els only
Template:Els & Template:Els only
Technical
objects
Template:Els only
Editor only
Mobs
April Fools 2013
April Fools 2015
April Fools 2019
April Fools 2023
April Fools 2024
April Fools 2025
Pet variants
April Fools 2026
Other entities
April Fools 2013
April Fools 2015
April Fools 2023
April Fools 2024
April Fools 2026

Template:Article other

General
Blocks
Items
Entities
Chemistry
Blocks
Items
Entities

Template:Article otherTemplate:Featured

de:Agent es:Agente fr:Agent ja:エージェント ko:에이전트 pl:Agent pt:Agente ru:Агент th:เอเจนต์ zh:智能体