Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- currentE = -1
- while true do
- -- all the cubes
- local cube0 = peripheral.wrap("mekanism:basic_energy_cube_0")
- local mon = peripheral.wrap("top")
- mon.clear()
- -- cube 0
- cubeE = cube0.getEnergy()
- if cubeE > currentE then
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.white)
- mon.write("CUBE 1: ")
- mon.setTextColor(colors.green)
- mon.write(string.format("%.2f %%",math.floor(cubeE/1000000)))
- mon.setTextColor(colors.white)
- mon.write(" MRF/t")
- elseif cubeE < currentE then
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.white)
- mon.write("CUBE 1: ")
- mon.setTextColor(colors.green)
- mon.write(string.format("%.2f %%",math.floor(cubeE/1000000)))
- mon.setTextColor(colors.white)
- mon.write(" MRF/t")
- end
- sleep(5)
- end
Add Comment
Please, Sign In to add comment