Advertisement
MadScience2728

IC2 Glass Crafting

Mar 7th, 2021
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Absorb(slot, upDown)
  2.     turtle.select(slot)
  3.     local count = turtle.getItemCount(slot)
  4.     while count < 1 do
  5.         if upDown then
  6.             turtle.suckUp(1)
  7.         else
  8.             turtle.suckDown(1)
  9.         end
  10.         count = turtle.getItemCount(slot)
  11.     end
  12. end
  13.  
  14. local up = true
  15. local down = false
  16.  
  17. while true do
  18.     Absorb(1, down)
  19.     Absorb(2, down)
  20.     Absorb(3, down)    
  21.     Absorb(5, up)
  22.     Absorb(6, down)
  23.     Absorb(7, up)
  24.     Absorb(9, down)
  25.     Absorb(10, down)
  26.     Absorb(11, down)
  27.     turtle.craft()
  28.     for i=1,16,1 do
  29.         while turtle.getItemCount(i) > 0 do
  30.             turtle.select(i)
  31.             turtle.drop()
  32.         end
  33.     end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement