Advertisement
Guest User

thing

a guest
May 29th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local arg = { ... }
  2. local length = arg[1]
  3.  
  4. function move()
  5. turtle.dig()
  6. turtle.forward()
  7. turtle.digUp()
  8. if not turtle.detectDown() then
  9. turtle.placeDown()
  10. end
  11.  
  12. end
  13.  
  14.  
  15. for i=1, length, 1 do
  16. move()
  17. end
  18.  
  19. turtle.back()
  20. turtle.select(2)
  21. turtle.place()
  22. turtle.turnRight()
  23. turtle.turnRight()
  24. turtle.select(1)
  25.  
  26. for j=1, length-1, 1 do
  27. turtle.forward()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement