kriNon

Untitled

Dec 29th, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local totalStore = 0
  2. local percent = 0
  3. local mfsu
  4. public totalStore = 0
  5.  
  6. os.startTimer(1)
  7.  
  8. while true do
  9. totalStore = peripheral.call("back", getEUStored())
  10.  
  11. -- Calculate a percentage
  12. percent = math.ceil(totalStore / totalCap) * 100
  13.  
  14. -- Analogue redstone output
  15. redstone.setAnalogOutput("right", (math.ceil(10000000 / totalCap) * 15))
  16.  
  17. os.pullEvent("timer")
  18. os.startTimer(1)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment