Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local storage = peripheral.wrap("right")
- local all = storage.getAvailableItems()
- write("Search: ")
- local search = read()
- for num, item in pairs(all) do
- local fing = item.fingerprint
- local count = item.size
- local id = fing.id
- if string.find(id, search) then
- print(id..": "..count)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement