
- Type
- Lesson plan
- Subject
- Computer Science & Coding
- Topics
- Computer Science
- Ages
- Ages 11-13
- Duration
- 1 hour
- Level
- Intermediate
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.
- 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.
- 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.
- 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.
- 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
Provide unplugged physical sorting and indexing cards before transitioning into MakeCode blocks.
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.
1What is an array in computer science?
Answer: B. An array is defined as a series of places to store multiple values accessed from a single object.
2What term refers to the position number of an item inside an array?
Answer: C. The index specifies the numerical position of an individual element in an array.
3Which method is used in this unit to reorder values stored in an array?
Answer: A. The lesson objectives specify sorting array values using basic sorting algorithms.
4What is the culminating independent project for Unit 8?
Answer: D. Students are asked to design an original project that applies arrays to create artwork in Minecraft.
5Which lesson in this unit focuses on moving entities using array data?
Answer: B. Lesson C is titled 'Teleport with Arrays' and covers manipulating location data in arrays.
Resources
- Lesson package (.zip)Everything the author attached to this lesson in one download.
- Educator's GuideCoding with Minecraft: Unit 8 - Arrays
- Classroom PresentationCoding with Minecraft: Unit 8 - Arrays
- 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 8 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
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.























