Advertisement
ccgrffdy

rg

Dec 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. rednet.open("left")
  2. while true do
  3. local senderId, message, protocol = rednet.receive(1)
  4. if message == "YES" then
  5. redstone.setOutput("right", true)
  6. print("--------------------")
  7. print("Demande Recu de :")
  8. print(senderId)
  9. print(message)
  10. end
  11. if message == "NO" then
  12. redstone.setOutput("right", false)
  13. print("--------------------")
  14. print("Demande Recu de :")
  15. print(senderId)
  16. print(message)
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement