Difference between revisions of "Turtle.detectUp"

From ComputerCraft Wiki
Jump to: navigation, search
(Undo revision 4608 by 184.171.168.202 (talk) Who's face?)
m (Corrected sentence casing (don't capitalize non-nouns in the middle of a sentence -_-), grammar)
Line 4: Line 4:
 
|args=
 
|args=
 
|api=turtle
 
|api=turtle
|returns=[[boolean_(type)|boolean]] If turtle has Detected a Block Above.
+
|returns={{type|boolean}} If turtle has detected a block above it.
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Detects if there is a Block Above.
+
|desc=Detects if there is a block above the turtle.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Detects if there is a Block Above.
+
|desc=Detects if there is a block above the turtle.
 
|code=turtle.detectUp()
 
|code=turtle.detectUp()
 
}}
 
}}

Revision as of 00:01, 6 May 2013


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()