SHOW:
|
|
- or go back to the newest paste.
| 1 | --p.getFreeBytes() | |
| 2 | --p.getTotalBytes() | |
| 3 | --p.getInventorySize() | |
| 4 | --p.getRemainingItemCounts() | |
| 5 | --p.getRemainingItemTypes() | |
| 6 | - | n = 10 --Number of Drives |
| 6 | + | m = peripheral.wrap('monitor_0')
|
| 7 | - | --while true do |
| 7 | + | m.setTextScale(4) |
| 8 | while true do | |
| 9 | remainICount = 0 | |
| 10 | - | remainITypes = 0 |
| 10 | + | |
| 11 | - | storedITypes = 0 |
| 11 | + | p = peripheral.wrap('me_drive_8')
|
| 12 | - | for i=0,n-1 do |
| 12 | + | |
| 13 | - | drive = "'me_drive_"..i.."'" |
| 13 | + | |
| 14 | - | print(drive) |
| 14 | + | |
| 15 | - | p = peripheral.wrap(drive) |
| 15 | + | |
| 16 | - | |
| 16 | + | p.clear() |
| 17 | p.setTextColor(colors.green) | |
| 18 | p.write("Remaining Items Space: "..remainICount)
| |
| 19 | - | remainITypes = remainITypes + p.getRemainingItemTypes() |
| 19 | + | p.setTextColor(colors.red) |
| 20 | - | storedITypes = storedITypes + p.getStoredItemTypes() |
| 20 | + | p.write("Stored Items: "..storedICount)
|
| 21 | - | end |
| 21 | + | os.sleep(1) |
| 22 | end |