Lesson plan

Island 2

Program the Minecraft Agent using Python if-statements, booleans, and else conditions across six island tasks to deliver an iron ingot to the mayor.

Island 2
Ages
Ages 11-18
Essential question

How can we use Python conditional statements to help an automated Agent make decisions and solve sequential problems?

Overview

In the Kingdom of the Floating Islands, students explore how computers make decisions through conditional logic. Building on foundational concepts from previous lessons, this unit teaches learners how to structure Python if and else statements, evaluate booleans, and compare integers to solve technical challenges.

Students deploy their in-game Agent to navigate six distinct island zones: Weather, Mine 1, Forest, Farm, Mine 2, and the Blacksmith. By breaking tasks down through decomposition and ordering their commands with proper sequencing, learners automate the Agent to complete tasks and retrieve an iron ingot to present to the mayor.

Learning objectives

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

  • Write Python if and else statements to make decisions based on boolean values and integer comparisons.
  • Apply sequencing to order programming steps correctly for the Agent.
  • Decompose complex island tasks into smaller, codable instructions.
  • Complete all six island challenges and deliver an iron ingot to the mayor.

Blocks and items used in this lesson

Key vocabulary

If Statement
A programming instruction that executes a block of code only when a specified condition evaluates to true.
Else Statement
An alternative code block that executes when the condition in the preceding if statement is false.
Boolean
A data value that can represent only one of two states: true or false.
Decomposition
The process of breaking a complex problem down into smaller, manageable, and codable parts.
Sequencing
Placing commands in the exact order required for a computer program to run correctly.

Before class

Lesson sequence

Suggested timing: about 60 minutes in total.

  1. Warm-up & Introduction10 min

    Introduce the Kingdom of the Floating Islands and explain that this mission builds directly upon Island 1. Discuss how computers make decisions using conditional logic, and review the syntax for Python if statements, else blocks, integer comparisons, and boolean checks.

  2. Exploration & Activities 1-320 min

    Guide students into their Python Notebooks to begin programming the Agent. Students apply sequencing and decomposition to tackle the first three island locations:

    • Activity 1: Weather
    • Activity 2: Mine 1
    • Activity 3: Forest
  3. Advanced Challenges & Activities 4-620 min

    Learners proceed through the remaining three coding zones, expanding their use of conditions to resolve more complex problems:

    • Activity 4: Farm
    • Activity 5: Mine 2
    • Activity 6: Blacksmith
  4. World Completion & Reflection10 min

    Have students take the iron ingot obtained from their tasks and hand it to the mayor to complete the world. Conclude with a brief class discussion on how conditional decisions enabled the Agent to accomplish tasks that the player could not perform alone.

Assessment: success criteria

  • Student accurately constructs Python if and else statements in their notebook.
  • Student successfully uses integer and boolean comparisons to guide Agent decisions.
  • Student completes all six island coding challenges in sequence.
  • Student obtains and delivers the iron ingot to the mayor.

Differentiation

Support

Pair students to collaborate on their conditional logic and trace the code sequence step by step before running it.

Stretch

Challenge learners to optimize their Python code by eliminating redundant conditional checks in the later activities.

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. 1What core programming structure is introduced in Island 2 to allow the Agent to make decisions?

  2. 2What item must be delivered to the mayor to finish Island 2?

  3. 3Which location is NOT one of the six coding activity zones on Island 2?

  4. 4What computational thinking skill involves dividing a large challenge into smaller, codable pieces?

  5. 5When does the code inside an 'else' block execute?

Resources

Part of the Python Island curriculum

This is lesson 2 of 6 in Python Island.

  1. Island 1
  2. Island 2
  3. Island 3
  4. Island 4
  5. Island 5
  6. Island 6

Frequently Asked Questions

Is completion of Island 1 mandatory before starting Island 2?

Island 2 builds upon the Agent skills from Island 1, but students with basic Python knowledge can start here to focus directly on conditional logic.

How can I verify that a student has finished the entire lesson?

A student has finished once they have completed all six coding activities and handed the resulting iron ingot to the mayor in-game.

Which coding environment is used within this Minecraft world?

Students write text-based code directly using Python Notebooks integrated into Minecraft Education.

Adapted from Island 2 by Minecraft Education on Minecraft Education, last updated Mar 19, 2025. 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