Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local boolean Continue = true;
  2. local int i = 1;
  3. function checkForEnough(slotNum)
  4. if turtle.getItemCount(slotNum) < 64 then
  5. turtle.suck();
  6. turtle.select(slotNum+1);
  7. turtle.drop();
  8. if turtle.getItemCount(slotNum) < 64 then
  9. Continue = false;
  10. end
  11. turtle.select(1)
  12.  
  13.  
  14. end
  15. end
  16.  
  17.  
  18. while(true) do
  19.  
  20. Continue = true;
  21. turtle.select(1)
  22. turtle.suck();
  23. checkForEnough(1);
  24.  
  25. if Continue then
  26. turtle.select(2)
  27. turtle.suck();
  28. checkForEnough(2);
  29. end
  30.  
  31. if Continue then
  32. turtle.select(3)
  33. turtle.suck();
  34. checkForEnough(3);
  35. end
  36.  
  37. if Continue then
  38. turtle.craft();
  39. turtle.dropDown();
  40. turtle.select(1);
  41. end
  42.  
  43. i=1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement