Lesson plan

Hour of AI: The First Night

Students code an AI Agent using MakeCode or Python to complete survival tasks like gathering wood and building shelter while learning AI concepts.

Hour of AI: The First Night
Ages
Ages 6-18
Duration
45 min
Essential question

How can fundamental AI concepts help us code the Agent (and mini-agents) to plan and execute tasks?

Overview

This lesson introduces learners to foundational artificial intelligence concepts, focusing on how people guide, test, and collaborate with intelligent tools. Rather than simply writing rigid instructions, students explore pattern recognition, classification, and error detection to help an automated companion understand its environment.

Using Minecraft Education, learners partner with an in-game Agent to prepare for the dangers of nightfall. By solving coding puzzles in either MakeCode or Python, students direct the Agent through six practical survival milestones, discovering why human oversight remains necessary when deploying AI systems.

Learning objectives

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

  • Identify key AI literacy concepts including classification, pattern recognition, and error detection.
  • Solve coding puzzles using sequences, loops, and debugging in MakeCode or Python.
  • Train an AI Agent to collect resources, create tools, and build a protective shelter.
  • Explain the importance of human oversight and verification when collaborating with AI systems.

Blocks and items used in this lesson

Key vocabulary

Agent
A programmable companion in Minecraft that can carry out automated tasks and actions.
Pattern Recognition
The process of identifying recurring trends, arrangements, or rules within data.
Classification
Organizing items or information into categories based on shared characteristics.
Error Detection
Spotting bugs, inaccuracies, or unexpected actions in code and AI responses.
Verification
Checking and confirming that an automated system's output is accurate and working properly.

Before class

Lesson sequence

Suggested timing: about 45 minutes in total.

  1. Introduction to AI and Human Oversight10 min

    Introduce the essential question and explore what artificial intelligence is. Discuss how humans guide AI by setting rules and checking for mistakes, and introduce the Agent as a digital partner that needs training before night arrives.

  2. Coding the Six Survival Milestones25 min

    Students enter the world and code the Agent using MakeCode Blocks or Python to complete six sequential tasks:

    • Collect wood and make tools.
    • Build a shelter and craft a door.
    • Add light and make a bed.
  3. Survival and Build Challenge5 min

    Once the six tasks are complete and students survive the night, they are teleported to a new hub. Students can view posters leading to other worlds or enter a build plate with unlimited inventory to design their own mini-agent.

  4. Class Reflection and Wrap-Up5 min

    Bring the class together to discuss how they defined AI, how they trained their Agent, and why human verification is critical when relying on automated systems. Distribute completion certificates to celebrate their progress.

Video

Partner with an AI Agent and learn AI concepts to survive the first night!
Partner with an AI Agent and learn AI concepts to survive the first night!
Use coding to train the agent.
Use coding to train the agent.
Orchestrate the AI's mini-agents to learn agentic AI systems.
Orchestrate the AI's mini-agents to learn agentic AI systems.

Assessment: success criteria

  • Successful completion of all six survival tasks by coding the Agent in-game.
  • Application of loops, sequences, and debugging to correct Agent mistakes.
  • Active participation in class discussion explaining the need for human verification in AI systems.

Differentiation

Support

Allow learners to code with MakeCode visual blocks instead of text-based Python and offer the Solutions Guide for step-by-step logic hints.

Stretch

Encourage fast finishers to design and assemble a custom AI mini-agent on the open build plate in the post-survival area.

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. 1Which two coding options are available to solve the puzzles in this lesson?

  2. 2What is the primary objective students must achieve with their Agent before sunset?

  3. 3Which of the following is NOT one of the six in-game tasks required for survival?

  4. 4What happens after students survive the night?

  5. 5Why is human verification a core concept in this lesson?

Resources

Part of the AI Foundations curriculum

This is lesson 13 of 18 in AI Foundations.

  1. AI-1: Who Is That Ocelot?
  2. AI-2: Mapping Terrain
  3. AI-3: Sustainable Farming
  4. AI-4: Ocean Observations
  5. AI-5: Water Quality
  6. Unit 9: AI
  7. AI Adventurers
  8. AI Wildlife Park
  9. CyberSafe AI: Dig Deeper
  10. Fantastic Fairgrounds
  11. Hour of AI: Field Agent
  12. Hour of AI: Generation AI
  13. Hour of AI: The First Night
  14. Hour of Code: AI for Good
  15. Hour of Code: Generation AI
  16. Mini Agent Mission
  17. Peter Is Here: AI for Cultural Heritage
  18. Reed Smart: AI Detective

Frequently Asked Questions

Do students need prior coding experience to participate in this lesson?

No, this lesson is structured for beginners and allows learners to use beginner-friendly MakeCode blocks to guide their Agent step-by-step.

What materials can students receive after finishing the survival challenges?

Teachers can provide students with a certificate of completion and an Hour of AI sticker after they finish the six tasks and extension activities.

Adapted from Hour of AI: The First Night by Minecraft Education on Minecraft Education, last updated Oct 22, 2026. 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