mercwear

cc_AE2_bridge_reader

Apr 30th, 2025 (edited)
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. local bridge = peripheral.find("meBridge")
  2. local mon = peripheral.find("monitor")
  3.  
  4. -- Get total system storage
  5. available_storage = bridge.getAvailableItemStorage()
  6. total_storage = bridge.getTotalItemStorage()
  7. percent_storage_available = available_storage / total_storage
  8. ae_use_per_tic = bridge.getEnergyUsage()
  9.  
  10.  
  11.  
  12. term.redirect(mon)
  13.  
  14. print("A total of ", tostring(total_storage), " items can be stored currently.")
  15. print("Available storage is ", tostring(available_storage), " items.")
  16. print(tostring(percent_storage_available), "%", " storage in use.")
  17.  
Advertisement
Add Comment
Please, Sign In to add comment