Advertisement
nnimos

Untitled

May 5th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. -- Test PC
  2. local modem = peripheral.wrap("right")
  3. modem.open(3)
  4. local event, modemSide, senderChannel,
  5. replyChannel, message, senderDistance = os.pullEvent("modem_message")
  6. print("I just received a message from: "..senderChannel)
  7. print("I should apparently reply on: "..replyChannel)
  8. print("The modem receiving this is located on the "..modemSide.." side")
  9. print("The message was: "..message)
  10. print("The sender is: "..senderDistance.." blocks away from me.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement