Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --p.getFreeBytes()
- --p.getTotalBytes()
- --p.getInventorySize()
- --p.getRemainingItemCounts()
- --p.getRemainingItemTypes()
- m = peripheral.wrap('monitor_0')
- m.setTextScale(4)
- while true do
- remainICount = 0
- storedICount = 0
- p = peripheral.wrap('me_drive_8')
- remainICount = remainICount + p.getRemainingItemCount()
- storedICount = storedICount + p.getStoredItemCount()
- print("remainICount: "..remainICount)
- print("storedICount: "..storedICount)
- p.clear()
- p.setTextColor(colors.green)
- p.write("Remaining Items Space: "..remainICount)
- p.setTextColor(colors.red)
- p.write("Stored Items: "..storedICount)
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement