Advertisement
D4rkSol1tud3

dragonRecv

Mar 29th, 2023
816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | Gaming | 0 0
  1. local m = peripheral.wrap("right")
  2. rednet.open("top")
  3. m.setTextScale(1)
  4. local PROTOCOL_STR = "gpsl"
  5. local DRAGON_LAIR_FOUND = "dlf"
  6.  
  7. while true do
  8.     local senderId, msg, protocol = rednet.receive(PROTOCOL_STR)
  9.     -- if string.find(msg, DRAGON_LAIR_FOUND) then
  10.        
  11.     -- end
  12.     print(msg)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement