Difference between revisions of "Turtle.digUp"
From ComputerCraft Wiki
(Corrected mapping from "Boolean" to "Boolean (type)") |
MKlegoman357 (Talk | contribs) m (Fixed) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=turtle.digUp | |name=turtle.digUp | ||
− | |||
|api=turtle | |api=turtle | ||
− | |returns= | + | |returns={{type|boolean}} did the turtle dig the block? |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Attempts to dig the block above of the turtle. | |desc=Attempts to dig the block above of the turtle. | ||
Line 10: | Line 9: | ||
{{Example | {{Example | ||
|desc=Digs the block above the turtle. | |desc=Digs the block above the turtle. | ||
− | |code=print(turtle.digUp()) | + | |code=print('''turtle.digUp()''') |
|output=true if the turtle could dig the block, false if it could not or no block present. | |output=true if the turtle could dig the block, false if it could not or no block present. | ||
}} | }} |
Revision as of 16:41, 10 April 2014
Function turtle.digUp | |
Attempts to dig the block above of the turtle. | |
Syntax | turtle.digUp() |
Returns | boolean did the turtle dig the block? |
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. |