Difference between revisions of "Turtle.detectUp"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=turtle.detectUp |args= |api=turtle |returns=boolean If turtle has Detected a Block Above. |addon=ComputerCraft |desc=Detects if there is a B...")
 
m
Line 10: Line 10:
 
{{Example
 
{{Example
 
|desc=Detects if there is a Block Above.
 
|desc=Detects if there is a Block Above.
|code=print(turtle.detectUp())
+
|code=turtle.detectUp()
 
}}
 
}}
 
}}
 
}}

Revision as of 21:13, 15 March 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.
Code
turtle.detectUp()