Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- sorter = peripheral.wrap(args[1])
- for i=0,5 do
- print(string.format("Side %d:", i))
- x = sorter.list(i)
- if x == nil then
- print(" - Not found")
- else
- for id,qty in pairs(x) do
- print(string.format("ID: %d, Qty: %d", id, qty))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment