Difference between revisions of "Turtle.detect"
From ComputerCraft Wiki
| Line 4: | Line 4: | ||
|args= | |args= | ||
|api=turtle | |api=turtle | ||
| − | |returns=[[ | + | |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. | ||
Revision as of 21:08, 15 March 2012
| Detects if there is a Block in front. | |
| Syntax | turtle.detect() |
| Returns | boolean If turtle has Detected a Block in front. |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Detects if there is a Block in front. | |
| Code |
print(turtle.detect()) |