
- Type
- Lesson plan
- Subject
- Computer Science & Coding
- Topics
- Computer Science
- Ages
- Ages 11-13
- Duration
- 1 hour
- Level
- Beginner
How do X, Y, and Z coordinates help us navigate, position objects, and automate tasks in a digital world?
Overview
Understanding spatial coordinates is essential for programming and navigating three-dimensional environments. In this unit, learners investigate the three-axis coordinate system composed of X, Y, and Z values, contrasting fixed world coordinates with relative positions measured from their current location.
Through a combination of unplugged discussions and hands-on coding tasks in Minecraft, students learn how to automate actions, orient themselves across the map, and develop their own creative computational projects.
Learning objectives
By the end of this lesson students will be able to:
- Identify and apply X, Y, and Z coordinates to determine locations in a 3D environment.
- Distinguish between relative coordinates and absolute world coordinates.
- Explain the role of spatial coordinates in programming and game navigation.
- Design an original coding project that applies coordinates to automate actions.
Blocks and items used in this lesson
Key vocabulary
- Coordinates
- A set of numbers used to determine the exact position of a point or object in space.
- X, Y, Z Axes
- The three dimensions representing horizontal position, vertical elevation, and depth.
- World Position
- An absolute, fixed location within the entire game environment.
- Relative Position
- A position calculated in reference to where the player or entity is currently located.
Before class
Lesson sequence
Suggested timing: about 60 minutes in total.
- Introduction to Coordinates15 min
Introduce the three-coordinate grid using visual presentation slides and an unplugged activity. Discuss how X, Y, and Z determine positions in real life and digital space, contrasting world coordinates with relative positions.
- Coding with Coordinates15 min
Transition into Minecraft to observe coordinate values in real time. Guide students through initial coding exercises where they read position data and use coordinate parameters to move or place elements.
- Automating Actions15 min
Direct students to write code that automates repetitive tasks. Have learners experiment with relative coordinates to trigger actions relative to their avatar, as well as absolute coordinates to target exact world points.
- Creative Application and Review15 min
Task students with planning and coding an original project applying their coordinate knowledge. Conclude with a class review discussing the importance of spatial coordinates in coding and navigation.
Assessment: success criteria
- Students accurately describe the difference between relative position and world position.
- Students correctly read and interpret X, Y, and Z values in the game interface.
- Students write working code that utilizes coordinates to manipulate blocks or movement.
- Students demonstrate an original project applying coordinates to solve a design challenge.
Differentiation
Provide visual diagrams of the three axes and starter code templates that clearly separate world and relative position blocks.
Challenge advanced students to automate complex geometric structures that require dynamically calculating offsets using relative coordinates.
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 do the three values in an (X, Y, Z) coordinate system represent?
Answer: B. Coordinates define a specific point in three-dimensional space by tracking horizontal position, height, and depth.
2How does a relative position differ from a world position?
Answer: A. Relative coordinates depend on where an entity currently stands, whereas world coordinates reference static global points.
3Why are coordinates essential when writing code to automate building in Minecraft?
Answer: B. Automated scripts require precise spatial instructions so the game knows where to perform each command.
4Which axis in Minecraft represents vertical elevation or height?
Answer: D. In Minecraft's 3D grid system, the Y coordinate indicates height above the base layer.
5What is the purpose of an unplugged activity in a coding unit?
Answer: C. Unplugged activities teach foundational computer science concepts away from digital screens.
Resources
- Lesson package (.zip)Everything the author attached to this lesson in one download.
- Educator's GuideCoding with Minecraft: Unit 3 - Coordinates
- Classroom PresentationCoding with Minecraft: Unit 3 - Coordinates
- 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 3 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
How long should I budget for this unit?
The unit includes four lessons (A through D), each designed to take roughly 45 to 60 minutes depending on how much time you allocate for coding exploration and project building.
What supplementary materials are provided with this unit?
Teachers can access an Educator's Guide, Classroom Presentation, Assessment Guide, and Curriculum Overview in the supporting files section.
Is previous coding experience required for learners?
No, this content is designed at a beginner level for students aged 11 to 13 and starts with conceptual introductions before moving into code.
Adapted from Unit 3: Coordinates by Minecraft Education on Minecraft Education, last updated Feb 4, 2025. This classroom version, the timings and the quiz were written by 9Minecraft Education.























