Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local direction = "east" -- direction of the output chest
- local x = peripheral.wrap("top") -- wrapped chest to pull from
- local size = x.getInventorySize() -- size of Inventory being pulled from
- local data -- gets details on item
- local isItem = false --if this stays false for a search means the input inv is empty and wait
- while true do
- isItem = false
- for i = 1, size do
- data = x.getStackInSlot(i)
- if data ~= nil then
- x.pushItem(direction, i, 124)
- isItem = true
- end
- end
- if isItem == false then
- sleep(.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement