Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local amount = 0
- local perDown = peripheral.wrap("bottom")
- while true do
- for i=1,18 do
- numItems = perDown.getStackInSlot(i)['qty']
- sleep(0.1)
- if numItems > 5 then
- transferNum = (numItems - 1) / 4
- perDown.pushItemIntoSlot("up", i, transferNum, 1)
- perDown.pushItemIntoSlot("up", i, transferNum, 2)
- perDown.pushItemIntoSlot("up", i, transferNum, 5)
- perDown.pushItemIntoSlot("up", i, transferNum, 6)
- turtle.select(16)
- turtle.craft()
- while turtle.getItemCount(16) > 0 do
- turtle.dropUp()
- sleep(1)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment