Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Reactor is always on
- --hot = on
- --rs.setOutput("back", true) is hot/on
- mon = peripheral.wrap("top")
- h1500()
- if rs.getInput("left", true) then --if therm one is hot
- sleep(1)
- rs.setOutput("back", true)--make sure reactor is on
- sleep(10)--wait
- rs.setOutput("back", false) else--turn off reactor
- rs.setOutput("back", true)--if therm one is not hot turn on
- end
- end
- h1800()
- if rs.getInput("right", true) then --if therm 2 is hot
- sleep(1)
- rs.setOutput("back", true)--make sure reactor is on
- sleep(10)--wait
- rs.setOutput("back", false) else--turn off reactor
- rs.setOutput("back", true)--if therm 2 is not hot and turn on
- end
- end
- mainOperator() --if reactor is on then run h1500/h1800 if reactor is off sleep
- if re.getInput("back", true) then
- while true do
- h1500()
- h1800() else
- sleep(1)
- end
- end
- while true do
- mainOperator()
- end
Advertisement
Add Comment
Please, Sign In to add comment