Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local reactor1 = peripheral.wrap("BigReactors-Reactor_3")
- local reactor2 = peripheral.wrap("BigReactors-Reactor_4")
- term.redirect(peripheral.wrap("right"))
- term.setBackgroundColor(128)
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.white)
- function displayRS()
- while true do
- if (reactor1.getActive) then
- term.setTextColor(colors.white)
- term.setCursorPos(1, 1)
- term.write("Reactor 1 is")
- term.setTextColor(colors.green)
- term.write(" active")
- else
- term.setTextColor(colors.white)
- term.setCursorPos(1, 1)
- term.setTextColor(colors.red)
- term.write("Reactor 1 is not active")
- end
- if (reactor2.getActive) then
- term.setTextColor(colors.white)
- term.setCursorPos(1, 2)
- term.write("Reactor 2 is")
- term.setTextColor(colors.green)
- term.write(" active")
- else
- term.setTextColor(colors.white)
- term.setCursorPos(1, 2)
- term.setTextColor(colors.red)
- term.write("Reactor 2 is not active")
- end
- term.setTextColor(colors.white)
- term.setCursorPos(1, 5)
- term.write("Reactor one fuel level= "..reactor1.getFuelAmount().."mB")
- term.setCursorPos(1, 4)
- term.write("Reactor two fuel level= "..reactor2.getFuelAmount().."mB")
- sleep(1)
- end
- end
- displayRS()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement