turtle.detectUp

From ComputerCraft Wiki
Revision as of 13:48, 4 December 2012 by 184.171.168.202 (Talk) (Corrected spelling.)

Jump to: navigation, search


Grid Redstone.png  Function turtle.detectUp
Detects if there is a Block Above.
Syntax turtle.detectUp()
Returns boolean If turtle has Detected a Block Above.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Detects if there is a Block Above your face.
Code
turtle.detectUp()