ToLazyToThink

blah

May 29th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local inv = peripheral.wrap("right")
  2.  
  3. local suck = turtle.suckUp
  4. local drop = inv.drop
  5. function fillSlot(slot)
  6.   if turtle.getItemCount(1) == 0 then
  7.     suck
  8.   end
  9.   return drop(slot, 1)
  10. end
  11.  
  12. local space = false
  13. while true do
  14.   local dropped = fillSlot(1) or
  15.                   fillSlot(2) or
  16.                   fillSlot(3)
  17.  
  18.   if not dropped then
  19.     sleep(2)
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment