Lesson plan

Coding Assessment World

Students code an agent using block-based programming in Tynker or Scratch to design and build a custom structure in Minecraft Creative mode.

Coding Assessment World
Ages
Ages 11-13
Essential question

How can you use block-based code to program an agent to build a complete structure?

Overview

In this computer science lesson, students apply visual programming concepts to command an automated coding agent. By translating procedural block-based code into physical in-game structures, learners develop essential computational thinking, sequencing, and problem-solving skills.

Working inside a Creative mode world, each student designates a build plot and links Minecraft to an external coding environment like Tynker or Scratch. Learners must rely strictly on the agent to place all blocks, debugging their code whenever their automated assistant encounters logical or spatial errors.

Learning objectives

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

  • Mark and identify a personal building site using a named sign and a gate.
  • Program a coding agent to construct a custom structure using blockly code.
  • Debug coding errors by reading instructions aloud and tracing the agent's actions.
  • Document completed code by saving and uploading screenshots to Google Drive for teacher assessment.

Blocks and items used in this lesson

Key vocabulary

Coding Agent
An in-game helper character controlled exclusively through coded instructions.
Blockly Code
A visual programming method using interlocking blocks to create algorithms.
Code Connection
An application that connects Minecraft to coding tools like Tynker or Scratch.
Debugging
The process of identifying and correcting errors within computer code.

Before class

Lesson sequence

  1. Claiming Build Territory

    Students enter the Creative mode world, select an open area for their project, and mark their plot boundary using a gate and a sign containing their name.

  2. Connecting the Code Environment

    After securing their build locations, students launch the Code Connection application and open either Tynker or Scratch to prepare their workspace without needing to move their agent immediately.

  3. Programming the Agent

    Students supply their agent with the necessary building blocks from their Creative inventory and assemble block-based scripts to direct the agent's movement and block placement.

    Remind learners that player avatars are strictly prohibited from placing structure blocks directly.

  4. Debugging and Peer Tracing

    If the agent does not build or move as expected, students read their code aloud or work with a peer to walk through the instructions step by step to identify the bug.

  5. Code Documentation and Assessment

    Students capture a screenshot of their final script, save their project within their chosen coding editor, and upload the image to Google Drive to share with the teacher for review.

Assessment: success criteria

  • The build site is properly identified with a gate and a sign displaying the student's name.
  • All structural blocks are placed solely by the coding agent without avatar assistance.
  • The visual code correctly executes the planned architectural layout.
  • A clear screenshot of the code is uploaded to Google Drive and shared with the teacher.

Differentiation

Support

Have struggling students read their code aloud line by line while a partner role-plays the agent's movements to isolate errors.

Stretch

Encourage advanced students to use Tynker project features to program larger, multi-layered architectural designs.

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. 1Which entity is allowed to place blocks for the building project?

  2. 2How must students identify their designated build plot upon entering the world?

  3. 3What strategy is suggested to help students find bugs when the agent fails to build?

  4. 4Why is this lesson conducted in Creative mode?

  5. 5How do students submit their finished programming work for evaluation?

Frequently Asked Questions

Which coding platforms can be used with Code Connection in this lesson?

Students can use visual block-based platforms such as Tynker or Scratch to write scripts for the coding agent.

Can students manually help their agent build if it runs out of time?

No, the performance expectations state that all construction must be completed exclusively by the coding agent and never by the player avatar.

Adapted from Coding Assessment World by Rebecca Elliott on Minecraft Education, last updated Sep 14, 2017. 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