Mineuniverse
Agent

Agent

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…

5 min read Updated 1 views
Bedrock Edition Entities Minecraft Education Passive mobs Flying mobs Minecraft Education mobs
Advertisement Remove ads with Premium →
Contents (16)
  1. Spawning
  2. Usage
  3. Agent commands
  4. Sounds
  5. Data values
  6. ID
  7. History
  8. Bedrock Edition
  9. Minecraft Education
  10. Issues
  11. Trivia
  12. Gallery
  13. Textures
  14. Screenshots
  15. In other media
  16. External links
This feature is exclusive to Bedrock Edition and Minecraft Education.
Agent
Agent.png: Infobox image for Minecraft entity 'Agent'
Invicon Agent Spawn Egg.png: Inventory sprite for Agent Spawn Egg in Minecraft as shown in-game with description: Agent Spawn Egg
Health points ∞
Behavior Passive
Attack
strength
5HP❤️❤️💔
Hitbox size Height: 0.93 blocks
Width: 0.6 blocks
Spawn See Spawning

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 Minecraft Education 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 these have no AI unless spawned by putting the command /summon agent 56 or /execute as @p run agent create into an 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.

Agents can be spawned with its spawn egg, obtainable with /give @p agent_spawn_egg 56. However, they do not spawn while using its spawn egg in Bedrock Edition. Agents always spawn with a name tag hovering over them which says the player's name and then ".Agent".

Usage

In Minecraft Education, agents are used in conjunction with Code Connection, and are programmable by a visual programming language.

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

Agents carry their own 27-slot inventory, which can be manipulated by 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.

An agent in a dripstone cave

Agents float in midair if there is no solid block below them. Agents are completely invulnerable to all forms of damage, although they are targeted by wardens. Agents pass through blocks, vehicles, and projectiles, thus making them unable to ride a minecart or boat. Agents cannot be leashed.

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

Agent commands

Main article: Commands/agent
  • 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

Sounds
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitch
​Block placedFriendly MobsWhen an agent is spawnedmob.agent.spawnsubtitles.block.generic.place​??

Data values

ID

NameIdentifierNumeric ID Translation key
EntitySprite agent.png: Sprite image for agent in Minecraft Agentagent56 entity.agent.name

History

Bedrock Edition

Pocket Edition Alpha
v0.16.0build 1 Added agents.
Their addition was likely accidental due to Pocket Edition sharing the same codebase as Education Edition.
build 2 Removed agents.
Pocket Edition
1.0.0alpha 0.17.0.1 Agents have been re-added, hidden in a(n) .apk file.
Bedrock Edition
1.8.0beta 1.8.0.8 Added agent spawn egg texture file.
1.9.0beta 1.9.0.0 Agents can now be spawned by putting the command execute @p ~ ~ ~ agent create into an NPC.
26.50Preview 26.50.25 The behavior of agents is now available in the vanilla behavior pack.
Preview 26.50.26 The behavior of agents is once again hardcoded and no longer avaliable in the vanilla behavior pack.

Minecraft Education

Minecraft Education
1.0.1 Added learn to code mascot.
1.0.2 The entity ID has been changed from learn_to_code_mascot to agent.
1.4.0 The default name tag color for agents has been changed to blue.
1.7 Agents can now be removed through /remove.
Players now can show their agent's coordinates on the HUD.
/summon agent now creates or teleports the executor's agent to the executor.
Added spawn eggs for agents.
1.20.121.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 choose which item to detect or interact with in a “line of sight” in the direction the code specified, up to 1 block away.

Issues

Issues relating to "Agent" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia

Textures

Screenshots

In other media

Advertisement Remove ads with Premium →

More in Flying mobs

View all 12 →
AllayAllayAn allay is a small flying passive mob that follows the player who has given it an item, or any note block it has heard in the last 30 seconds. It…BatBatA bat is a flying passive mob that spawns in dark areas. It is the only ambient mob in the game, intended to complement the game's atmospheric settings.BeeBeeA bee is a flying arthropodan neutral mob that lives in a bee nest or beehive, and fills it with harvestable honey using nectar it gathers from flowers.…BlazeBlazeA blaze is a fiery hostile mob found in Nether fortresses and is the only source of blaze rods. It attacks by shooting volleys of three small fireballs or…Ender DragonEnder DragonThe ender dragon is a flying hostile boss mob that spawns on the central island of the End when the player first enters the dimension. It is the largest…GhastGhastGhasts are large, floating, ghost-like hostile mobs found in the Nether, and are the only source of ghast tears. Ghasts wander aimlessly and shoot…Happy GhastHappy GhastA happy ghast is a passive counterpart of ghasts that can be harnessed and ridden by up to four players at once as a flying mount. It can also be used in…ParrotParrotA parrot is a tamable passive mob that spawns in jungle biomes. Parrots imitate sounds of nearby monsters and can perch on the player's shoulders.

Related mods

Agents of Evo | Palladium Addon Agents of Evo | Palladium Addon Mod · 51.9K downloads Agenta Agenta Mod · 6.3K downloads Agents Mod Agents Mod Mod · 5.2K downloads Secret Agent Craft Secret Agent Craft Mod · 2K downloads
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home