bigtwisty

inv

Apr 17th, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. args = {...}
  2. sorter = peripheral.wrap(args[1])
  3. for i=0,5 do
  4. print(string.format("Side %d:", i))
  5. x = sorter.list(i)
  6. if x == nil then
  7. print(" - Not found")
  8. else
  9. for id,qty in pairs(x) do
  10. print(string.format("ID: %d, Qty: %d", id, qty))
  11. end
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment