Difference between revisions of "Turtle.digUp"

From ComputerCraft Wiki
Jump to: navigation, search
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


Grid Redstone.png  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

Grid paper.png  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.