Posted 14 April 2013 - 11:12 AM
This is a simple farming program that i made today. The problem happens at row 18 when it crashes. Can anyone help?
turtle.turnLeft()
turtle.suck()
turtle.suck()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.dig()
turtle.forward()
turtle.turnLeft()
function farmLine()
for i = 1,17 do
turtle.dig()
turtle.forward()
turtle.digBack()
turtle.placeBack()
end
end
farmLine()
turtle.turnRight()
turtle.dig()
turtle.place()
turtle.forward()
turtle.turnRight()
farmLine()
turtle.turnLeft()
turtle.dig()
turtle.place()
turtle.forward()
turtle.turnLeft()
farmLine()
turtle.turnRight()
turtle.dig()
turtle.place()
turtle.forward()
turtle.turnRight()
farmLine()
turtle.turnRight()
for y = 1,9 do
turtle.forward()
end
turtle.turnRight()
turtle.turnRight()