Difference between revisions of "Turtle.detect"
From ComputerCraft Wiki
m |
|||
Line 6: | Line 6: | ||
|returns=[[boolean]] If turtle has Detected a Block in front. | |returns=[[boolean]] If turtle has Detected a Block in front. | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Detects if there is a Block in front. | + | |desc=Detects if there is a Block in front. Does not detect mobs or liquids. |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 16:57, 6 October 2012
Function turtle.detect | |
Detects if there is a Block in front. Does not detect mobs or liquids. | |
Syntax | turtle.detect() |
Returns | boolean If turtle has Detected a Block in front. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Detects if there is a Block in front and digs it out. | |
Code |
if turtle.detect() then |