title: Using lua to program a turtle in Computercraft minecraft to farm using coordinates
body: <p>I have a square 7x7 square field. I am trying to have as less movement as possible to reduce fuel consumption. </p>
  
  <p><a href="https://i.stack.imgur.com/pswCM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pswCM.png" alt="I find this path the easiest path"></a></p>
  
  <p>Like a graph, I am trying to assign coordinates to certain points. I could use the blue thing in the middle (water) as the origin, but it seems like using the most bottom left block seed as the origin also works.</p>
  
  <p>This is what I have so far:
  <a href="https://i.stack.imgur.com/UyxYy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UyxYy.png" alt=""></a></p>
  
  <p>The problem I am having is when it is going to change rows. The easiest way to do is going to back to the x minimum, which consumes a lot of fuel and time. Is there a way for the turtle bot to know which direction to go to change to the next row?</p>