Guest User

1

a guest
Jan 22nd, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. --Reactor is always on
  2. --hot = on
  3. --rs.setOutput("back", true) is hot/on
  4.  
  5. mon = peripheral.wrap("top")
  6.  
  7. h1500()
  8.   if rs.getInput("left", true) then --if therm one is hot
  9.     sleep(1)
  10.     rs.setOutput("back",true)--make sure reactor is on
  11.     sleep(10)--wait
  12.     rs.setOutput("back". false) else--turn off reactor
  13.     rs.setOutput("back", true)--if therm one is not hot turn on
  14.   end
  15.    
  16.    
  17.    
  18.    
  19.    
  20.    
  21. while true do
  22.  
  23. rs.setOutput("back", false)
  24. sleep(1)
  25. h1500()
  26.  
  27. h1800()
Advertisement
Add Comment
Please, Sign In to add comment