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)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Exclusive|Bedrock|Education}}{{Infobox entity
{{Exclusive|Bedrock|Education}}{{Infobox entity
| image = Agent.png
| image = Agent.png
| addedVersion = v0.16.0 alpha build 1
| addedDate = August 29, 2016
| imagesize = 100px
| imagesize = 100px
| invimage = Agent Spawn Egg
| invimage = Agent Spawn Egg
Line 9: Line 7:
| damage = {{hp|5}}
| damage = {{hp|5}}
| size = Height: 0.93 blocks<br>Width: 0.6 blocks
| size = Height: 0.93 blocks<br>Width: 0.6 blocks
| spawn = See [[#Usage|Usage]]
| spawn = See [[#Spawning|Spawning]]
}}
}}
An '''agent''' is a mob that helps [[Minecraft:player]]s 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 [[Minecraft:player]]s 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.  


== Spawning ==
== Spawning ==
In a ''Bedrock Edition'' world not connected to a WebSocket server, agents are [[Minecraft:Bedrock Edition unused features|unused]] and these have no AI unless spawned by putting the command {{cmd|/summon agent 56}} or {{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. After spawning them, they may not be removed in ''Bedrock Edition''.{{Verify}}


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.
Agents can be spawned with its spawn egg, obtainable with {{cmd|/give @p agent_spawn_egg 56}}. However, they do not spawn while using its spawn egg in {{BE}}.
 
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.


== 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 {{w|visual programming language}}.


In the ''Education'' and ''Bedrock Editions'', agents can be used in conjunction with WebSocket servers.  
In the ''Minecraft Education'' and ''Bedrock Edition'', 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 [[Minecraft:player]] programs one to use, or edited directly by a GUI that the player can access in-game, in any dimension.
Agents carry their own 27-slot [[Minecraft:inventory]], which can be manipulated by [[Minecraft:commands]] that the [[Minecraft:player]] programs one to use, or edited directly by a GUI that the player can access in-game, in any dimension.
Line 162: Line 159:
[[Minecraft:ru:Агент]]
[[Minecraft:ru:Агент]]
[[Minecraft:th:เอเจนต์]]
[[Minecraft:th:เอเจนต์]]
[[Minecraft:uk:Агент]]
[[Minecraft:zh:智能体]]
[[Minecraft:zh:智能体]]

Latest revision as of 11:00, 23 July 2026

Template:ExclusiveTemplate:Infobox entity An agent is a mob that helps Minecraft: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 Template:El and Template:BE worlds connected to a WebSocket server.

Spawning

In a Bedrock Edition world not connected to a WebSocket server, agents are unused and these have no AI unless spawned by putting the command Template:Cmd or Template:Cmd 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. After spawning them, they may not be removed in Bedrock Edition.Template:Verify

Agents can be spawned with its spawn egg, obtainable with Template:Cmd. However, they do not spawn while using its spawn egg in Template:BE.

Usage

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

In the Minecraft Education and Bedrock Edition, 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 Minecraft: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 Minecraft:damage, although they are targeted by Minecraft:wardens. Agents pass through blocks, vehicles, and Minecraft:projectiles, thus making them unable to ride a Minecraft:minecart or Minecraft:boat. Agents cannot be leashed.

Agents can push pressure plates and Template:Control Minecraft:doors, Minecraft:buttons, Minecraft:levers, and Minecraft:fence gates. They can Template:Control some blocks that are indestructible in Minecraft:Survival mode, such as Minecraft:bedrock and Minecraft:command block, except for Minecraft:allow and deny blocks.

Agent commands

Template:Main

  • 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

Template:Issue list

Trivia

Gallery

Textures

Screenshots

In other media

External links

Navigation

Template:Navbox entities Template:Navbox EducationTemplate:Featured

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