Difference between revisions of "Turtle.detectUp"
From ComputerCraft Wiki
(Undo revision 4608 by 184.171.168.202 (talk) Who's face?) |
Smiley43210 (Talk | contribs) 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= | + | |returns={{type|boolean}} If turtle has detected a block above it. |
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Detects if there is a | + | |desc=Detects if there is a block above the turtle. |
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=Detects if there is a | + | |desc=Detects if there is a block above the turtle. |
|code=turtle.detectUp() | |code=turtle.detectUp() | ||
}} | }} |
Revision as of 00:01, 6 May 2013
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
Example | |
Detects if there is a block above the turtle. | |
Code |
turtle.detectUp() |