Coding challenges will involve summoning your agent to red squares facing in the right direction. There is a simple chat command you can create that will let you summon your agent, replacing the coordinates each time.
This is a simple but useful piece of code. Every time the students encounter a coding puzzle, they can use it to get their agent into position on the red square.
Be sure students pay attention to the facing direction.
If they have completed this challenge correctly, the agent will appear as it does in the video to the left.
Common Error: If students run the code and the agent doesn't appear, check that the green oval within the red "agent teleport" block is the world block from the positions menu.
The agent teleport command defaults to the relative position coordinates in the oval. If this oval is in the block with the example coordinates above, that means the agent is teleporting to a position 16 blocks ahead, 72 blocks above, and 334 blocks to the side of the player.
The easiest way to check for the relative position block is to check for the tilde ~. If you see it, the student has the wrong position block in their code.
The student is perfectly able to use relative position when teleporting their agent if they wish, they will just need to position themselves accordingly, and the coordinates will be different than in this solution.
The relative position block, indicated by the tilde ~, will teleport the agent to a position relative to the player, not to the directed coordinates.