mercwear

ns_count

May 2nd, 2025 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 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.  
  18. --Netherstars Stored in AE2
  19. nether_star_count = bridge.getItem({name="minecraft:nether_star"})
  20. mon.clear()
  21. mon.setCursorPos(1,1)
  22. print(tostring(nether_star_count.count), " Netherstars in storage.")
  23.  
Advertisement
Add Comment
Please, Sign In to add comment