Lesson plan

Hour of Code: Generation AI

Students travel through time to solve coding puzzles with MakeCode or Python while exploring the core principles of responsible artificial intelligence.

Hour of Code: Generation AI
Ages
Ages 6+
Duration
1 hour
Essential question

How can we design and program artificial intelligence tools to ensure they are safe, fair, and responsible?

Overview

Artificial intelligence is shaping our society, making it essential for students to understand how automated technologies function and how they impact human experiences. This lesson introduces learners to responsible technology development, focusing on the six key principles defined by Microsoft: fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.

Using a time-travel narrative in Minecraft Education, students learn essential movement controls, fix faulty code across multiple futuristic inventions, and discover how automated tools can assist communities. The session concludes with a prompt-driven sandbox where learners collaborate with an AI sidekick to generate map elements.

Learning objectives

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

  • Explain the foundational principles of responsible artificial intelligence.
  • Debug and correct faulty automated inventions using MakeCode blocks or Python.
  • Apply computational thinking and algorithmic problem-solving to complete engineering tasks.
  • Discuss the ethical, societal, and career implications of AI technology.

Blocks and items used in this lesson

Key vocabulary

Responsible AI
An approach that ensures artificial intelligence is designed and deployed ethically, safely, and for the benefit of society.
Fairness
The principle that AI systems must treat all individuals and groups equitably.
Reliability and Safety
The principle that AI systems must perform consistently and operate without causing harm.
Privacy and Security
The principle requiring AI technologies to protect personal information and remain secure against threats.
Transparency
The principle that AI systems and the logic behind their actions should be understandable to humans.
Accountability
The principle that humans remain responsible for the behavior and outcomes of AI systems.

Before class

Lesson sequence

Suggested timing: about 60 minutes in total.

  1. Movement and Tutorial10 min

    Students launch the lesson map, spawn in a dark bedroom, and complete a movement tutorial. They practice looking, moving, jumping, interacting with non-player characters, pressing buttons, and placing and breaking blocks.

  2. Coding and Responsible AI Puzzles30 min

    Students navigate through coding challenges using either MakeCode blocks or Python. They construct bridges and repair several automated inventions while examining responsible design:

    • Food Scanner: Program the tool to operate with fairness and inclusiveness.
    • Smart Lawnmower: Repair faulty logic to ensure reliability and safety.
    • Trash Collector: Code the system to maintain transparency and accountability.
    • Door Access Tool: Secure the mechanism while preserving user privacy.
    • Principle Matching: Connect responsible AI principles to practical real-world scenarios.
  3. Prompt-Based Sandbox10 min

    Upon finishing the five invention scenes, students unlock an open-ended creative sandbox. Working alongside their AI sidekick, learners enter text prompts to craft and generate map environments for further exploration.

  4. Reflection and Wrap-Up10 min

    Gather the class together to recap key concepts. Facilitate a discussion around how AI affects daily life, examine the six principles of responsible AI, discuss future technology careers, and distribute certificates of completion.

Video

Assessment: success criteria

  • Student successfully identifies and repairs faulty code across the automated invention challenges.
  • Student correctly matches scenarios to the six principles of responsible AI.
  • Student participates in group discussion about the societal impact and ethics of automated systems.

Differentiation

Support

Allow students to pair up to debug challenges and use visual MakeCode blocks rather than Python text.

Stretch

Challenge advanced students to complete all coding tasks using Python and experiment with complex prompt combinations in the creative sandbox.

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 principle of responsible AI requires systems to treat all people equitably?

  2. 2Which automated invention in the lesson must be fixed to ensure it is reliable and safe?

  3. 3What coding options can students choose between during this lesson?

  4. 4Which principle states that an AI system should be understandable to people?

  5. 5What happens after students complete the five AI invention scenes?

Resources

Part of the AI Foundations curriculum

This is lesson 15 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 paid licenses to run this lesson?

No, this lesson can be accessed as a free demo directly from the Minecraft Education start screen without requiring paid licenses.

Can students with no prior coding experience participate?

Yes, the lesson includes an introductory movement tutorial and supports drag-and-drop MakeCode blocks designed for absolute beginners.

Adapted from Hour of Code: Generation AI by Minecraft Education on Minecraft Education, last updated Jul 15, 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