Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local input = {...}
  2.  
  3. for t = 1,input[1],1 do
  4.  
  5. for i = 1,3,1 do
  6. turtle.dig()
  7. turtle.up()
  8. end
  9.  
  10. if math.fmod(t,6) == 0 then
  11. turtle.turnLeft()
  12. turtle.dig()
  13. turtle.place()
  14. turtle.turnRight()
  15. end
  16.  
  17. turtle.down()
  18. turtle.turnRight()
  19. turtle.forward()
  20. turtle.turnLeft()
  21.  
  22. for i = 1,3,1 do
  23. turtle.dig()
  24. turtle.down()
  25. end
  26.  
  27. if turtle.detect() then
  28. turtle.dig()
  29. end
  30. turtle.forward()
  31. turtle.digDown()
  32. turtle.down()
  33.  
  34. if turtle.detectDown() == false then
  35. turtle.placeDown()
  36. end
  37. turtle.turnLeft()
  38.  
  39. turtle.dig()
  40. turtle.turnRight()
  41. if turtle.detectDown() == false then
  42. turtle.placeDown()
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement