Difference between revisions of "Turtle.detect"

From ComputerCraft Wiki
Jump to: navigation, search
(Corrected mapping from "Boolean" to "Boolean (type)")
(Adding "see also".)
Line 13: Line 13:
==See also==

Latest revision as of 17:59, 22 April 2015

Grid Redstone.png  Function turtle.detect
Detects if there is a Block in front. Does not detect mobs or liquids or floating items.
Syntax turtle.detect()
Returns boolean If turtle has Detected a Block in front.
Part of ComputerCraft
API turtle


Grid paper.png  Example
Detects if there is a Block in front and digs it out.
if turtle.detect() then 

See also