Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Find all of the bins on the network
- --Find if anything is being stored in the bins
- --Get list of what is stored in the bins
- local storageBins = {peripheral.find("mekanism:bin")}
- local emptyBins = {}
- local claimedBins = {}
- local itemList = {}
- local itemName = ""
- local binTiers = {
- BASIC = 4096
- }
- for i=1, #storageBins do
- itemName = storageBins[i].getItemMeta(1).rawName..storageBins[i].getItemMeta(1).name
- if storageBins[i].list() ~= {} then
- if itemList[itemName] == nil then
- itemList[itemName] = {peripheral.getName(storageBins[i])}
- else
- itemList[itemName][#(itemList[itemName])+1] = peripheral.getName(storageBins[i])
- end
- claimedBins[#claimedBins+1] = storageBins[i]
- else
- emptyBins[#emptyBins+1] = storageBins[i]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement