Lesson plan

That’s an A-maze-ing Game!

Students explore real-world safety, sketch hazard mazes on paper, build them in Minecraft, and program the Agent with Code Builder to navigate a peer's maze.

That’s an A-maze-ing Game!
Ages
Ages 8-18
Essential question

How can we design hazardous maze challenges and program an Agent to navigate them safely?

Overview

This lesson connects personal safety concepts with computational thinking and game design. Students begin by examining dangers such as open water, fire, and poor visibility in low light, considering how individuals stay safe and remain visible in outdoor environments. They translate these concepts into interactive maze obstacles that present navigational challenges for others to solve.

Inside Minecraft: Education Edition, learners construct their obstacle courses within a flat terrain, documenting rules and hints using chalkboards and non-player characters. Students then swap worlds to program their Agent using Code Builder, writing and debugging step-by-step algorithms to safely guide the Agent past each hazard.

Learning objectives

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

  • Identify real-world safety hazards such as fire, water, and darkness.
  • Draft a maze layout on grid paper incorporating distinct obstacles.
  • Build a navigable maze game in Minecraft featuring instructional chalkboards and NPCs.
  • Write and debug algorithms in Code Builder to guide the Agent through a classmate's maze.

Blocks and items used in this lesson

Key vocabulary

Algorithm
A step-by-step set of instructions designed to accomplish a specific task.
Debugging
The process of identifying and correcting mistakes in computer code or instructions.
Agent
A programmable helper character in Minecraft: Education Edition that carries out coded commands.
NPC
A non-player character used to share dialogue, directions, or information with players.

Before class

Lesson sequence

Suggested timing: about 180 minutes in total.

  1. Safety Discussion and Paper Prototyping45 min

    Lead a class discussion on staying safe and remaining visible outdoors, focusing on environmental hazards such as deep water, fire, and darkness. Introduce introductory questions about what dangers learners will include in their games.

    Have students research maze structures and sketch their own layouts on squared or graph paper, labeling where obstacles and hazards will be placed.

  2. World Building and In-Game Documentation65 min

    Direct students to open a Blocks of Grass world in Minecraft: Education Edition and build their paper maze designs with structural blocks and chosen hazard elements.

    Students place chalkboards and NPCs at critical checkpoints to provide written instructions explaining how another player can safely navigate each section.

  3. Peer Testing, Coding, and Debugging70 min

    Have students share their worlds with a peer. Each learner opens their partner's maze, reads the written chalkboard and NPC guidance, and opens Code Builder.

    Students construct algorithms to move their Agent safely through each maze section, actively testing their code and debugging any commands that do not produce the expected movement.

Assessment: success criteria

  • Student paper sketch shows a clear maze route containing planned hazards.
  • Minecraft maze contains functional pathways supplemented with instructional chalkboards or NPCs.
  • Student writes an algorithm in Code Builder that successfully guides the Agent through an obstacle course.
  • Student identifies errors and applies debugging techniques when an algorithm fails.

Differentiation

Support

Provide a pre-printed grid template with basic turn symbols and encourage paired programming during the Code Builder phase.

Stretch

Challenge students to add multi-stage hazards requiring conditional turns or shorter, more efficient algorithms.

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 planning tool do students use before building their maze in Minecraft?

  2. 2How do students share written instructions with visitors inside their maze world?

  3. 3Which environmental hazards are highlighted as inspiration for maze obstacles?

  4. 4Which world type does the lesson recommend using for the maze construction?

  5. 5What should a student do if their Agent does not move as intended through the maze?

Resources

Frequently Asked Questions

Approximately how much class time is needed to complete this challenge?

The source outlines three distinct steps designed to take approximately 3 hours in total, which can be split over multiple class periods.

Do students need to download a custom world file beforehand?

No custom world download is required; students build directly inside the standard Blocks of Grass world available in Minecraft: Education Edition.

Which tool controls the Agent during the peer-testing stage?

Students launch Code Builder from within Minecraft: Education Edition to create the algorithms that guide the Agent through the maze.

Adapted from That’s an A-maze-ing Game! by Hwb MLCs on Minecraft Education, last updated Apr 27, 2021. 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