Advertisement
Plazter

Lys

Jun 19th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. rednet.open("right")
  2. while true do
  3. local id, msg = rednet.receive()
  4.  
  5. if 3597 then
  6. if msg == "lights on" then
  7. rs.setOutput("front")
  8. end
  9.  
  10. if msg == "lights off" then
  11. rs.setOutput("front", false)
  12. end
  13.  
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement