Advertisement
OpposingGeek

Untitled

Apr 18th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. --Controller Computer
  2. pass = "pie"
  3. rednet.open("left")
  4. while true do
  5. id, msg = rednet.receive()
  6. if msg == "door" then
  7. rednet.send(id, "controller")
  8. else
  9. if msg == pass then
  10. rednet.send(id, "open")
  11. else
  12. redstone.setOutput("top", true)
  13. sleep(2)
  14. redstone.setOutput("top", false)
  15. rednet.send(id, "memelord")
  16. end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement