Lesson plan

Function Reefs

Students code coral reef clusters using functions in MakeCode, program the Agent to build specific reef formations, and present their research with 3D models.

Function Reefs
Ages
Ages 8-18
Essential question

How can computer programming functions help us model the formation and structure of different coral reef ecosystems?

Overview

Our oceans feature four distinct coral reef formations: fringing reefs, barrier reefs, atolls, and patch reefs. Each reef type develops under particular environmental conditions and supports unique marine biodiversity, while also confronting serious survival challenges such as coral bleaching and habitat destruction.

Learning objectives

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

  • Identify the four major types of coral reefs and their real-world examples.
  • Write MakeCode functions to assemble modular coral clusters in Minecraft.
  • Program the Agent to place coral clusters and construct a designated reef layout.
  • Export a 3D reef model using a Structure Block and present research on reef formation, biodiversity, and ecological threats.

Blocks and items used in this lesson

Key vocabulary

Fringing Reef
A coral reef that forms adjacent to land along coastlines and shallow shores.
Barrier Reef
A coral reef separated from the mainland or island coast by a deep channel or lagoon.
Atoll
A circular coral reef formation that encloses a central body of water called a lagoon.
Patch Reef
An isolated, relatively small outcrop of coral growing on shallow sea floors.
Function
A named block of computer code that performs a specific set of instructions and can be called repeatedly.
Structure Block
An in-game Minecraft block used to save, load, and export 3D architectural models.

Before class

Lesson sequence

  1. Introduction & Reef Types

    Introduce the four global reef types: fringing reefs, barrier reefs, atolls, and patch reefs. Review real-world examples, including South Molokai, the Great Barrier Reef, Aldabra Atoll, and Buck Island Reef, discussing how different environments shape reef formation.

  2. Group Assignments & Rubric Creation

    Organize students into small teams and assign each group one specific reef type. Collaborate with the class to establish a shared evaluation rubric outlining expectations for coding, biological research, and presentations.

  3. Coding Coral Functions

    Students use MakeCode to program distinct coral clusters, assigning each cluster to a named function. Teams then code the Agent to navigate the world and call these functions repeatedly to form their assigned reef pattern.

  4. 3D Export & Presentation Setup

    Groups place a Structure Block to capture and export a 3D model of their finished reef. They import the 3D asset into a PowerPoint deck detailing reef formation, geographic location, biodiversity, and threats like bleaching.

  5. Class Presentations & Comparison

    Student groups present their research and virtual builds to the class. Peers take notes during each presentation to compare the characteristics and preservation needs across all four reef systems.

Assessment: success criteria

  • MakeCode programs successfully define and execute functions to assemble coral clusters using the Agent.
  • The in-game reef model accurately represents the assigned formation (fringing, barrier, atoll, or patch).
  • The final presentation integrates an exported 3D model and covers reef formation, real-world locations, biodiversity, and environmental risks.
  • Peer notes reflect an accurate understanding of the differences between the four reef classifications.

Differentiation

Support

Provide starter code blocks demonstrating how to command the Agent and structure a basic coral cluster function.

Stretch

Challenge students to code multiple unique cluster functions to vary the biodiversity and density across their reef structure.

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 real-world location is cited as an example of an atoll?

  2. 2How do students build their reef models in the Minecraft world?

  3. 3What tool is used to transfer the Minecraft reef into a slide deck?

  4. 4Which example reef represents a patch reef in this lesson?

  5. 5Which computer science concept is central to generating the coral clusters?

Resources

Frequently Asked Questions

How is the grading rubric developed for this lesson?

The teacher and students collaborate at the start of the project to create a shared rubric that guides student progress and sets assessment expectations.

What slide presentation tool does the lesson specify for 3D models?

The lesson plans for students to import their 3D models directly into PowerPoint using files exported via Minecraft Structure Blocks.

What specific environmental threats should students investigate?

Student research and presentations must address coral bleaching, environmental destruction, and how human activities impact reef ecosystems.

Adapted from Function Reefs by Minecraft Education on Minecraft Education, last updated Sep 16, 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