Advertisement
asweigart

essencemaker

Mar 18th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. os.loadAPI('hare')
  2.  
  3.  
  4.  
  5. STORAGE = {807, 67, -656, 'north'}
  6.  
  7. ESSENCES = {{807, 69, -656, 'east'},
  8. {807, 68, -656, 'east'},
  9. {807, 67, -656, 'east'},
  10. {807, 69, -655, 'east'},
  11. {807, 68, -655, 'east'},
  12. {807, 67, -655, 'east'},
  13. {807, 69, -654, 'east'},
  14. {807, 68, -654, 'east'},
  15. {807, 67, -654, 'east'},
  16. {807, 69, -653, 'east'},
  17. {807, 68, -653, 'east'},
  18. {807, 67, -653, 'east'},
  19. {807, 69, -652, 'east'},
  20. {807, 68, -652, 'east'},
  21. {807, 67, -652, 'east'},
  22. {807, 69, -651, 'east'},
  23. {807, 68, -651, 'east'},
  24. {807, 67, -651, 'east'},
  25. {807, 69, -650, 'east'},
  26. {807, 68, -650, 'east'},
  27. {807, 67, -650, 'east'}}
  28.  
  29.  
  30. function dumpAll()
  31. local i
  32. print('Dumping inventory...')
  33. hare.goto(STORAGE)
  34. for i=1,16 do
  35. turtle.select(i)
  36. turtle.drop(64)
  37. end
  38. end
  39.  
  40. dumpAll()
  41. while true do
  42. for k,v in pairs(ESSENCES) do
  43. print('Moving...')
  44. hare.goto(v)
  45. for k2,v2 in pairs({1,2,3,5,6,7,9,10,11}) do
  46. turtle.select(v2)
  47. turtle.suck(16)
  48. end
  49. turtle.select(16)
  50. turtle.craft(64)
  51. dumpAll()
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement