Advertisement
Guest User

storage

a guest
Jul 26th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. tpm = peripheral.wrap("left")
  2. mon1 = peripheral.wrap("top")
  3. stor1 = "65536"
  4. list = tpm.getAvailableItems()
  5. totalSize = 0
  6.  
  7. mon1.clear()
  8. mon1.setCursorPos(1,1)
  9.  
  10. for number, item in pairs(list) do
  11. totalSize = totalSize + 512 + item.size / 8
  12. totalSize2 = number
  13. end
  14.  
  15. mon1.write(totalSize2)
  16.  
  17. --mon1.setCursorPos(1,2)
  18. --mon1.write(totalSize2*513)
  19.  
  20. mon1.setCursorPos(1,3)
  21. mon1.write(totalSize)
  22.  
  23. mon1.setCursorPos(1,4)
  24. mon1.write(stor1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement