Download presentation
Presentation is loading. Please wait.
1
This represents 1 liter of water.
2
How many liters will it take to fill this tank?
How can we find this? What do we know? L=4 liters long H=3 liters high W=3 liters wide
3
The bottom row is 3 by 4. 3x4=12
4
Now they are 3 layers of 12
5
12x3=36 Liters 3x3x4=36 LxHxW=Volume
6
How many liters will it take to fill this tank?
How can we find this? What do we know? L=4 liters long H=3 liters high W=3 liters wide
7
Let’s measure the tank The length is 10 liters wide What do we know? L=10 liters long
8
Let’s measure the tank The tank is 10 liters high What do we know? L=10 liters long H=10 liters high
9
Let’s measure the tank The tankis 10 liters wide. What do we know? L=10 liters long H=10 liters high W=10 liters wide
10
How many liters of water are there in this tank?
11
10x10x10=1000 liters 1000 liters=1 kiloliter This holds 1 kiloliter
12
The Big Idea: Water can be measured in units such as milliliters, liters, and kiloliters. 1000 milliliters = 1 liter 1000 liters = kiloliter
13
The Fill Command /fill ~ ~ ~ ~L ~H ~W block
At this point students should sign on to Minecraft on a flat grass creative world.
14
To write the fill command hit the “/” on the keyboard and write “fill in lowercase writing.
15
This is a tilde ~ A tilde is used in code to tell the computer a number will be inputted. There are 2 set of 3 tildes in the fill command. The 1st set is directional and we will not need them. The 2nd set allows us it enter Length, Height, and Width.
16
Now put 3 tildes with spaces between them
Now put 3 tildes with spaces between them. To get a titda to show up push space and “tab” or push “shift and the tilde button the sametime. This set of 3 tildes are use for directional buildings and we will not need to put numbers on them. There is ALWAYS 1 SPACE BEFORE a tilde. Put in your 3 tildes with spaces and check a classmates code /fill ~ ~ ~
17
In the 2nd set of 3 tildes enter the length of 4 and height of 2 and a width of 6. Enter this into your code and check a classmates. There are NO SPACES between the tildes and numbers. /fill ~ ~ ~ ~4 ~2 ~6
18
/fill ~ ~ ~ ~4 ~2 ~6 gold_block
Hit a space and enter your block, start to type the block name and use the “tab” button to predict what block you want. The hit enter and run the code. /fill ~ ~ ~ ~4 ~2 ~6 gold_block
19
Did you get this? If so good job! What is funny about its measurements?
20
Break the corner were you came out of, that corner is important
Break the corner were you came out of, that corner is important. It is the location point to start the code.
21
What is funny about its measurements
What is funny about its measurements? We ask for L=4 H=2 and W=6 but we got L=5 H=3 W=7. What pattern do you see in these numbers. L W
22
If you said that the code increased all numbers by 1 you got it
If you said that the code increased all numbers by 1 you got it! This is because in many coding languages 0 is counted as 1. So we will always need to lower the dimensions by 1 to write the fill command.
23
Let’s erase this, stand at your starting point and hit “/” and then the up arrow. You will see your old code. Change your block to “air” /fill ~ ~ ~ ~4 ~2 ~6 gold_block to /fill ~ ~ ~ ~4 ~2 ~6 air
24
Now let's bring up the old code and lower the length, height, and width by 1.
/fill ~ ~ ~ ~4 ~2 ~6 gold_block to /fill ~ ~ ~ ~3 ~1 ~5 gold_block And we get a rectangular prism that is 4 long, 2 high and 6 wide.
25
Now write the fill command
/fill ~ ~ ~ ~5 ~3 ~7 glass 0 hollow The 0 after the glass is for a clear glass block. Change the number if you want your glass colored. Also, hit “tab” to spell words for you. If “tab” doesn’t work you have a bug in your code.
26
Did you get this?
27
Mark your starting coner and mark the inside’s starting corner.
28
The inside of the tank is 4 long, 2 high and 6 wide
The inside of the tank is 4 long, 2 high and 6 wide. Use the fill command to fill it with water. /fill ~ ~ ~ ~3 ~1 ~5 water
29
You have a tank!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.