Minecraft Wiki

The Minecraft Wiki has moved from Fandom; see the linked discussion page for details.

READ MORE

Minecraft Wiki
Advertisement

Information icon
This feature is exclusive to Minecraft Education and Bedrock Edition. 
Dark Oak Sapling
This article is a stub. 
You can help by expanding it.

The agent is a mob that helps players learn coding, by getting players to code the actions on the agent. The agent can be programmed to execute a lot of tasks, like planting and harvesting, mining, chopping trees, and building.

Usage

The agent is used in conjunction with Code Connection/Code Builder for Minecraft, and is programmable by a visual ScratchX interface.

The agent carries its own 27-item inventory, which can be manipulated by commands that the player programs it to use, or edited directly by a GUI that the player can access in-game.

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.

The agent can push pressure plates, but cannot interact with buttons, levers or other right-click mechanisms like doors and gates.

Agent commands

  • 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

History

Pocket Edition Alpha
0.16.0build 1Added agent.
build 2Removed agent.
Pocket Edition
1.0.0alpha 0.17.0.1The agent has now been re-added, hidden in a(n) .apk file.
Bedrock Edition
1.8.0beta 1.8.0.8 Added Agent Spawn Egg texture file.
Education Edition
1.0.1The agent was added as "learn to code mascot".
1.0.2Entity ID changed from "learn_to_code_mascot" to "agent".
1.4.0Agent's default name tag color changed to blue.
1.7Agent can now be removed through /remove
Players will be able to show the agent coordinates on the HUD
/summon agent now creates or teleports the executor’s agent to the executor.
Added spawn eggs for agents.

Trivia

  • The model of the agent is similar to that of iron golems, but is smaller, has a bigger head, and has a different texture.
  • The agent is seen in the official image of Minecraft: Education Edition.
  • The agent, along with the NPC, are the only mobs exclusive to the Education Edition.
    • Bedrock Edition also contains resources for the mob, however the mob is unobtainable in game. By installing Code Connection, it is possible to use in Minecraft Windows 10 Edition.
  • it appears in a map called "10 years of Minecraft" in a robot coder mini-game

Gallery

Advertisement