guusvanwalstijn

Untitled

Nov 12th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. local modem = peripheral.wrap('left')
  2. modem.open(1)
  3.  
  4. local _, side, freq, rfreq, message = os.pullEvent('modem_message')
  5.  
  6. print('The message came on the '..side..' modem.')
  7. print('It was on frequency '..freq..' and wants a reply on '..rfreq)
  8. print('The message was: '..message)
Add Comment
Please, Sign In to add comment