Fews

Untitled

Sep 19th, 2019
106
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local slot ={4,8,12,13,14,15,16}
  2. function takebahan()
  3. local temp=1
  4. turtle.select(slot[temp])
  5. temp = temp+1
  6. while turtle.suckDown() do
  7. temp = temp+1
  8. end
  9. end
  10.  
  11. function crafturanium()
  12. takebahan()
  13. for i=1,7 do
  14. turtle.select(slot[i])
  15. if turtle.getItemDetail() ~=nil then
  16. if turtle.getItemDetail().name =="ic2:nuclear" and turtle.getItemDetail().damage == 5 then
  17. turtle.transferTo(5,turtle.getItemCount()/3)
  18. turtle.transferTo(6,turtle.getItemCount()/3)
  19. turtle.transferTo(7,turtle.getItemCount()/3)
  20. elseif turtle.getItemDetail().name =="ic2:nuclear" and turtle.getItemDetail().damage == 2 then
  21. turtle.transferTo(1,turtle.getItemCount()/6)
  22. turtle.transferTo(2,turtle.getItemCount()/6)
  23. turtle.transferTo(3,turtle.getItemCount()/6)
  24. turtle.transferTo(9,turtle.getItemCount()/6)
  25. turtle.transferTo(10,turtle.getItemCount()/6)
  26. turtle.transferTo(11,turtle.getItemCount()/6)
  27. end
  28. end
  29. end
  30.  
  31. for i=1,7 do
  32. turtle.select(slot[i])
  33. turtle.dropDown()
  34. end
  35. turtle.craft()
  36. end
  37.  
  38. while true do
  39. if turtle.suckUp() then
  40. while turtle.suckUp() do
  41. end
  42. for i=1,16 do
  43. turtle.select(i)
  44. if turtle.getItemDetail() ~=nil then
  45. if turtle.getItemDetail().name =="ic2:nuclear" and
  46. turtle.getItemDetail().damage == 2 then
  47. turtle.dropDown()
  48. end
  49. end
  50. end
  51. turtle.craft()
  52. turtle.dropDown()
  53. crafturanium()
  54. end
  55. end
RAW Paste Data