turtle.digDown

turtle.digDown
Function
Syntax
turtle.digDown(
  • toolSide? : string
)

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.
ExampleCheck for dig
See if it was able to dig.
Code
<nowiki>
local didDig = turtle.digDown()
print(didDig)
    </nowiki>
Output
false
1
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.