turtle.detectUp
From ComputerCraft Wiki
Function turtle.detectUp | |
Detects if there is a block above the turtle. | |
Syntax | turtle.detectUp() |
Returns | boolean is there a block above the turtle? |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
If there is a block above the turtle digs it. | |
Code |
if turtle.detectUp() then turtle.digUp() end |