turtle.digDown

From ComputerCraft
Jump to navigation Jump to search

turtle.digDown
Function
Syntax
turtle.digDown()
Returns bool didDig
API turtle
Source CC:Tweaked (source)

Breaks the block in beneath the turtle.

  • The turtle can only dig when there is a solid or transparent block below it, and a pickaxe is equipped.
ExampleExampleCheck for dig
See if it was able to dig.
Code
local didDig = turtle.digDown()
print(didDig)
Output
false
1