Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bag_opener()
- input = peripheral.wrap("back")
- output= peripheral.wrap("front")
- in_size=input.getInventorySize()
- for i=1, in_size do
- if input.getStackInSlot~=nil then
- direction="east"
- input.pushItemIntoSlot(direction,i,1,1)
- turtle.craft()
- turtle.drop()
- end
- end
- end
- while true do
- bag_opener()
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement