Difference between revisions of "Turtle.digUp"
From ComputerCraft Wiki
m (Moved to CAT:LuaCoreFunctions) |
(Corrected mapping from "Boolean" to "Boolean (type)") |
||
Line 4: | Line 4: | ||
|args= | |args= | ||
|api=turtle | |api=turtle | ||
− | |returns=[[boolean]] whether the turtle succeeded in digging. | + | |returns=[[boolean_(type)|boolean]] whether the turtle succeeded in digging. |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Attempts to dig the block above of the turtle. | |desc=Attempts to dig the block above of the turtle. |
Revision as of 13:45, 30 November 2012
Function turtle.digUp | |
Attempts to dig the block above of the turtle. | |
Syntax | turtle.digUp() |
Returns | boolean whether the turtle succeeded in digging. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Digs the block above the turtle. | |
Code |
print(turtle.digUp()) |
Output | true if the turtle could dig the block, false if it could not or no block present. |