• Home
  • basic
  • loops
  • while loops
  • if statements
  • variables
  • functions
  • arrays

TASK

​Place your turtle on the starting point and program it to reach the end of the path while destroying obstacles, avoiding obstacles both basic & challenging & also building small bridges


DESCRIPTION

“If Statements” are a single line of code which help your turtle overcome possible situations that they may encounter where normal code won’t work.

A prime example of this is the fact that not even turtles can dig through bedrock so we would use the following code

eg:
if turtle.dig() = false then (new line)
turtle.up() (new line)
turtle.forward() (new line)
turtle.forward() (new line) 
turtle.down() (new line)
end

This code will cause the turtle to go around the unmineable object, which in this case is bedrock. Using this line of code & previous loops complete the course


IF STATEMENTS - MINECRAFT WORLD EXAMPLE VIDEO


MAP

Picture

Minecraft Turtle Codes

Picture

AC DIGITAL

Proudly powered by Weebly
  • Home
  • basic
  • loops
  • while loops
  • if statements
  • variables
  • functions
  • arrays