Now that we're in Minecraft Edu, we have access to the super powered Coding Agent! Before we can get some farming done, let's get used to moving the Agent, and we'll get to use chat to make it work!
Head to the Orange Tab called Agent to find some of the first code we'll be adding to the game. If you notice in your screen we have a block called "on start" and one called "on chat command "run" ". We'll be focusing on the chat command today.
Let's start off by making the agent run by adding a "agent move forwards by 1" block. You can test what it does by pressing the Enter Key and typing "run".
Or on iPad, click on the "x" button and tap to the text bubble button to type your command in chat.
Head to the Variables tab and click on create a variable. A variable is a container of information that a computer uses to accomplish a task. Our Agent will need to know how far we want it to walk so we'll name the variable "steps".
Once we finish making it click on the plus button on our "run" command and select it from the list!
Now that we have a new variable Let's use it with the chat command. We can change our "run" command to make the Agent run further by using the "step" parameters in it!
To use it head to the red "variables" and drag it into the "agent move forward by ___" block.
Test out your code by typing: "run 5" or "run 10" in chat.