turtle.forward
From ComputerCraft Wiki
Function turtle.forward | |
Attempts to move the turtle forward. | |
Syntax | turtle.forward() |
Returns | boolean whether the turtle succeeded in moving forwards |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Moves the turtle forward | |
Code |
turtle.forward() |
Output | true if the turtle could move forwards, false if there was something in the way |