turtle.digUp

From ComputerCraft
Jump to navigation Jump to search

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

Breaks the block above the turtle.

  • The turtle can only dig when there is a solid or transparent block above it, and a pickaxe is equipped.
Error creating thumbnail: Unable to save thumbnail to destination
ExampleCheck for dig
See if it was able to dig.
Code
local didDig = turtle.digUp()
print(didDig)
Output
false
1