Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor_1
- local mon_1
- reactor_1 = peripheral.wrap("BigReactors-Reactor_1")
- mon_1 = peripheral.wrap("monitor_1")
- while true do
- mon_1.clear()
- mon_1.setCursorPos(1,1)
- mon_1.write("Status: ")
- if reactor_1.getActive() == true then
- if reactor_1.getCasingTemperature() < 1000 == true then
- if reactor_1.getHotFluidAmount() > 30000 == true then
- mon_1.setCursorPos(1,1)
- mon_1.write("Kein Dapf benoetigt!")
- mon_1.setCursorPos(1,2)
- mon_1.write("ControlRods: 100")
- reactor_1.setAllControlRodLevels(100)
- else
- mon_1.write("An")
- mon_1.setCursorPos(1,2)
- mon_1.write("ControlRods: 0")
- reactor_1.setAllControlRodLevels(0)
- end
- else
- mon_1.setCursorPos(1,2)
- mon_1.write("ControlRods: 10")
- reactor_1.setAllControlRodLevels(10)
- end
- else
- mon_1.write("Aus")
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement