Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --name inv
- --version 1.0
- sorter = peripheral.wrap("back")
- for i=0,5 do
- local x = sorter.list(i)
- print(string.format("Side %d:", i))
- if x == nil then
- print(" No inventory found.")
- else
- for id,cnt in pairs(x) do
- print(string.format(" ID: %d, Qty: %d", id, cnt))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment