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 planting and harvesting, mining, chopping trees, and building. It is only available in Minecraft Education and Bedrock Edition worlds connected to a WebSocket server.
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 /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.[verify]
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.
Complete article available
This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.