Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
- local mon = peripheral.wrap("back")
- mon.clear()
- mon.setCursorPos(1,6)
- mon.write("Reactor")
- even,side,x,y = os.pullEvent("monitor_touch")
- if x > 1 and x < 10 and y == 6 and reactor1.getActive() == false then
- reactor1.setActive(true)
- mon.setCursorPos(1,6)
- mon.clearLine()
- mon.blit("Reactor","0000000","ddddddd")
- elseif x > 1 and x < 10 and y == 6 and reactor1.getActive() == true then
- reactor1.setActive(false)
- mon.setCursorPos(1,6)
- mon.clearLine()
- mon.blit("Reactor","0000000","eeeeeee")
- end
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.white)
- mon.write("Active: ")
- mon.setTextColor(colors.lime)
- mon.write(reactor1.getActive())
- mon.setCursorPos(1,2)
- mon.setTextColor(colors.white)
- mon.write("RF/T: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor1.getEnergyProducedLastTick()))
- mon.setCursorPos(1,3)
- mon.setTextColor(colors.white)
- mon.write("RF Stored: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor1.getEnergyStored()))
- mon.setCursorPos(1,4)
- mon.setTextColor(colors.white)
- mon.write("Casing Heat: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor1.getCasingTemperature()))
- mon.setCursorPos(1,5)
- mon.setTextColor(colors.white)
- mon.write("Fuel Heat: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor1.getFuelTemperature()))
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement