View difference between Paste ID: 4F68N7SX and xDdtCXKG
SHOW: | | - or go back to the newest paste.
1-
--Reactor is always on
1+
os.pullEvent("redstone")
2-
--hot = on
2+
while true do
3-
--rs.setOutput("back", true) is hot/on
3+
4
rs.setOutput("right", true)--send ON signal
5-
mon = peripheral.wrap("top")
5+
6
  if rs.getInput("left") == true then --if therm is hot/ON
7-
h1500()
7+
8-
  if rs.getInput("left", true) then --if therm one is hot
8+
    rs.setOutput("right", false) --send OFF signal
9
    sleep(10)--wait
10-
    rs.setOutput("back", true)--make sure reactor is on
10+
    rs.setOutput("right", true) elseif
11
    rs.getInput("left") == false then
12-
    rs.setOutput("back", false) else--turn off reactor
12+
    rs.setOutput("right", true)
13-
    rs.setOutput("back", true)--if therm one is not hot turn on
13+
14
end