
- Type
- Lesson plan
- Ages
- Ages 8-13
- Skills
- Critical thinking
How can 2D nets and coordinate commands help us calculate materials and construct 3D spaces?
Overview
In this lesson, students explore geometric measurement and coordinate geometry by taking on the role of builders helping a homeowner complete a construction project. By connecting perimeter, area, volume, and surface area to concrete building tasks, learners see the mathematical purpose behind structural dimensions.
Using Minecraft Education's Code Builder and coordinate commands, students program an Agent to build a garden fence, execute 3D fill commands to erect a hollow barn, and lay flat wall nets on the ground to determine the exact exterior surface area needed for paint.
Learning objectives
By the end of this lesson students will be able to:
- Program the Agent to place a perimeter fence around a garden using movement commands.
- Calculate and record the perimeter and area of a two-dimensional garden plot.
- Construct a hollow barn using three-dimensional relative coordinate fill commands and record its volume.
- Model three-dimensional walls as flat two-dimensional nets to determine total exterior surface area for painting.
Blocks and items used in this lesson
Key vocabulary
- Perimeter
- The total distance around the outside boundary of a two-dimensional shape.
- Volume
- The amount of three-dimensional space enclosed inside a solid or hollow structure.
- Net
- A flattened, two-dimensional layout of a three-dimensional figure that shows each of its faces.
- Surface Area
- The sum of all individual area measurements across the exterior faces of a three-dimensional object.
- Relative Position
- A coordinate system using tilde notations (~x ~y ~z) to position blocks relative to the player's current location.
Before class
Lesson sequence
- Step 1: Garden Fence (Perimeter and Area)
Students equip their Agent with fence posts in its inventory and program it to enclose a garden plot to keep animals out. They use commands such as agent place on move and directional movement blocks. Once fenced, students calculate and record the perimeter and area of the garden.
- Step 2: Horse Barn (Volume and Hollow Fill)
Students construct a barn enclosing a hay floor using the fill with command. They specify relative coordinates (~0 ~0 ~0 to ~x ~y ~z) with wood planks of their choice and apply the hollow parameter to create an interior space. Students calculate the internal volume and adjust the surrounding fence to grant the horse access.
- Step 3: House Walls and Nets (Surface Area)
Students inspect the exploded floor plan located behind the house and use fill commands to generate a 2D net model of the walls laid completely flat on the ground. When finished, they will have 10 flat wall sections. Students compute the area of each wall, add them together to calculate total surface area, and determine the paint required.
- Step 4: Reflection and Analysis
Lead a class discussion where students share their calculated surface area totals. Review how 2D nets help measure 3D forms, and evaluate how the fill replace command could be used to substitute spruce planks with alternative wood types.
Assessment: success criteria
- Student successfully codes the Agent to enclose the garden and records correct area and perimeter values.
- Student builds a hollow barn using correct relative coordinate syntax and documents its interior volume.
- Student lays out 10 flat wall panels on the ground matching the house dimensions.
- Student calculates the total exterior surface area to determine the required amount of paint.
Differentiation
Allow students to work in pairs and refer to the sample wall model provided in the world.
Have students subtract the dimensions of doors and windows from the wall net measurements to calculate a precise paint requirement.
Knowledge check
5 questions to check understanding after the lesson. Tap an answer to see if it is right; the score appears at the end.
1What item must be placed in the Agent's inventory before starting Step 1?
Answer: A. The Agent needs fence posts in its inventory to place a fence around the garden.
2Which parameter must students append to the fill command to prevent the barn from becoming a solid block of wood?
Answer: B. The hollow parameter generates walls with open interior space instead of a solid structure.
3In the command syntax '~0 ~0 ~0', what does the coordinate reference represent?
Answer: C. The tilde coordinates ~0 ~0 ~0 indicate the exact current position of the player.
4How many flat wall panels should students create on the ground when producing the net model of the house?
Answer: D. The source specifies that students should have 10 walls laid flat on the ground to form the net.
5Why do students lay the 10 house wall sections flat on the ground?
Answer: B. Laying the walls flat creates a net model that makes it easy to calculate each face's area and sum them for total surface area.
Resources
- Lesson package (.zip)Everything the author attached to this lesson in one download.
- World FileWorld file for student download
Part of the Code for STEM curriculum
This is lesson 17 of 20 in Code for STEM.
- 3-D Fractions
- Aquarium
- Build a Dam
- Canyon Arch Bridge
- Chicken or the Egg
- Creeper Tower Test
- Energy Transfer
- Forces
- Hour of Code: AI for Good
- Minecraft Code Town
- Molecules
- Number Line Railroad
- Plate Motions
- Road Construction Ahead
- Scale
- Slope
- Surface Area and Perimeter
- Units of Measurement
- Walled Fortress
- Wave Properties
Frequently Asked Questions
Can students collaborate in pairs during these tasks?
Yes. The activities are designed to be completed either by individual learners or by pairs working together inside the same world.
What prerequisite skills do students need before starting?
Students should have basic familiarity with writing chat commands, understanding coordinate geometry, and issuing simple Agent movement instructions.
Adapted from Surface Area and Perimeter by John Miller on Minecraft Education, last updated Jul 16, 2025. This classroom version, the timings and the quiz were written by 9Minecraft Education.























