[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.10,0:00:05.06,Default,,0000,0000,0000,,My name is Jens Bergensten, but I'm better known as Jeb. I'm the lead developer on Minecraft Dialogue: 0,0:00:05.06,0:00:13.39,Default,,0000,0000,0000,,here at mojang.com. I think I was 11 or maybe 12 and I started programming because I wanted Dialogue: 0,0:00:13.39,0:00:17.75,Default,,0000,0000,0000,,to make games. One of my father's friends told me that in order to make games you need Dialogue: 0,0:00:17.75,0:00:26.09,Default,,0000,0000,0000,,to learn how to program. So that's how I got started. I like designing and figuring out Dialogue: 0,0:00:26.09,0:00:33.33,Default,,0000,0000,0000,,the architecture of things. That's what I really like about Minecraft. Over the next Dialogue: 0,0:00:33.33,0:00:39.22,Default,,0000,0000,0000,,hour you're going to learn the basics of computer science by programming Alex or Steve to move Dialogue: 0,0:00:39.22,0:00:45.94,Default,,0000,0000,0000,,through a simulated piece of a Minecraft world. Traditional programming is usually in text, Dialogue: 0,0:00:45.94,0:00:51.02,Default,,0000,0000,0000,,but today we'll use blockly: a system which uses blocks that you can drag and drop to Dialogue: 0,0:00:51.02,0:00:57.62,Default,,0000,0000,0000,,write programs. Under the hood, you're creating JavaScript code. The concepts that you'll Dialogue: 0,0:00:57.62,0:01:02.53,Default,,0000,0000,0000,,be learning are what computer programmers use everyday and are the foundation to computer Dialogue: 0,0:01:02.53,0:01:09.89,Default,,0000,0000,0000,,science. Here at Mojang we use these same concepts to make Minecraft work. Before you Dialogue: 0,0:01:09.89,0:01:15.30,Default,,0000,0000,0000,,start, you'll pick your character. I'm going to choose Alex. Let's build code for a program Dialogue: 0,0:01:15.30,0:01:22.81,Default,,0000,0000,0000,,that will help her move around the screen. Your screen is split into three main parts. Dialogue: 0,0:01:22.81,0:01:28.58,Default,,0000,0000,0000,,On the left is the Minecraft play space, where your program will run. The instructions for Dialogue: 0,0:01:28.58,0:01:34.74,Default,,0000,0000,0000,,each level are written below. This middle area is the toolbox and each of these blocks Dialogue: 0,0:01:34.74,0:01:40.90,Default,,0000,0000,0000,,is a command that directs Alex's actions. The white space on the right is called the Dialogue: 0,0:01:40.90,0:01:46.92,Default,,0000,0000,0000,,work space and this is where we'll build our program. If we drag the \"move forward\" block Dialogue: 0,0:01:46.92,0:01:53.34,Default,,0000,0000,0000,,to our workspace and then click Run, what happens? Alex moves forward one space on the Dialogue: 0,0:01:53.34,0:01:59.77,Default,,0000,0000,0000,,grid. And what if we wanted to do something after she moves forward one space? We can Dialogue: 0,0:01:59.77,0:02:05.14,Default,,0000,0000,0000,,add another block to our program. I'm going to choose the \"turn right\"; block, and I'll drag Dialogue: 0,0:02:05.14,0:02:11.38,Default,,0000,0000,0000,,it underneath my \"move forward\" block until this orange line appears. Then, I'll drop Dialogue: 0,0:02:11.38,0:02:17.26,Default,,0000,0000,0000,,it and the two blocks will snap together. When we press Run again, Alex will perform Dialogue: 0,0:02:17.26,0:02:22.67,Default,,0000,0000,0000,,the commands that are stacked from top to bottom in our workspace. And if you ever want Dialogue: 0,0:02:22.67,0:02:28.70,Default,,0000,0000,0000,,to delete a block, just drag it from the stack back to the toolbox. To undo your changes Dialogue: 0,0:02:28.70,0:02:33.79,Default,,0000,0000,0000,,and to get back to how the level started, use the Start Over button in the top right Dialogue: 0,0:02:33.79,0:02:41.17,Default,,0000,0000,0000,,corner of the workspace. One more thing, you see the little triangle on the turn blocks? Dialogue: 0,0:02:41.17,0:02:46.62,Default,,0000,0000,0000,,Anytime you see these triangles, it means that you can pick a different option. Let's Dialogue: 0,0:02:46.62,0:02:48.75,Default,,0000,0000,0000,,start coding!