Lesson plan

Unit 1: The Agency

Introduce young learners to coding fundamentals by using MakeCode chat commands to control, move, and build with the Minecraft Agent.

Unit 1: The Agency
Ages
Ages 6-7
Duration
1 hour
Essential question

How can we use chat commands and code to instruct our Agent to move and build in Minecraft?

Overview

The Agency introduces early elementary students to foundational computer science concepts by giving them direct control over their in-game helper, the Agent. Students explore how instructions function in computing by learning what code is and watching their digital commands translate into real-time actions inside the Minecraft world.

Learning objectives

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

  • Describe the basic concept of coding.
  • Navigate player movement and inventory controls within Minecraft.
  • Create programs using Microsoft MakeCode and Code Builder.
  • Program the Agent to turn, walk, destroy blocks, and build structures using on chat commands.

Blocks and items used in this lesson

Key vocabulary

Coding
Writing a clear set of step-by-step instructions that a computer can understand and follow.
Agent
A programmable helper in Minecraft that carries out tasks based on the code you write.
MakeCode
The block-based visual coding environment accessed through Code Builder in Minecraft.
On Chat Command
A coding block that runs a set of instructions when a designated word is entered into the game chat.
Inventory
The in-game storage screen used to manage items and building blocks for the player or Agent.

Before class

Lesson sequence

Suggested timing: about 60 minutes in total.

  1. Warm-up: Player Navigation and Coding Basics10 min

    Introduce the meaning of coding as giving instructions to a computer. Have students launch the world, practice basic player navigation, and open their inventory menu to get comfortable with in-game controls.

  2. Lesson 1: Get Familiar with Your Agent15 min

    Guide students to open Code Builder and access Microsoft MakeCode. Follow the scaffolded steps to code a conversation with the Agent, call the Agent to the player position, and write commands that make the Agent turn.

  3. Lesson 2: Move and Destroy15 min

    Teach students how to program the Agent to travel across the ground using on chat movement commands. Conclude the sequence by coding the Agent to target and chop down a tree.

  4. Lesson 3: Agent Inventory and Building15 min

    Demonstrate how to access the Agent inventory and load it with materials. Direct students to write code that commands the Agent to place blocks and construct a bridge across an obstacle.

  5. Reflection and Formative Assessment5 min

    Check student understanding using the formative assessment prompts located at the conclusion of the educator guide, reviewing key terms like commands and coding.

Assessment: success criteria

  • Student accurately explains what coding is in simple terms.
  • Student maneuvers their player character and accesses inventory screens.
  • Student uses MakeCode chat commands to control Agent movement and turns.
  • Student successfully programs the Agent to destroy a tree and construct a bridge.

Differentiation

Support

Walk through typing chat commands step-by-step or pair emergent readers with a partner to help enter command words.

Stretch

Prompt students to experiment with combining turning commands and movement blocks to have their Agent navigate around obstacles before building.

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 tool in Minecraft: Education Edition is used to write programs for the Agent?

  2. 2Which code block triggers the Agent to act when a player types a specific word in Minecraft?

  3. 3What natural object is the Agent coded to break during Lesson 2?

  4. 4What structure do students program their Agent to construct in Lesson 3?

  5. 5What is the primary role of the Agent in this unit?

Resources

Part of the Computing with Minecraft curriculum

This is lesson 1 of 9 in Computing with Minecraft.

  1. Unit 1: The Agency
  2. Unit 2: City Planner
  3. Unit 3: Parks & Recreation
  4. Unit 4: A Zoo
  5. Unit 5: Wind Power
  6. GameCode
  7. Hour of Code: Escape Estate
  8. Hour of Code: Generation AI
  9. Hour of Code: The Show Must Go On

Frequently Asked Questions

Do 6- to 7-year-old students need prior coding experience for this unit?

No prior coding experience is necessary. The unit is designed for beginners and uses a scaffolded gradual release model to guide young learners through their first MakeCode commands.

Where can teachers find the formative assessment tools for these lessons?

Formative assessments for each of the three lessons are located at the end of the educator guide in the supporting files.

Adapted from Unit 1: The Agency by Minecraft Education on Minecraft Education, last updated Sep 15, 2023. 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