This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Angry_Dragonoid's profile picture

Turtle Traveling?

Started by Angry_Dragonoid, 18 March 2015 - 12:40 PM
Angry_Dragonoid #1
Posted 18 March 2015 - 01:40 PM
Hey, I am writing a turtle farm program. So far, the turtle navigates the farm perfectly fine, it does EXACTLY as it should. And that's good. BUT, when it's done with a farm, I have to go out to it and tell it what to do. Whether it's do another farm, or just Return to the house.

But right now, if it's at the wheat farm for example, I just have to do, "Return", and it goes back to it's start. BUT, if it's at say, the carrot farm, or the potato farm, I have to do something different like, "Return Carrot", or, "Return Potato". Now I don't want to do that…I have 8 farms…What I want, is for when I do, "Return", the turtle will find it's coordinates, and according to which coordinates it's at, and then run a specified function…

Now I don't know very well how to do this…I was maybe hoping the maybe someone could help me with this issue…if you need it, I can even paste my current code into here…if you need it for testing. Thanks for the help!
Lyqyd #2
Posted 18 March 2015 - 02:27 PM
Moved to Ask a Pro.
Creator #3
Posted 18 March 2015 - 02:38 PM
Post your code. For coordinates, use GPS system. Check the wiki dedicated to GPS. ;)/>
Bomb Bloke #4
Posted 18 March 2015 - 09:37 PM
Er, this article in the ComputerCraft wiki, more specifically. A GPS-dedicated wiki won't be much help here. ;)/>
Creator #5
Posted 18 March 2015 - 10:51 PM
Er, this article in the ComputerCraft wiki, more specifically. A GPS-dedicated wiki won't be much help here. ;)/>

What I meant was the page you posted a link too. ;)/>