Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- while true do
- if gps.locate() then
- location = {gps.locate()}
- elseif throwError then
- print("ALERT: GPS tower out of range. Turtle will travel to last known location, at X: " .. x .. ", Y: " .. y .. ", Z: " .. z)
- end
- if gps.locate() then
- throwError = true
- else
- throwError = false
- end
- rednet.send(id, location)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement