turtle.dig
From ComputerCraft
Jump to navigation
Jump to search
turtle.dig Function | |
---|---|
Syntax turtle.dig(
| |
Returns | bool didDig |
API | turtle |
Source | CC:Tweaked (source) |
Breaks the block in front of the turtle.
The turtle can only dig when there is a solid or transparent block in front of it, and a pickaxe is equipped.
|
|||
See if it was able to dig. | |||
Code | local didDig = turtle.dig()
print(didDig)
|
||
Output | false
1
|
Retrieved from "https://wiki.computercraft.cc/index.php?title=Turtle.dig&oldid=5796"