
- Type
- Lesson plan
- Subject
- Computer Science & Coding
- Topics
- Computer Science
- Grade
- Primary (Grades 3-5)
- Ages
- Ages 8-10
How can command blocks and mechanical tickers be used to model the passage of time across different number bases?
Overview
Time measurement relies on structured numerical cycles, specifically twelve hours on a standard clock and sixty minutes in an full hour. Understanding how discrete intervals shift across the ones, tens, and hour places helps students build strong mental models of place value and time calculation.
In Minecraft, students explore these concepts by constructing a working digital timepiece inside a flat world. Using impulse and repeat command blocks alongside a minecart ticker, teams code individual columns that track minutes and hours through physical block stacks.
Learning objectives
By the end of this lesson students will be able to:
- Build a functioning digital clock mechanism in Minecraft using command blocks and a minecart ticker.
- Implement the testforblock and setblock commands to track and update time intervals.
- Explain the three number bases used in the clock system for single minutes, tens of minutes, and hours.
- Collaborate within a team of three to construct, test, and debug assigned clock columns.
Blocks and items used in this lesson
Minecart
Detector Rail
Powered Rail
Rail
Key vocabulary
- testforblock
- A command that checks whether a specific block occupies a designated coordinate.
- setblock
- A command that places or replaces a specific block at an exact location.
- minecart ticker
- A moving minecart mechanism used to trigger commands at steady intervals to keep time.
- number base
- The number of unique digits or values a counting system uses before advancing to the next column.
Before class
Lesson sequence
- Observe and Infer
Display the running teacher-built clock on a projector. Prompt students to observe how it operates like a digital clock using stacks of blocks rather than standard written numbers.
Have students record notes and sketches in their notebooks while answering guiding questions about the current time, rounded time, block counts before a column flips, and how the machine functions.
- Group Assembly
Divide students into teams of three and have each group open their own flat world. Assign one student to the 1s column, one to the 10s column, and one to the hours column.
- Build and Code
Students construct their assigned columns and enter the testforblock and setblock instructions into impulse and repeat command blocks. Teams build the minecart ticker to drive the timing cycle.
Partners work together to debug code and reference the provided video tutorials for column coding and ticker construction as needed.
- Debrief and Analysis
Bring the class together to discuss the driving mechanics. Guide students to identify that the clock incorporates three different bases: base 10 for the ones column of minutes, base 60 for total minutes, and base 12 for the hours.
Assessment: success criteria
- Student successfully constructs a digital-style clock that keeps accurate time in Minecraft.
- Student accurately identifies and explains the three number bases used (base 10 for minute ones, base 60 for minutes, base 12 for hours).
- Student correctly applies testforblock and setblock syntax within impulse and repeat command blocks.
- Student demonstrates the ability to add and subtract units of time.
Differentiation
Allow students extra time to review the column-specific tutorial videos and provide guided support with keyboard copy-and-paste shortcuts.
Have students practice solving elapsed time addition and subtraction word problems using their completed clock as a physical reference.
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.
1Which two Minecraft commands are primarily used to operate the clock mechanism?
Answer: B. The source specifies building the clock using command blocks with the testforblock and setblock commands.
2What mechanism is constructed to keep time in the Minecraft clock?
Answer: C. The lesson explicitly directs students to build a minecart ticker to keep time.
3How many students are placed in each building group?
Answer: A. The instructions state to put students into groups of three, assigning one student to each column.
4According to the lesson, what base is used for the ones column of the minutes?
Answer: D. The assessment criteria state that the ones column for the minutes uses base 10.
5Which two types of command blocks does the assessment specify students must use?
Answer: A. The performance expectations state that students must be able to use impulse and repeat command blocks.
Resources
- Rubric
- Lesson worldOpens the world page in Minecraft Education (sign-in with a school account may be needed).
Frequently Asked Questions
Why is it recommended that teachers build the clock before leading the lesson?
Building the clock in advance ensures the teacher is familiar with the command block syntax and minecart ticker mechanics, making it easier to assist students with debugging and troubleshooting.
How does the clock display numbers inside the Minecraft world?
The clock functions like a digital timepiece, but it represents numbers through changing vertical stacks of blocks rather than traditional numeral characters.
Adapted from Make a Clock by Minecraft Education on Minecraft Education, last updated Sep 16, 2023. This classroom version, the timings and the quiz were written by 9Minecraft Education.















