turtle.detectUp

From ComputerCraft Wiki
Revision as of 21:51, 9 April 2014 by MKlegoman357 (Talk | contribs)
(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 the turtle.
Syntax turtle.detectUp()
Returns boolean is there a block above the turtle?
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
If there is a block above the turtle digs it.
Code
if turtle.detectUp() then
  turtle.digUp()
end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox