Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --p.getFreeBytes()
- --p.getTotalBytes()
- --p.getInventorySize()
- --p.getRemainingItemCounts()
- --p.getRemainingItemTypes()
- n = 10 --Number of Drives
- --while true do
- remainICount = 0
- storedICount = 0
- remainITypes = 0
- storedITypes = 0
- for i=0,n-1 do
- drive = "'me_drive_"..i.."'"
- print(drive)
- p = peripheral.wrap(drive)
- remainICount = remainICount + p.getRemainingItemCount()
- storedICount = storedICount + p.getStoredItemCount()
- remainITypes = remainITypes + p.getRemainingItemTypes()
- storedITypes = storedITypes + p.getStoredItemTypes()
- end
- print("remainICount: "..remainICount)
- print("storedICount: "..storedICount)
- print("remainITypes: "..storedITypes)
- print("storedITypes: "..storedITypes)
- --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement