turtle.detect

From ComputerCraft Wiki
Revision as of 21:08, 15 March 2012 by SgtBurned (Talk | contribs)

Jump to: navigation, search


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

Examples

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