Board Thread:Questions and Answers/@comment-24672452-20140325022004

i need help with my Lua/Mining turtle program. im trying to get it to farm for me and go back to its rightful place it does sixteend seeds at a time. my problem: its not going in the way i asked.

here is the program (in Lua terms):

'''print "Welcome to Farm 1.2" print "Farm 1.2 by: kr33p3r1000" turtle.select(1) if turtle.getItemCount(1) < 10 then print "need more fuel in slot 1" else print "Refuelling" turtle.refuel(10) end print "Locating seeds..." turtle.select(2) if turtle.getItemCount(2) > 16 then print "Enough seeds to continue" else print "put at least 16 seeds in slot 2" end turtle.select(2) function Farm turtle.forward(1) turtle.place turtle.turnRight turtle.turnRight turtle.forward turtle.turnLeft turtle.turnLeft turtle.place turtle.turnRight turtle.forward(1) turtle.turnLeft end print "Proceeding to process..." print "round 1/8" Farm print "round 2/8" Farm print "round 3/8" Farm function Switch turtle.forward(1) turtle.place turtle.turnRight turtle.turnRight turtle.forward(1) turtle.turnLeft turtle.turnLeft turtle.place turtle.turnRight turtle.turnRight end print "round 4/8" Switch print "round 5/8" Farm print "round 6/8" Farm print "round 7/8" Farm print "round 8/8" function Pack turtle.forward(1) turtle.place turtle.turnRight turtle.turnRight turtle.forward(1) turtle.turnLeft turtle.turnLeft turtle.place turtle.turnRight turtle.turnRight turtle.forward(1) turtle.turnLeft turtle.forward(1) turtle.turnRight turtle.turnRight end Pack print "FINISHED" print "Have a nice day!"''' 