Advertisement
D34dP0ol64

Terminal Central Turtle Command

Feb 26th, 2024
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1.  
  2.  
  3. peripheral.find("modem", rednet.open)
  4.  
  5. function try200()
  6.     for a = 1, 200 do
  7.         local id = rednet.receive(nil, 5)
  8.         if not id then
  9.             printError("No message received")
  10.         else
  11.             print(("Computer %d requested to connect"):format(id))
  12.         end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement