Advertisement
Guest User

Untitled

a guest
May 3rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local tank = require("component").tile_blockcapacitorbank_name
  2. local rs = require("component").redstone
  3. local term = require("term")
  4.  
  5. local a = tank.getEnergyStored()
  6. local b = tank.getMaxEnergyStored()
  7.  
  8. term.clear()
  9.  
  10. print("Energy Overview")
  11. print("")
  12. print("")
  13. print("Maximum Stored:  "..b)
  14. print("")
  15.  
  16. local function manager()
  17.     term.setCursor(1, 6)
  18.     term.clearLine()
  19.     print("Currently Stored:  "..a.." = "..a/b.." %")
  20.     os.sleep(5)
  21. end
  22.  
  23. while true do
  24.     manager()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement