orngix

Shaft

Feb 21st, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. arg = (...)
  2. arg = tonumber(arg) or 1
  3. x = 0
  4. while x < arg do
  5. turtle.dig()
  6. sleep(1)
  7. if turtle.forward() == true then
  8. turtle.digUp()
  9. x = x + 1
  10. end
  11. if turtle.placeDown() then
  12. turtle.turnLeft()
  13. turtle.place()
  14. turtle.turnRight()
  15. turtle.turnRight()
  16. turtle.place()
  17. turtle.turnLeft()
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment