
- Type
- Lesson plan
- Subject
- Computer Science & Coding
- Topics
- Computer Science
- Ages
- Ages 11-13
- Duration
- 1 hour
- Level
- Intermediate
How can we program computer systems and in-game agents to model intelligent behavior and adapt to their surroundings?
Overview
Artificial intelligence represents the art and science of engineering software that models, mimics, or exceeds human intelligence. In this unit, middle school students investigate the societal importance of AI, discuss the ethical considerations surrounding intelligent automation, and evaluate the core traits that distinguish human decision-making from machine computation.
Using Minecraft Education, learners put theoretical computer science concepts into practice by coding their in-game Agent. Through scaffolded programming challenges, students guide their Agent to interact intelligently with the surrounding world, locate resources such as trees, and ultimately build an independent project that adapts dynamically to the virtual environment.
Learning objectives
By the end of this lesson students will be able to:
- Discuss the significance, ethical concerns, and societal impact of artificial intelligence.
- Identify key factors that distinguish human thinking from machine computation.
- Program the Minecraft Agent to demonstrate intelligent and adaptive behaviors.
- Design and execute an original project teaching the Agent to adapt to the Minecraft environment.
Blocks and items used in this lesson
Key vocabulary
- Artificial Intelligence
- The design of computer programs capable of modeling, mimicking, or surpassing human intelligence.
- Agent
- A programmable in-game character in Minecraft that executes automated actions and coded commands.
- Adaptive Behavior
- The ability of a system or agent to alter its actions based on changes or conditions in its environment.
Before class
Lesson sequence
Suggested timing: about 260 minutes in total.
- Introduction to Artificial Intelligence (Lesson A)50 min
Introduce artificial intelligence through classroom discussion and unplugged activities. Guide students to explore the concept of machine intelligence, contrast how humans and computers process information, and examine ethical considerations surrounding modern AI technologies.
- Exploring Intelligent Code (Lesson B)50 min
Lead students through examples of code that model intelligent behavior. Have learners analyze how conditional logic and automated decision-making allow software programs to respond dynamically rather than following purely rigid paths.
- Coding an Intelligent Agent (Lesson C)50 min
Transition students into the downloadable Minecraft world to begin coding their Agent. Students write programs that allow the Agent to perceive conditions in its environment and take deliberate, intelligent actions based on those conditions.
- Tree-Hunting Agent Challenge (Lesson D)50 min
Task students with programming a tree-hunting routine for their Agent. Learners apply search patterns and environmental detection commands to enable the Agent to locate and navigate toward trees autonomously within the game space.
- Creative AI Project and Reflection (Lesson E)60 min
Challenge students to design an original, independent creative project where their Agent independently adapts to a Minecraft scenario. Conclude with student demonstrations and formative assessments drawn from the unit Assessment Guide.
Assessment: success criteria
- Student can articulate at least two differences between human cognition and artificial intelligence.
- Student successfully writes code that allows the Agent to detect and respond to in-game environmental triggers.
- Student programs an operational search routine that enables the Agent to find trees.
- Student completes an independent coding project showing adaptive decision-making by the Agent.
Differentiation
Use the prepared classroom presentation slides to walk through sample Agent code step-by-step and pair students during initial coding exercises.
Prompt advanced students to add multi-condition checks and expanded autonomous routines to their tree-hunting and final creative projects.
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.
1What is the primary definition of artificial intelligence emphasized in this unit?
Answer: B. The unit focuses on artificial intelligence as software created to mimic or surpass human intelligence.
2Which in-game entity do students code to exhibit intelligent behavior in Minecraft?
Answer: D. Students write programs specifically to guide the behavior of the Minecraft Agent.
3What specific target is the Agent programmed to search for in Lesson D?
Answer: A. Lesson D is specifically titled 'Code a Tree-Hunting Agent'.
4How do computers model intelligent behavior during programming exercises?
Answer: C. Machines model intelligence through coded logic and algorithms that adapt to environmental data.
5What is the focus of Lesson E in this artificial intelligence unit?
Answer: B. Lesson E directs students to get creative by developing an independent project that teaches the Agent to adapt.
Resources
- Lesson package (.zip)Everything the author attached to this lesson in one download.
- Educator's GuideCoding with Minecraft: Unit 9 - Artificial Intelligence
- Assessment GuideCoding with Minecraft
- Curriculum OverviewCoding with Minecraft
- Presentation SlidesSlide deck to support instruction
- 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 6 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
How long does it take to complete this unit?
Unit 9 consists of five lessons (Lessons A through E), each running approximately 45 to 60 minutes depending on how much time you allocate for coding exploration and the final creative project.
What supporting documents are available to help guide instruction?
The unit includes an Educator's Guide, an Assessment Guide, a Curriculum Overview, and a set of Presentation Slides to assist with structured lesson delivery and evaluation.
Does this unit require a separate Minecraft world file?
Yes, the unit provides a downloadable world specifically prepared for the in-game Agent coding activities.
Adapted from Unit 9: AI by Minecraft Education on Minecraft Education, last updated Feb 4, 2025. This classroom version, the timings and the quiz were written by 9Minecraft Education.























