Advertisement
Muzze77

Crafty 2

Jan 7th, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1.  
  2.  
  3. -----Crafty------
  4. slot2 = 2
  5. slot5 = 5
  6. an = 0
  7. s2 = slot2
  8. s5 = slot5
  9. Items = 0
  10. -----------------
  11. function cut()
  12. sleep(0.5)
  13. shell.run("clear")
  14. sleep(0.5)
  15. end
  16. -----------------
  17.  
  18. while rs.getInput("back") == true do
  19. print("Crafting")
  20. sleep(3.5)
  21. cut()
  22. turtle.select(2)
  23. sleep(1)
  24. turtle.suckUp()
  25. n1 = turtle.getItemCount(2)
  26. print(n1 .. " Dust genommen")
  27. cut()
  28. n1 = n1-1
  29. print(n1 .. " Dust im Inventar")
  30. cut()
  31. turtle.dropUp(n1)
  32. sleep(2)
  33. turtle.select(5)
  34. sleep(1)
  35.  
  36. turtle.suckUp()
  37. n2 = turtle.getItemCount(5)
  38. cut()
  39. print(n2 .. " Dust im Inventar")
  40. cut()
  41. n2 = n2-1
  42. turtle.dropUp(n2)
  43. cut()
  44. turtle.select(16)
  45. turtle.craft()
  46. turtle.dropDown()
  47. print("Finish")
  48.  
  49. an = an+1
  50. print( an )
  51. cut()
  52. end
  53. print("No Input")
  54. cut()
  55. shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement