How do you code the agent in Minecraft Education Edition to build a house?

How do you code the agent in Minecraft Education Edition to build a house?
Agent Build

Go to your Agent in Minecraft and equip him with blocks.
Add a new chat command pd (for “pen down”) and place agent place on move to tell the Agent to place a block as it moves.
Your Agent needs blocks in the inventory to build with.
Add a chat command fd (for “forward“) that moves the Agent by 3 blocks.

Agent Build
  1. Go to your Agent in Minecraft and equip him with blocks.
  2. Add a new chat command pd (for “pen down”) and place agent place on move to tell the Agent to place a block as it moves.
  3. Your Agent needs blocks in the inventory to build with.
  4. Add a chat command fd (for “forward“) that moves the Agent by 3 blocks.