Difference between revisions of "Turtle.detect"
From ComputerCraft Wiki
| Line 10: | Line 10: | ||
{{Example | {{Example | ||
|desc=Detects if there is a Block in front. | |desc=Detects if there is a Block in front. | ||
| − | |code= | + | |code=turtle.detect() |
}} | }} | ||
}} | }} | ||
Revision as of 21:13, 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 |
turtle.detect() |