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