Advertisement
forzakenus

mana

Dec 10th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. function bag_opener()
  2.   input = peripheral.wrap("back")
  3.   output= peripheral.wrap("front")
  4.   in_size=input.getInventorySize()
  5.   for i=1, in_size do
  6.     if input.getStackInSlot~=nil then
  7.       direction="east"
  8.       input.pushItemIntoSlot(direction,i,1,1)
  9.       turtle.craft()
  10.       turtle.drop()
  11.     end
  12.   end
  13.  
  14. end
  15.  
  16.  
  17. while true do
  18.   bag_opener()
  19.   os.sleep(2)  
  20.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement