Advertisement
feedmecookies

ModemAPI

Nov 22nd, 2020 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. --Modem Api--
  2. if rednet.isOpen("top") == false then
  3. rednet.open("top")
  4. end
  5.  
  6.  
  7. function send(id,msg,proto)
  8. rednet.send(id,msg,proto)
  9. end
  10.  
  11. function receive(id,timer,proto)
  12. event,msg,prot = rednet.receive(proto,timer)
  13. return msg
  14. end
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement