Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent("redstone")
- while true do
- rs.setOutput("right", true)--send ON signal
- if rs.getInput("left") == true then --if therm is hot/ON
- sleep(1)
- rs.setOutput("right", false) --send OFF signal
- sleep(10)--wait
- rs.setOutput("right", true) elseif
- rs.getInput("left") == false then
- rs.setOutput("right", true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment