DrFair

Piston Door

Aug 15th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. rednet.open("left")
  2. while true do
  3. event,id,msg = os.pullEvent()
  4. if event == "rednet_message" then
  5. if msg == "fairopen" then
  6. rs.setOutput("top",false)
  7. os.sleep(0.2)
  8. rs.setOutput("front",true)
  9. elseif msg == "fairclose" then
  10. rs.setOutput("front",false)
  11. os.sleep(0.2)
  12. rs.setOutput("top",true)
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment