Advertisement
Guest User

connect_quarry.lua

a guest
Apr 4th, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. rednet.open("right")
  2. print("Standby... Awaiting message")
  3. local senderID,message,protocol = rednet.receive()
  4. print("Recieved Message")
  5. print(message)
  6. print("...")
  7.  
  8. local id = os.getComputerID()
  9.  
  10. if message == "OPEN_CONNECT" then
  11.     print("Relaying to center")
  12.     rednet.host("connect_quarry",tostring(id))
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement