MudkipTheEpic

Beacon Turtle [Beacon]

Jan 27th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. while true do
  2. local id, msg = rednet.receive()
  3. if msg == "$REGISTER$" then
  4. local turtleID = id
  5. rednet.send(turtleID, "$REGISTER$")
  6. break
  7. end
  8. end
  9. while true do
  10. local auth, isping = rednet.receive()
  11. if auth == turtleID and isping == "$PING$" then
  12. rednet.send(turtleID, "$PING$")
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment