Pandana

Wireles RS Recieve

Mar 8th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("back")
  2.  
  3. while true do
  4.  
  5.     id, message = rednet.receive()
  6.     --id is equal to the senders id.
  7.     --message is the sent mewssage.
  8.  
  9.     if id == 28 and message == "Blood" then
  10.         rs.setOutput("left", false)
  11.     else
  12.         rs.setOutput("left", true)
  13.     end
  14.  
  15. end
Add Comment
Please, Sign In to add comment