Ok, let me point out a few improvements that might be made :)/>
turtle.refuel(64)
is the same as
turtle.refuel()
Your refuel function could use a repeat loop:
function checkFuel()
if turtle.getFuelLevel < 5 then
repeat
print("I need Fuel please")
print("fuel slot 16")
turtle.select(16)
turtle.refuel()
turtle.getFuelLevel()
if turtle.getFuelLevel() >5 then
print(turtle.getFuelLevel())
print("thanks I was thirsty")
end
until turtle.getFuelLevel > 5
end
end
I'm not sure if you wanted the turtle moving forward in that function so I removed it.
function turtleFoward()
if turtle.forward() == true then
turtle.placeDown()
else
turtle.dig()
turtle.forward()
turtle.place()
end
end
You don't really need the if function, just have him dig whether there is something there or not :)/>
I am not sure what your turtleLeft() function is meant to do… how about
function turnLeft()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
end
function row()
for x = 1, blocks do
turtleForward()
end
turnLeft()
for x = 1, blocks do
turtleForward()
end
turnRight() --You need to do a similar function to turnLeft(), but right...
end
while true do
row()
end
hopefully this helps