Applicability
Skill areas: Math, Volume, Cubic Units
Ages: 11-12 yrs old
Grade level: 5th
Students create shapes using code and then determine the number of cubic units that combined shapes would make.
Play with the parameters such as height, width, and amount of lava to predict and test the effects of different sized volcanoes on the earth around it.
Recognize volume as an attribute of solid figures and understand concepts of volume measurement. Measure volumes by counting unit cubes, using cubic units of _cm_, _in_, _ft_, and improvised units. Relate volume to the operations of multiplication and addition by solving conceptual and real world problems involving volume.
This activity requires students to have the Code Connection app open and running with their Minecraft Education Edition.
This activity consists of 2 parts:
Using code, have students create quadrilaterals in Minecraft. For example, a cube with a volume of 1000 cubic units would be:
player.onChat("cube", function () {
blocks.fill(
EMERALD_BLOCK,
pos(0, 0, 0),
pos(10, 10, 10),
FillOperation.Replace
)
})
Have students create quadrilaterals of different sizes and write down the volume for each one using the Cubic Units Worksheet.
Using the four quadrilaterals that your students have already made, have them combine them into one large quadrilateral. For example, if these are the four quadrilaterals:
player.onChat("shape1", function () {
blocks.fill(
EMERALD_BLOCK,
pos(0, 0, 0),
pos(10, 10, 10),
FillOperation.Replace
)
})
player.onChat("shape2", function () {
blocks.fill(
BRICKS,
pos(0, 0, 0),
pos(5, 10, 5),
FillOperation.Replace
)
})
player.onChat("shape3", function () {
blocks.fill(
PLANKS_SPRUCE,
pos(0, 0, 0),
pos(5, 7, 5),
FillOperation.Replace
)
})
player.onChat("shape4", function () {
blocks.fill(
WOOL,
pos(0, 0, 0),
pos(5, 3, 5),
FillOperation.Replace
)
})
Have students add offsets to the code for each shape command to make one large quadrilateral:
player.onChat("shape1", function () {
blocks.fill(
EMERALD_BLOCK,
pos(0, 0, 0),
pos(10, 10, 10),
FillOperation.Replace
)
})
player.onChat("shape2", function () {
blocks.fill(
BRICKS,
pos(10, 0, 0),
pos(5, 10, 5),
FillOperation.Replace
)
})
player.onChat("shape3", function () {
blocks.fill(
PLANKS_SPRUCE,
pos(10, 0, 5),
pos(5, 7, 5),
FillOperation.Replace
)
})
player.onChat("shape4", function () {
blocks.fill(
WOOL,
pos(10, 7, 5),
pos(5, 3, 5),
FillOperation.Replace
)
})
player.onChat("large", function () {
player.runChatCommand("shape1")
player.runChatCommand("shape2")
player.runChatCommand("shape3")
player.runChatCommand("shape4")
})
Calculate the volume of the large quadrilateral based on the volume of the smaller quadrilaterals. Then, confirm that volume by counting the number of blocks created with your program.
Lead a discussion on how the volume would change (or not) if the combined four shapes did not create a perfect quadrilateral (e.g. they were a pyramid instead).