8-10 yrs old
Math & Economics
Use Code Builder to build a rail line representing number lines, line segments, and rays.
January 25, 2019
World file for student use
Before beginning, students should be able to create player chat commands and have some experience and understanding of agent movement.
Agents can be used to place blocks from their inventory in any direction.
Agents can place items like rail on top of blocks.
Agents can carry more than one type of block or item in their inventory slots.
Points, lines, line segments, and rays are used to represent numbers in two dimensions.
This activity can be completed by individual students, or by students working in pairs sharing the same world.
Students will be using chat commands to build four rail segments that represent:
1. At the spawn point students will find an NPC that will explain their first task. A model rail line and written instructions can be found on an adjacent chalkboard.
Students are to use their agent to place 50 gravel blocks parallel to the red sandstone. They are to then code their agent to place 50 rails on top of the gravel blocks. Every 10th rail should be an regular rail that is used to designate each number on the line.
Students should be encouraged to explore what commands work best, but students new to Code Builder will have success using these three commands to accomplish the task:
First on chat command (With player standing on top of the red sandstone block next to the number 0) . . .
Second on chat command (with gravel in agent inventory and agent at the starting point facing the intended direction) . . .
Third on chat command (with regular rail in inventory slot 2 and powered rail in slot 1 and the agent at the starting point facing the intended direction) . . .
The agent will complete the first segment of the rail line. The command can be issued again, or encourage students to experiment with the loop command:
repeat (5) times do
2. The second challenge is to use similar commands to instruct the agent to first build the gravel rail bed and then build a rail line covering a three-number line segment of their choice. Students can copy and then modify their code from the previous task.
3. The third challenge requires students to fill in a line completely between the two arrows. NPCs are located at each end to remind the students that the arrows represent a line continuing in both directions.
4. The final challenge asks the students to use similar code to construct a ray. They get to determine the starting point and the rail line will continue in the direction of the arrow off into the air. Students riding this ray will find themselves splashing into a pond at the end.
Students will demonstrate their understanding of agent commands by coding their agent to build a gravel bed to place rails upon.
They will use code to place rails that represent numbers and the space between numbers on top of the gravel bed.
They will use a repeat loop to instruct their agent to build 5 rail segments.
Students will generate several 3D representations of lines, line segments, and rays.
Students should be able to answer the following questions:
Sign in with your Microsoft account and sign up for the Minecraft: Education Edition newsletter. We promise to respect your inbox.