minicl55

Untitled

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