8-10 yrs old
Math & Economics
Use Code Builder and an agent to build two towers and test their creeper blast resistance.
January 25, 2019
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. Loops are useful as they encourage more succinct commands.
Minecraft blocks have specific characteristics that dictate their behavior in the game. Some are more blast resistant than others.
Working individually, or in pairs, students will test the structural strength of three different materials against a creeper blast. After observing the first, pre-built straw tower, students will program the agent to build one replica tower out of wooden planks and a third tower out of a block of their choice.
The red sandstone blocks on each platform will help center each tower.
Students should place a wooden plank block into their agent’s inventory before any construction begins. They will switch it out for a block of their choice to build the third tower.
Commands can be issued in shorter segments. For example, students may build one floor at a time. More proficient students should be encouraged to incorporate loop commands which will allow them to complete the tower in one segment.
They will likely need several agent commands such as:
They will likely want to use a loop command as well:
Students needing a little help getting started may benefit from this tower building tutorial.
Once the towers are completed, it is time to test their resistance to a creeper blast. Students can invite classmates into their world and ask one to climb each tower.
Game conditions should then be set to Survival > Difficulty > Normal for the visiting players. The host can then spawn a creeper on top of each tower and after a short fight for survival, the creeper will explode.
Students should determine the number of blocks remaining on each tower and share their data with the class to determine a blast ranking for each type of block tested.
Students should be able to program their agent to build a solid tower, with a base of 4x4 wood planks, 5 stories tall.
Students should be able to copy and modify the program to allow their agent to build a third tower with the same dimensions using a block of their choice.
Students should collect data (the number of blocks remaining) after each creeper explosion.
Create a table to combine and present all results to the class.
Students should assign a ranking for each block tested.
Students should be able to answer the following questions: