Lesson plan

Unit 8: Arrays

Students explore computer science arrays, organize and sort data in MakeCode, and apply their skills to build projects and artwork in Minecraft.

Unit 8: Arrays
Ages
Ages 11-13
Duration
1 hour
Essential question

How do arrays allow programmers to store, organize, and manipulate collections of data efficiently?

Overview

In this computer science unit, students explore arrays as foundational structures designed to store multiple values in a series of locations accessed through a single object. By investigating real-life groupings and practical code examples, learners discover how retaining information in an organized collection simplifies data management and retrieval.

Using MakeCode alongside a dedicated Minecraft world, students progress from introductory array concepts to building a zoo, teleporting across the environment, and applying sorting algorithms. The unit culminates in an open-ended coding task where students use their knowledge of array elements and indexes to generate original in-world artwork.

Learning objectives

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

  • Explain the concept of an array as a single object storing multiple related values
  • Identify array elements and indexes within the MakeCode programming interface
  • Apply operations to add, organize, and sort array data using basic algorithms
  • Design and code an original piece of Minecraft artwork utilizing arrays

Blocks and items used in this lesson

Key vocabulary

Array
A data structure that stores a series of related values under a single object name.
Element
An individual item or value kept within an array.
Index
The numerical position used to identify and access a specific element in an array.
Sorting Algorithm
A step-by-step process used by code to arrange array values in a particular order.

Before class

Lesson sequence

Suggested timing: about 60 minutes in total.

  1. Lesson A: Introduction to Arrays15 min

    Introduce arrays as a series of storage places for multiple related items. Discuss real-life collections, examine how elements and numerical indexes work in MakeCode, and practice through an unplugged activity.

  2. Lesson B: Build a Zoo with Arrays15 min

    Guide students through coding activities where they construct a zoo in Minecraft. Have learners practice using array operations to store, add, and arrange different items within their code.

  3. Lesson C: Teleport with Arrays15 min

    Lead students through coding exercises that manage location data inside arrays to teleport players or entities. Introduce basic sorting algorithms to arrange array values dynamically.

  4. Lesson D: Get Creative with Arrays15 min

    Challenge students to design an independent project that applies array indexing, operations, and sorting to generate an original piece of artwork in the Minecraft world, evaluating progress with formative checkpoints.

Assessment: success criteria

  • Student accurately defines an array and gives real-world examples of grouped data.
  • Student correctly identifies array elements and their corresponding numerical indexes in MakeCode.
  • Student demonstrates the ability to add, arrange, or sort array values using code.
  • Student completes an independent coding project that generates in-world artwork with arrays.

Differentiation

Support

Provide unplugged physical sorting and indexing cards before transitioning into MakeCode blocks.

Stretch

Challenge students to use sorting algorithms on multi-item lists within their independent artwork project.

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 is an array in computer science?

  2. 2What term refers to the position number of an item inside an array?

  3. 3Which method is used in this unit to reorder values stored in an array?

  4. 4What is the culminating independent project for Unit 8?

  5. 5Which lesson in this unit focuses on moving entities using array data?

Resources

Part of the Code with Minecraft curriculum

This is lesson 8 of 11 in Code with Minecraft.

  1. Unit 1: Introduction
  2. Unit 2: Events
  3. Unit 3: Coordinates
  4. Unit 4: Variables
  5. Unit 5: Conditionals
  6. Unit 6: Functions
  7. Unit 7: Iteration
  8. Unit 8: Arrays
  9. Unit 9: AI
  10. Unit 10: Final Project
  11. Hour of AI: Generation AI

Frequently Asked Questions

What age group and experience level is this curriculum intended for?

This unit is designed for intermediate computer science students between the ages of 11 and 13.

How much instructional time should be allocated for each lesson?

Each of the four lessons (A through D) takes approximately 45 to 60 minutes, depending on the time allowed for coding exploration.

Where can teachers find specific rubrics and presentation materials?

The Educator's Guide, Classroom Presentation, Assessment Guide, and Curriculum Overview are available under the Supporting Files section.

Adapted from Unit 8: Arrays by Minecraft Education on Minecraft Education, last updated Feb 4, 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