Parlocameon

Chat Receiver

Dec 5th, 2015 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. term.setCursorPos(1,1)
  4. term.clear()
  5.  
  6. while true do
  7. id,message = rednet.receive()
  8. if id == 2 then
  9. print("ID: #"..id)
  10. print("Message: "..message)
  11. print()
  12. sleep(.1)
  13. end
  14. end
Add Comment
Please, Sign In to add comment