minicl55

Untitled

Oct 31st, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. blocks = 0
  2. rows = 0
  3.  
  4. function row()
  5. for i = 1, 13 do
  6. turtle.digDown()
  7. turtle.forward()
  8. end
  9. end
  10.  
  11. function oneTwoRow()
  12. row()
  13. turtle.turnRight()
  14. turtle.forward()
  15. turtle.forward()
  16. turtle.forward()
  17. turtle.turnRight()
  18. row()
  19. turtle.turnLeft()
  20. turtle.forward()
  21. turtle.forward()
  22. turtle.forward()
  23. turtle.turnLeft()
  24. end
  25.  
  26. function dropOff()
  27. --Go back
  28. turtle.turnRight()
  29. for i = 1, 20 do
  30. turtle.forward()
  31. end
  32.  
  33. --Deposit
  34. for i = 16,1,-1 do
  35. turtle.select(i)
  36. turtle.drop()
  37. end
  38.  
  39. --Turn around
  40.  
  41. turtle.turnLeft()
  42. turtle.turnLeft()
  43. turtle.forward()
  44. turtle.forward()
  45.  
  46. --TODO: Update info
  47.  
  48. end
  49.  
  50. function update()
  51. term.Clear()
  52. term.setCursorPos(1, 1)
  53. term.write("(C) Chipperyman573 2013\n\nTotal rows mined: "..rows.."\nTotal melon blocks mined: "..blocks".")
  54. end
  55.  
  56. while true do
  57. --Row 1/2
  58. oneTwoRow()
  59. --Row 3/4
  60. oneTwoRow()
  61. --Row 5/6
  62. oneTwoRow()
  63. --Drop off
  64. dropOff()
  65. end
Advertisement
Add Comment
Please, Sign In to add comment