From ComputerCraft Wiki
Revision as of 17:59, 22 April 2015 by MisterSanderson (Talk | contribs) (Adding "see also".)

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

Grid Redstone.png  Function turtle.detectDown
Detects if there is a Block Below.
Syntax turtle.detectDown()
Returns boolean If turtle has detected a block below.
Part of ComputerCraft
API turtle


Grid paper.png  Example
Displays whether or not there is a block under the turtle.
if turtle.detectDown() then
  print("There is a block under me!")
  print("There isn't a block under me!")
Output A message on the turtle screen telling if a block is under the turtle.

See also