Advertisement
3wyexrctvzbun

Untitled

Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. local items = {}
  2. local sTime
  3.  
  4. function konstructor()
  5. print("Delay in Tickts:")
  6. sTime = read()
  7.  
  8. items[1] = 6
  9. items[2] = 10
  10. items[3] = 3
  11. items[4] = 4
  12. items[5] = 3
  13. items[6] = 6
  14. items[7] = 12
  15. items[8] = 8
  16.  
  17. main()
  18. end
  19.  
  20. function main()
  21. local muti = 10
  22. while true do
  23. for i=0,7 do
  24. if not turtle.suck() then
  25. break
  26. end
  27. end
  28.  
  29. for i=1,8 do
  30. local tmp = Math.floor(turtle.getItemCount(i)/items[1])
  31. multi = Math.min(tmp,multi)
  32. end
  33.  
  34. if multi >0 then
  35. craft(multi)
  36. end
  37.  
  38. os.queueEvent("randomEvent")
  39. os.pullEvent()
  40. os.sleep(sTime)
  41. end
  42. end
  43.  
  44. function craft(pMultiplicator)
  45.  
  46. end
  47.  
  48. konstructor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement