Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local totalStore = 0
- local percent = 0
- local mfsu
- local totalStore = 0
- os.startTimer(1)
- while true do
- local totalStore = 0
- totalStore = totalStore + peripheral.call("back", getEUStored())
- -- Calculate a percentage
- percent = math.ceil(totalStore / totalCap) * 100
- -- Analogue redstone output
- redstone.setAnalogOutput("right", (math.ceil(10000000 / totalCap) * 15))
- os.pullEvent("timer")
- os.startTimer(1)
- end
Add Comment
Please, Sign In to add comment