Difference between revisions of "Turtle.detectUp"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) m (Expanded) |
(Adding "see also".) |
||
Line 15: | Line 15: | ||
}} | }} | ||
}} | }} | ||
+ | ==See also== | ||
+ | *[[turtle.detect]] | ||
+ | *[[turtle.detectDown]] | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Revision as of 17:59, 22 April 2015
Function turtle.detectUp | |
Detects if there is a block above the turtle. | |
Syntax | turtle.detectUp() |
Returns | boolean is there a block above the turtle? |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
If there is a block above the turtle digs it. | |
Code |
if turtle.detectUp() then turtle.digUp() end |