Return to Video

Minecraft - Hour of Code: INTRO

  • 0:00 - 0:05
    My name is Jens Bergensten, but I'm better
    known as Jeb. I'm the lead developer on Minecraft
  • 0:05 - 0:13
    here at mojang.com. I think I was 11 or maybe
    12 and I started programming because I wanted
  • 0:13 - 0:18
    to make games. One of my father's friends
    told me that in order to make games you need
  • 0:18 - 0:26
    to learn how to program. So that's how I got
    started. I like designing and figuring out
  • 0:26 - 0:33
    the architecture of things. That's what I
    really like about Minecraft. Over the next
  • 0:33 - 0:39
    hour you're going to learn the basics of computer
    science by programming Alex or Steve to move
  • 0:39 - 0:46
    through a simulated piece of a Minecraft world.
    Traditional programming is usually in text,
  • 0:46 - 0:51
    but today we'll use blockly: a system which
    uses blocks that you can drag and drop to
  • 0:51 - 0:58
    write programs. Under the hood, you're creating
    JavaScript code. The concepts that you'll
  • 0:58 - 1:03
    be learning are what computer programmers
    use everyday and are the foundation to computer
  • 1:03 - 1:10
    science. Here at Mojang we use these same
    concepts to make Minecraft work. Before you
  • 1:10 - 1:15
    start, you'll pick your character. I'm going
    to choose Alex. Let's build code for a program
  • 1:15 - 1:23
    that will help her move around the screen.
    Your screen is split into three main parts.
  • 1:23 - 1:29
    On the left is the Minecraft play space, where
    your program will run. The instructions for
  • 1:29 - 1:35
    each level are written below. This middle
    area is the toolbox and each of these blocks
  • 1:35 - 1:41
    is a command that directs Alex's actions.
    The white space on the right is called the
  • 1:41 - 1:47
    work space and this is where we'll build our
    program. If we drag the moveForward(); block
  • 1:47 - 1:53
    to our workspace and then click Run, what
    happens? Alex moves forward one space on the
  • 1:53 - 2:00
    grid. And what if we wanted to do something
    after she moves forward one space? We can
  • 2:00 - 2:05
    add another block to our program. I'm going
    to choose the turnRight(); block, and I'll drag
  • 2:05 - 2:11
    it underneath my moveForward(); block until
    this orange line appears. Then, I'll drop
  • 2:11 - 2:17
    it and the two blocks will snap together.
    When we press Run again, Alex will perform
  • 2:17 - 2:23
    the commands that are stacked from top to
    bottom in our workspace. And if you ever want
  • 2:23 - 2:29
    to delete a block, just drag it from the stack
    back to the toolbox. To undo your changes
  • 2:29 - 2:34
    and to get back to how the level started,
    use the Start Over button in the top right
  • 2:34 - 2:41
    corner of the workspace. One more thing, you
    see the little triangle on the turn blocks?
  • 2:41 - 2:47
    Anytime you see these triangles, it means
    that you can pick a different option. Let's
  • 2:47 - 2:49
    start coding!
Title:
Minecraft - Hour of Code: INTRO
Description:

Start learning at http://code.org/

Stay in touch with us!
• on Twitter https://twitter.com/codeorg
• on Facebook https://www.facebook.com/Code.org
• on Instagram https://instagram.com/codeorg
• on Tumblr https://blog.code.org
• on LinkedIn https://www.linkedin.com/company/code-org
• on Google+ https://google.com/+codeorg

more » « less
Video Language:
English
Duration:
02:51

English subtitles

Revisions