Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Basic Waypoint app to make turtle go to a location, turn to face an object next to that location, and then print a confirmation.
- -- Written by Richard Reigens 10/12/2013
- shell.run("goto.lua", "383", "62", "564")
- -- goto.lua is goto code from PhyscoKillerMonkey post at http://www.computercraft.info/forums2/index.php?/topic/5665-wireless-goto-program-for-gps-turtles/page__fromsearch__1
- -- coordinates can be changed to anything
- for i = 1, 4 do --Turns turtle to face the chest "or what ever item is in front of home position"
- if turtle.detect() == false then
- turtle.turnRight()
- else
- break
- end
- end
- print("Connecting to Main Computer...")-- text can be any conformation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement