Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("back")
- items = p.getAllStacks()
- Dir = "South"
- function doSorting(_index)
- items = p.getAllStacks()
- if items[_index] ~= nil then
- p.pushItem(Dir, _index)
- end
- end
- while true do
- os.sleep(10)
- table.foreach(items, doSorting)
- print("Moving stuff")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement