Guest User

EU

a guest
Mar 22nd, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. one = peripheral.wrap("mfsu_1")
  2. two = peripheral.wrap("mfsu_2")
  3. thr = peripheral.wrap("mfsu_3")
  4. fou = peripheral.wrap("mfsu_4")
  5. fiv = peripheral.wrap("mfsu_5")
  6. six = peripheral.wrap("mfsu_6")
  7. sev = peripheral.wrap("mfsu_7")
  8. eig = peripheral.wrap("mfsu_8")
  9.  
  10. local function all()
  11.   one.getEUStored() +
  12.    
  13.   two.getEUStored() +
  14.  
  15.   thr.getEUStored() +
  16.  
  17.   fou.getEUStored() +
  18.  
  19.   fiv.getEUStored() +
  20.  
  21.   six.getEUStored() +
  22.  
  23.   sev.getEUStored() +
  24.  
  25.   eig.getEUStored()
  26. end
  27.  
  28. while true do          
  29.   capacity = one.getEUCapacity()*8
  30.   st = all()
  31.   term.clear()
  32.   term.setCursorPos(1,1)
  33.   print("Stored: ".. st .." / ".. capacity)
  34.   sleep(2)
  35. end
Advertisement
Add Comment
Please, Sign In to add comment