1 00:00:00,429 --> 00:00:07,309 I'm Lydia Winters, Mojang's brand director and we made a little game called Minecraft. 2 00:00:07,309 --> 00:00:12,330 My favorite thing to do in Minecraft is explore. I love adventuring in caves and seeing what 3 00:00:12,330 --> 00:00:17,500 I can find. As someone who isn't a programmer, I'm really excited to go through the Minecraft 4 00:00:17,500 --> 00:00:25,110 lessons and actually learn some coding myself. 5 00:00:25,110 --> 00:00:29,820 The last level needed lots of moveForward(); blocks. It would be easier if we could just tell the computer to perform the move forward 6 00:00:29,820 --> 00:00:36,270 command four or five times. Luckily for us, computers are really good at repeating commands 7 00:00:36,270 --> 00:00:42,910 with repeat loops. When building Minecraft, we use repeat loops to place all the initial 8 00:00:42,910 --> 00:00:48,760 materials for creating a new world. That's thousands and thousands of blocks. We also 9 00:00:48,760 --> 00:00:55,329 use loops in little ways, for example to make Alex's feet move back and forth as she walks. 10 00:00:55,329 --> 00:01:01,350 Repeat loops are a powerful part of programming. 11 00:01:01,350 --> 00:01:06,060 Night is coming so in the next couple of levels,we're going to build a house to stay safe. We're going to use the repeat block to do 12 00:01:06,060 --> 00:01:12,970 this very easily. To build a wall of our house, we can either tell Alex to move forward and 13 00:01:12,970 --> 00:01:18,280 place planks four times or we can tell her to move forward and place one plank, then 14 00:01:18,280 --> 00:01:23,920 take this command and use the repeat block to have her perform the action multiple times. 15 00:01:23,920 --> 00:01:27,909 Now we'll click on the repeat block and tell her how many times we want her to perform 16 00:01:27,909 --> 00:01:32,329 this action. Now let's build our house before night falls! Have fun.