
- Type
- Lesson plan
- Grade
- Early years (Pre-K to Grade 2)Primary (Grades 3-5)Middle school (Grades 6-8)High school (Grades 9-12)
- Ages
- Ages 6-18
- Duration
- 45 min
- Level
- Beginner
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.
- 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.
- 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.
- 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.
- 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
Inside the lesson world



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
Allow learners to code with MakeCode visual blocks instead of text-based Python and offer the Solutions Guide for step-by-step logic hints.
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.
1Which two coding options are available to solve the puzzles in this lesson?
Answer: B. The source specifies that students solve coding puzzles using either MakeCode Blocks or Python.
2What is the primary objective students must achieve with their Agent before sunset?
Answer: A. The lesson is built around training the Agent to collect supplies, craft, and build shelter to survive the first night.
3Which of the following is NOT one of the six in-game tasks required for survival?
Answer: C. The six designated tasks are collecting wood, making tools, building a shelter, crafting a door, adding light, and making a bed.
4What happens after students survive the night?
Answer: D. Surviving the night teleports students to a new area where they can access other worlds or complete the mini-agent Build Challenge.
5Why is human verification a core concept in this lesson?
Answer: B. The lesson emphasizes that AI systems make mistakes and require human oversight, error detection, and responsible evaluation.
Resources
- Lesson package (.zip)Everything the author attached to this lesson in one download.
- Educator GuideThe educator guide includes lesson overview, aligned standards, vocabulary, detailed student activities and student knowledge checks.
- Presentation SlidesStudent-facing slide deck with step-by-step guide for the Hour of AI lesson and tutorial.
- SolutionsBlock and Python coding solutions
- AI Build ChallengeExtend the Hour of AI with the AI Build Challenge: Design and build your own mini-agents!
- Certificate of CompletionCelebrate surviving the night with the Hour of AI certificate of completion!
- Hour of AI StickerPrintable stickers to celebrate the Hour of AI with Minecraft Education
- Facilitator GuideQuick start guide for leading the Hour of AI. Perfect for volunteers, clubs, after school organizations. Join the movement!
- Localized ResourcesSupporting files for different languages
- Lesson worldOpens the world page in Minecraft Education (sign-in with a school account may be needed).
Part of the AI Foundations curriculum
This is lesson 13 of 18 in AI Foundations.
- AI-1: Who Is That Ocelot?
- AI-2: Mapping Terrain
- AI-3: Sustainable Farming
- AI-4: Ocean Observations
- AI-5: Water Quality
- Unit 9: AI
- AI Adventurers
- AI Wildlife Park
- CyberSafe AI: Dig Deeper
- Fantastic Fairgrounds
- Hour of AI: Field Agent
- Hour of AI: Generation AI
- Hour of AI: The First Night
- Hour of Code: AI for Good
- Hour of Code: Generation AI
- Mini Agent Mission
- Peter Is Here: AI for Cultural Heritage
- 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.























