< Return to Video

Minecraft: Voyage Aquatic Conditionals

  • 0:01 - 0:02
    Wow!
  • 0:02 - 0:03
    Another three puzzles solved!
  • 0:03 - 0:06
    And we've caught...a salmon.
  • 0:06 - 0:11
    Not quite as exciting as piles of gold, but
    we'll take what we can get.
  • 0:11 - 0:14
    And I have a feeling that nautilus shell will
    come in handy later.
  • 0:14 - 0:17
    I wonder what lurks in these ruins.
  • 0:17 - 0:19
    Perhaps another hint!
  • 0:19 - 0:22
    Let’s take a look inside.
  • 0:22 - 0:25
    My name is Netty and welcome to my ruins.
  • 0:25 - 0:28
    We make decisions all the time based on conditions.
  • 0:28 - 0:32
    If it looks like rain,
    then we’ll grab an umbrella.
  • 0:32 - 0:34
    If we’re hungry, then we'll eat a snack.
  • 0:34 - 0:38
    If we see a creeper, then we run
    in the opposite direction.
  • 0:38 - 0:41
    Computers make these types of decisions too.
  • 0:41 - 0:44
    They can actually respond to
    conditions using code.
  • 0:44 - 0:51
    To program a response like this using your
    code commands, select an if path block.
  • 0:51 - 0:53
    Select the dropdown to create the command.
  • 0:53 - 0:59
    For example, if you write the command "if
    path to the right" and place turn right inside
  • 0:59 - 1:04
    the conditional, then when Steve
    reaches an open path to the right
  • 1:04 - 1:06
    he will always turn right.
  • 1:06 - 1:10
    If there is no opening to the right,
    he will not turn right.
  • 1:10 - 1:14
    These conditional if commands are helpful
    when you run code in unpredictable situations
  • 1:14 - 1:18
    such as mysterious ruins in underwater caves.
  • 1:18 - 1:21
    Try using the if blocks and take your code
    for a spin.
  • 1:21 - 1:22
    Wow!
  • 1:22 - 1:24
    Netty’s ruins were awesome.
  • 1:24 - 1:27
    I really gotta move out of my parents' house.
  • 1:27 - 1:28
    So what do you think?
  • 1:28 - 1:31
    Are the conditions right for us to complete
    the final puzzles?
  • 1:31 - 1:32
    Let’s give it a go.
Title:
Minecraft: Voyage Aquatic Conditionals
Description:

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

English subtitles

Revisions Compare revisions