turtle.dig
From ComputerCraft Wiki
Revision as of 05:27, 13 March 2012 by Uncreative Name (Talk | contribs)
| Attempts to dig the block in front of the turtle. | |
| Syntax | turtle.dig() |
| Returns | boolean whether the turtle succeeded in digging. |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Digs the block in front of the turtle. | |
| Code |
print(turtle.dig()) |
| Output | true if the turtle could dig the block, false if it could not or no block present. |