Advertisement
ARandomPab

CC AE2

Nov 28th, 2023 (edited)
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. ae2 = peripheral.find("meBridge")
  2. monitor = peripheral.find("monitor")
  3.  
  4. while true do
  5.     monitor.clear()
  6.     monitor.setCursorPos(1,1)
  7.     monitor.write("AE2 Storage")
  8.  
  9.     monitor.setCursorPos(1,2)
  10.     monitor.write("-------------------------------")
  11.  
  12.     monitor.setCursorPos(1,3)
  13.  
  14.     monitor.write("Total: ".. tostring(ae2.getTotalItemStorage()))
  15.  
  16.     monitor.setCursorPos(1,4)
  17.     monitor.write("Used: "..tostring(ae2.getUsedItemStorage()))
  18.  
  19.     monitor.setCursorPos(1,5)
  20.     monitor.write("Free: "..tostring(ae2.getAvailableItemStorage()))
  21.  
  22.     sleep(1)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement