
- Type
- Lesson plan
- Grade
- Primary (Grades 3-5)
- Ages
- Ages 8-10
- Duration
- 45 min
- Level
- Beginner
How can we use conditional loops to navigate obstacles and help Arctic animals affected by melting ice?
Overview
In this lesson from the Animal Research Center (ARC) series, students head to the Arctic to locate and help a baby polar bear separated from its family. Rising temperatures caused by climate change are melting sea ice, leaving polar bears with shrinking habitats and limited food supplies.
Students address this rescue challenge by programming their Agent to navigate treacherous Arctic terrain. By applying sequence structures, conditional loops, and the Agent Detect block, learners practice debugging strategies and computational thinking within Minecraft.
Learning objectives
By the end of this lesson students will be able to:
- Apply loops and conditional statements to navigate terrain challenges.
- Test and debug code to resolve navigation errors.
- Demonstrate a resilient coding mindset when solving problems.
- Describe how melting Arctic ice impacts polar bear survival.
Blocks and items used in this lesson
Key vocabulary
- Loop
- A coding structure that repeats a set of instructions multiple times.
- Conditional
- A rule in code that performs actions only when specific criteria are true.
- Agent Detect
- A command block that checks whether an obstacle or path exists in a specified direction.
- Debugging
- Finding and correcting mistakes in a computer program.
Before class
Lesson sequence
Suggested timing: about 45 minutes in total.
- Introduction and Briefing10 min
Introduce the Animal Research Center mission: investigating a separated polar bear cub in the Arctic. Discuss how rising temperatures melt glacial ice and threaten polar bear habitats. Review loops and conditionals using the prepared presentation slides.
- Rescue Activities20 min
Direct students to enter the world and begin the guided tasks:
- Activity 1: Locate the Cub
- Activity 2: The Great Chasm
- Activity 3: Higher Ground
Students use the Agent Detect block and conditional loops to move safely across broken ice.
- Debugging and Extension10 min
Have students test and refine their code when their Agent encounters barriers. Students who complete the core activities can move on to the Bonus Activity: Separated Family.
- Review and Formative Assessment5 min
Bring the class together to review the concepts of loops, conditionals, and Agent inventory through quick check-in questions.
Assessment: success criteria
- Student accurately constructs conditional loops to direct the Agent across obstacles.
- Student tests their program and debugs errors when the Agent is blocked.
- Student correctly explains the role of the Agent Detect block during check-in questions.
Differentiation
Pair students together to step through the Agent Detect logic before running their loops.
Challenge early finishers to complete the Bonus Activity: Separated Family using minimal lines of code.
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 coding concept repeats instructions over and over?
Answer: B. A loop is used in programming to repeat a set of commands multiple times.
2True or False: The Agent has its own inventory in Minecraft.
Answer: A. The Agent is equipped with its own inventory to carry blocks and items.
3What primary Arctic issue creates problems for polar bears in this lesson?
Answer: C. Rising temperatures melt Arctic ice, reducing habitat area and food availability for polar bears.
4What does the Agent Detect block do?
Answer: B. The Agent Detect block senses whether an obstacle or block exists in a specific direction.
5Which of the following is the bonus activity included in the lesson?
Answer: D. Separated Family is designated as the lesson's bonus activity.
Resources
- Lesson package (.zip)Everything the author attached to this lesson in one download.
- Coding Fundamentals Part 1: Polar Bear RescueEDU Guide and Formative Assessment
- Coding Fundamentals Part 1: Polar Bear RescueClassroom Presentation
- Coding Fundamentals Part 1: Animal Research CenterCurriculum Overview
- Animal Research TemplateUse this lesson plan and student research template if you want to conduct the research portion of this computer science unit.
- Lesson worldOpens the world page in Minecraft Education (sign-in with a school account may be needed).
Part of the Coding Fundamentals curriculum
This is lesson 10 of 17 in Coding Fundamentals.
- Basic Moves and the Agent
- Coding Challenge
- Dinosaur Run
- Earth’s Moon & Mars
- Ganymede (Jupiter's Moon) & Saturn's Rings
- Gray Wolves
- Mercury and Venus
- Minecraft Space Center
- Panda's Protected Habitat
- Polar Bear Rescue
- Revisiting Biomes
- Revisiting Planets
- Sea Turtle Assistance
- The Experiment
- Uranus’ Rings and Neptune's Moon, Triton
- We Need Beets!
- Wild West
Frequently Asked Questions
Does the Animal Research component happen inside Minecraft?
No. If you choose to include the Animal Research extension, it takes place outside of Minecraft and requires internet access for student research.
What age group is this coding lesson designed for?
The lesson is tailored for beginner computer science students aged 8 to 10.
Adapted from Polar Bear Rescue by Minecraft Education on Minecraft Education, last updated Sep 16, 2023. This classroom version, the timings and the quiz were written by 9Minecraft Education.






















