Jump to content




Turtle Traveling?

turtle lua help

  • You cannot reply to this topic
4 replies to this topic

#1 Angry_Dragonoid

  • Members
  • 17 posts
  • LocationGoshen, IN

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!

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 18 March 2015 - 02:27 PM

Moved to Ask a Pro.

#3 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 March 2015 - 02:38 PM

Post your code. For coordinates, use GPS system. Check the wiki dedicated to GPS. ;)

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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. ;)

#5 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 March 2015 - 10:51 PM

View PostBomb Bloke, on 18 March 2015 - 09:37 PM, said:

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. ;)





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users