8-10 yrs old
Computer Science
Build a walled fortress around a village using Code Builder and the player agent.
January 25, 2019
Lesson Plan
My Notes
World File
World file for student use
Before beginning, students should be comfortable with controlling the movement of their agent and be familiar with the repeat loop. Click here to learn more about agent movement.
A loop allows coded statements to be repeated.
It is often wise to test small code segments first before committing to longer segments or multiple loops.
Working individually, or in small groups, program the agent to build a wall at least three blocks tall and one block wide around the village. Follow the red sandstone foundation to make sure the entire village is secure.
Allow students to build the wall out of any material they wish. They will need to place their block choice in the agent’s inventory before beginning.
They can begin building the wall at any location and work in short or long segments.
They will need several agent commands such as:
They will likely need a loop command as well:
Students needing a little help getting started may benefit from this wall building tutorial.
Students should openly reflect and share their progress, both successes and failures. Encourage students to reach a consensus and support innovative thinking.
Students should be able to answer the following questions:
If time allows, capture and share images of code that did not work and ask students to identify reasons why.
Sign up for the Minecraft: Education Edition newsletter. We promise to respect your inbox.