turtle.detect

From ComputerCraft Wiki
Revision as of 21:07, 15 March 2012 by SgtBurned (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=turtle.detect |args= |api=turtle |addon=ComputerCraft |desc=Detects if there is a Block in front |examples= {{Example |desc=Detects if there is...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function turtle.detect
Detects if there is a Block in front
Syntax turtle.detect()
Returns nil
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Detects if there is a Block in front
Code
print(turtle.detect())