turtle.detectUp

From ComputerCraft Wiki
Revision as of 00:01, 6 May 2013 by Smiley43210 (Talk | contribs) (Corrected sentence casing (don't capitalize non-nouns in the middle of a sentence -_-), grammar)

Jump to: navigation, search


Grid Redstone.png  Function turtle.detectUp
Detects if there is a block above the turtle.
Syntax turtle.detectUp()
Returns boolean If turtle has detected a block above it.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Detects if there is a block above the turtle.
Code
turtle.detectUp()