Difference between revisions of "Turtle.detectUp"

From ComputerCraft Wiki
Jump to: navigation, search
(Corrected mapping from "Boolean" to "Boolean (type)")
(Corrected spelling.)
Line 9: Line 9:
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Detects if there is a Block Above.
+
|desc=Detects if there is a Block Above your face.
 
|code=turtle.detectUp()
 
|code=turtle.detectUp()
 
}}
 
}}

Revision as of 13:48, 4 December 2012


Grid Redstone.png  Function turtle.detectUp
Detects if there is a Block Above.
Syntax turtle.detectUp()
Returns boolean If turtle has Detected a Block Above.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Detects if there is a Block Above your face.
Code
turtle.detectUp()