Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mfsu3 = peripheral.wrap("ic2:mfsu_3")
- local mfsu4 = peripheral.wrap("ic2:mfsu_4")
- local mfsu5 = peripheral.wrap("ic2:mfsu_5")
- local m = peripheral.wrap("back")
- while true do
- local stored3 = 0
- local stored4 = 0
- local stored5 = 0
- local stored6 = 0
- local max1
- local fin = 0
- stored3 = mfsu3.getEUStored()
- stored4 = mfsu4.getEUStored()
- stored5 = mfsu5.getEUStored()
- max1 = mfsu3.getEUCapacity()
- local max = max1 + max1 + max1
- local stored6 = stored3 + stored4 + stored5
- local fin = (stored6 * 100) / max
- m.clear()
- m.setCursorPos(1, 1)
- m.write("Mfsu % ")
- m.setCursorPos(1, 2)
- m.write(math.ceil(fin))
- m.write("%")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement