Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- while true do
- local senderId, message, protocol = rednet.receive(1)
- if message == "YES" then
- redstone.setOutput("right", true)
- print("--------------------")
- print("Demande Recu de :")
- print(senderId)
- print(message)
- end
- if message == "NO" then
- redstone.setOutput("right", false)
- print("--------------------")
- print("Demande Recu de :")
- print(senderId)
- print(message)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement