Lesson plan

Slope

Program an Agent to carve water conduits through a mountain, using similar triangles and loop coding to explore negative slope.

Slope
Download lesson files
Ages
Ages 11-13
Essential question

How can two conduits with different rise and run dimensions share the exact same slope?

Overview

Slope represents the constant rate of vertical change compared to horizontal change along a line. By examining similar right triangles, students can discover why different rise and run measurements produce the same steepness, leading to the linear equations y = mx and y = mx + b.

In this lesson, learners put math into practice using Code Builder. Students instruct their Agent to dig two water conduits through a mountainside using repeat loops and obstacle-clearing commands. Because both channels follow proportional rise and run ratios, students visualize negative slope before releasing water through their mountain aqueducts.

Learning objectives

By the end of this lesson students will be able to:

  • Draw two similar right triangles on graph paper to establish proportional rise and run ratios.
  • Program the Agent using repeat loops and obstacle destruction commands to carve tunnels through rock.
  • Demonstrate why the slope m is identical between points on a line using similar triangles.
  • Derive linear equations for lines passing through the origin and lines with a vertical intercept.

Blocks and items used in this lesson

Key vocabulary

Slope
The steepness of a line, measured as the ratio of vertical change (rise) to horizontal change (run).
Similar Triangles
Triangles that share identical angle measures and proportional sides, retaining the same shape at different sizes.
Conduit
A channel, pipe, or tunnel constructed to transport water from one location to another.
Repeat Loop
A programming structure that runs a specified set of code blocks a set number of times.

Before class

Lesson sequence

Suggested timing: about 75 minutes in total.

  1. Graph Paper Planning15 min

    Before launching the game, students plot two similar right triangles on graph paper. They choose two sets of proportional rise and run values that will produce the same negative slope when excavated in the world.

  2. World Orientation10 min

    Students spawn into the world individually or in pairs and speak to the villager to receive their task. They then travel to the empty pool atop the mountain where their Agent will begin work.

  3. Coding the Mountain Conduits25 min

    Using Code Builder, students program their Agent to enable destroy obstacles and move forward and down based on their chosen run and rise. By wrapping these instructions in a repeat loop, the Agent digs through the mountain to the village reservoir. Students then code a second, proportional conduit alongside the first.

  4. Water Flow Test10 min

    Once both tunnels punch through to the reservoir, students destroy the red sandstone blocks holding back the water tanks. Water fills the upper pool and flows through both conduits, verifying that both channels are continuous.

  5. Mathematical Analysis15 min

    Students analyze the dimensions of their two conduits. Using the rise and run of each triangle, they explain why the slope remains constant and derive the equations y = mx and y = mx + b.

Assessment: success criteria

  • Student successfully programs the Agent using loops and the destroy obstacles command.
  • Both excavated conduits reflect proportional dimensions forming similar triangles with negative slope.
  • Student correctly explains how slope remains unchanged despite differing rise and run values.
  • Water flows freely from the upper tanks through both conduits into the village reservoir.

Differentiation

Support

Provide struggling learners with pre-selected rise and run pairs on graph paper before they write their Agent loops.

Stretch

Have advanced students derive the exact algebraic equations for both conduits and test steeper or shallower equivalent ratios.

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.

  1. 1What must students create on graph paper before opening the Minecraft world?

  2. 2Which Agent instruction is needed so the Agent can dig directly through the mountain rock?

  3. 3Why do the two conduits have the same slope even though one is larger than the other?

  4. 4How do students test that their conduits are complete and functional?

  5. 5Why should the Agent's movement commands be placed inside a repeat loop?

Resources

Part of the Code for STEM curriculum

This is lesson 16 of 20 in Code for STEM.

  1. 3-D Fractions
  2. Aquarium
  3. Build a Dam
  4. Canyon Arch Bridge
  5. Chicken or the Egg
  6. Creeper Tower Test
  7. Energy Transfer
  8. Forces
  9. Hour of Code: AI for Good
  10. Minecraft Code Town
  11. Molecules
  12. Number Line Railroad
  13. Plate Motions
  14. Road Construction Ahead
  15. Scale
  16. Slope
  17. Surface Area and Perimeter
  18. Units of Measurement
  19. Walled Fortress
  20. Wave Properties

Frequently Asked Questions

Can students collaborate on this project?

Yes. Students can work independently or in pairs sharing the same Minecraft world to build their conduits.

Where does the Agent start digging?

The player places the Agent inside the empty pool located at the top of the mountain to begin excavating downward toward the reservoir.

What linear equations can students derive from the finished conduits?

Students can derive y = mx for a line passing through the origin and y = mx + b for a line intercepting the vertical axis at b.

Adapted from Slope by John Miller on Minecraft Education, last updated Feb 28, 2025. This classroom version, the timings and the quiz were written by 9Minecraft Education.

You May Also Like

9Minecraft Education is an independent teaching resource and is not affiliated with Mojang or Microsoft. Lesson plans here are our own classroom-ready adaptations; each one links to the original resource and credits its author. © 2026 9minecraft.net