Advertisement
09glich

TurtleComs.lua

Jun 13th, 2024 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. rednet.open("turtle")
  2.  
  3. local function GetPings()
  4.     local ID, Message = rednet.receive()
  5.     print(ID)
  6.     if ID == 65535 then
  7.         rednet.send(Message, 12401)
  8.     end
  9. end
  10.  
  11. while true do
  12.     sleep(.05)
  13.     GetPings()
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement