Posted 01 September 2012 - 04:24 PM
what is wrong with this code it has something to do with line 47
x=1
function planten()
turtle.digDown()
turtle.select(1)
turtle.placeDown()
end
function coal()
if turtle.getFuelLevel() < 5
then turtle.select(2)
turtle.refuel(1)
end
end
for x = 1 , 5 do
planten()
coal()
turtle.forward()
end
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
x = 1
for x = 1, 5 do
planten()
coal()
turtle.forward()
end
turtle.turnRight()
turtle.forward()
turtle.turnRight()
x = 1
for x = 1, 5 do
planten()
coal()
turtle.forward()
end
x = 1
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for x = 1 , 5 do
planten()
coal()
turtle.forward()
end
x = 1
turtle.turnRight()
turtle.forward()
turtle.turnRight
for x = 1 , 5 do
planten()
coal()
turtle.forward()
end
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for x = 1 , 5 do
planten()
coal()
turtle.forward()
end
turtle.forward()
turtle.turnLeft()
x = 0
for x = 1 , 5 do
turtle.forward()
end
x = 3
for x = 3,16 do
turtle.select(x)
turtle.dropDown(64)