kriNon

Untitled

Dec 29th, 2015
91
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.  
  5. os.startTimer(1)
  6.  
  7. while true do
  8. totalCap = 10000000
  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(totalStore / totalCap) * 15))
  16.  
  17. os.pullEvent("timer")
  18. os.startTimer(1)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment