s3ptum

Untitled

Jan 22nd, 2014
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.pullEvent("redstone")
  2. while true do
  3.  
  4. rs.setOutput("right", true)--send ON signal
  5.  
  6.   if rs.getInput("left") == true then --if therm is hot/ON
  7.     sleep(1)
  8.     rs.setOutput("right", false) --send OFF signal
  9.     sleep(10)--wait
  10.     rs.setOutput("right", true) elseif
  11.     rs.getInput("left") == false then
  12.     rs.setOutput("right", true)
  13.   end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment