orngix

Dig up

Feb 18th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. arg = (...)
  2. arg = tonumber(arg) or 1
  3. x = 0
  4. while x < arg do
  5. if turtle.up() == true then
  6. x = x + 1
  7. else
  8. if tog == 1 then
  9. turtle.digUp()
  10. else
  11. return
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment