Advertisement
Scarjit

Spacechecker V1.2

Apr 27th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --p.getFreeBytes()
  2. --p.getTotalBytes()
  3. --p.getInventorySize()
  4. --p.getRemainingItemCounts()
  5. --p.getRemainingItemTypes()
  6. m = peripheral.wrap('monitor_0')
  7. m.setTextScale(4)
  8. while true do
  9. remainICount = 0
  10. storedICount = 0
  11.         p = peripheral.wrap('me_drive_8')  
  12.         remainICount = remainICount + p.getRemainingItemCount()
  13.         storedICount = storedICount + p.getStoredItemCount()
  14. print("remainICount: "..remainICount)
  15. print("storedICount: "..storedICount)
  16. p.clear()
  17. p.setTextColor(colors.green)
  18. p.write("Remaining Items Space: "..remainICount)
  19. p.setTextColor(colors.red)
  20. p.write("Stored Items: "..storedICount)
  21. os.sleep(1)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement