turtle.detectUp

From ComputerCraft Wiki
Revision as of 21:09, 15 March 2012 by SgtBurned (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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
print(turtle.detectUp())