Return to Video

Minecraft Hour of Code - Functions

  • 0:01 - 0:05
    Preston: I'm not trying to brag, but I'm pretty
    good at parkour.
  • 0:05 - 0:08
    Lizzy: Let's sleep so it's day when Stacy
    comes back.
  • 0:08 - 0:14
    Stacy: Ok guys, I am back from the Minecraft
    offices, and I think I know how to solve the
  • 0:14 - 0:16
    problem I'm having in my game.
  • 0:16 - 0:18
    I think I can use a function.
  • 0:18 - 0:20
    Let me just open this.
  • 0:20 - 0:27
    So a function is a specific set of instructions
    to accomplish a certain task, kind of like
  • 0:27 - 0:28
    a recipe.
  • 0:28 - 0:32
    In the next few levels, you'll have access
    to functions that you can use to solve the
  • 0:32 - 0:33
    puzzles.
  • 0:33 - 0:37
    Look at the code in the function when it's
    in the workspace to see what it does.
  • 0:37 - 0:41
    Then, find the block with that name in the
    toolbox and drag it from the toolbox to the
  • 0:41 - 0:43
    "when run" block.
  • 0:43 - 0:47
    Remember, you can use the same function every
    time you need to run the same set of instructions
  • 0:47 - 0:49
    to do something, like build a bridge.
  • 0:49 - 0:51
    Good luck, I know you can do it!
Title:
Minecraft Hour of Code - Functions
Description:

more » « less
Video Language:
English
Team:
Code.org
Project:
CSF '21-'22
Duration:
0:57

English subtitles

Revisions