
- Type
- Lesson plan
- Subject
- Computer Science & Coding
- Topics
- Computer Science
- Ages
- Ages 11-13
- Duration
- 1 hour
- Level
- Beginner
How can we use sequencing and decomposition to instruct an in-game Agent to solve problems?
Overview
This introductory lesson welcomes students aged 11 to 13 to computer science and fundamental programming principles. Learners explore core computational thinking practices, focusing on breaking complex problems into manageable parts and arranging instructions in an exact order.
Using Minecraft Education and the integrated Microsoft MakeCode block editor, students explore navigation on keyboard or touch controls and command an in-game helper known as the Agent. By translating conceptual steps into visual code blocks, learners see the immediate effects of their code inside the Minecraft world.
Learning objectives
By the end of this lesson students will be able to:
- Navigate the Minecraft Education environment using keyboard or touch inputs.
- Open and navigate the Code Builder interface within the game.
- Program basic Agent actions using visual MakeCode blocks.
- Apply sequencing and decomposition to break tasks into ordered instructions.
Blocks and items used in this lesson
Key vocabulary
- Code Builder
- The built-in tool in Minecraft Education used to access coding editors like MakeCode.
- Agent
- A programmable helper character in Minecraft Education that carries out coded directions.
- Sequencing
- The process of placing commands in the exact order needed to achieve the correct result.
- Decomposition
- Breaking down a large or complex task into smaller, easier-to-manage steps.
- On Chat Command
- A coding block that triggers an action when a specific word is entered into the game chat.
Before class
Lesson sequence
Suggested timing: about 60 minutes in total.
- Introduction & Interface Tour15 min
Present the introductory slides to establish the value of computer science. Guide students through launching the lesson world and practicing world navigation using either keyboard controls or touch devices.
- Accessing Code Builder & Meeting the Agent15 min
Demonstrate how to open Code Builder to reach the MakeCode workspace. Introduce the Agent and show students how to drag command blocks onto the workspace to direct its movements.
- Decomposition & Coding Practice20 min
Guide students through introductory MakeCode tutorials. Have students practice decomposition by breaking an Agent movement task into simple steps, connecting blocks in sequence, and using chat commands to trigger the code.
- Reflection & Formative Assessment10 min
Convene as a whole group to review key takeaways. Ask students to share how they accessed Code Builder, explain what an on chat command does, and reflect on why sequencing is essential for the Agent.
Assessment: success criteria
- Student can demonstrate how to open Code Builder and drag a coding block into the workspace.
- Student accurately explains the function of an on chat command.
- Student can successfully order MakeCode blocks to move the Agent in a planned sequence.
- Student describes how decomposition helps solve coding problems by dividing tasks into smaller pieces.
Differentiation
Offer one-on-one assistance with input controls and provide a step-by-step visual demonstration for placing MakeCode blocks.
Have students experiment with chaining multiple movement blocks together to guide the Agent along longer paths.
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.
1How do players access the MakeCode programming workspace in Minecraft Education?
Answer: B. Code Builder is the in-game interface that opens the coding environment in Minecraft Education.
2What is the primary role of the Agent in this lesson?
Answer: D. The Agent is a coding helper character introduced to execute block-based movement instructions.
3What computational thinking skill involves breaking a large problem into smaller, manageable parts?
Answer: C. Decomposition is the practice of dividing complex challenges into smaller and simpler tasks.
4What triggers an action programmed inside an on chat command block?
Answer: A. An on chat command runs its enclosed blocks when the designated text is sent through the in-game chat.
5Why is proper sequencing important when programming the Agent?
Answer: C. Sequencing ensures that every step occurs in the proper order so the Agent performs the intended actions.
Resources
- Lesson package (.zip)Everything the author attached to this lesson in one download.
- Educator's GuideCoding with Minecraft: Unit 1 - Introduction
- Classroom PresentationCoding with Minecraft: Unit 2 - Events and Event Handlers
- Assessment GuideCoding with Minecraft
- Curriculum OverviewCoding with Minecraft
- Lesson worldOpens the world page in Minecraft Education (sign-in with a school account may be needed).
Part of the Code with Minecraft curriculum
This is lesson 1 of 11 in Code with Minecraft.
- Unit 1: Introduction
- Unit 2: Events
- Unit 3: Coordinates
- Unit 4: Variables
- Unit 5: Conditionals
- Unit 6: Functions
- Unit 7: Iteration
- Unit 8: Arrays
- Unit 9: AI
- Unit 10: Final Project
- Hour of AI: Generation AI
Frequently Asked Questions
Can students participate if they do not have a standard keyboard and mouse?
Yes, the lesson supports navigation using either keyboard controls or touch-enabled devices.
What coding environment is used inside Minecraft Education for this lesson?
Students use Microsoft MakeCode, which is accessible directly inside the game through the Code Builder interface.
Where are the teacher presentation slides and printable assessment materials located?
They are provided in the Supporting Files section alongside the Educator's Guide and Curriculum Overview.
Adapted from Unit 1: Introduction by Minecraft Education on Minecraft Education, last updated Feb 4, 2025. This classroom version, the timings and the quiz were written by 9Minecraft Education.























