Posted 19 June 2013 - 07:06 PM
Hello,I tried programming a program for a farming turtle to farm and replant my wheat.the problwm is,when i start the program,nothing happens.
There i no error or something,it simply doesn't happen anything.Here is the code:
There i no error or something,it simply doesn't happen anything.Here is the code:
function line1()
for i=1,7 do
turtle.dig()
turtle.forward()
turtle.placeDown(1)
end
end
function turn1()
turtle.turnRight()
turtle.forward()
turtle.dig()
turtle.forward()
turtle.placeDown(1)
turtle.turnRight()
end
function line2()
for i2=1,6 do
turtle.dig()
turtle.forward()
turtle.placeDown(1)
end
end
function turn2()
turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.placeDown(1)
turtle.turnLeft()
end
function line3()
for i3=1,6 do
turtle.dig()
turtle.forward()
turtle.placeDown(1)
end
end
function turn3()
turtle.turnRight()
turtle.forward()
turtle.dig()
turtle.forward()
turtle.placeDown(1)
turtle.turnRight()
end
function line4()
for i4=1,6 do
turtle.dig()
turtle.forward()
turtle.placeDown(1)
end
end
function final()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.drop(2)
turtle.turnRight()
end
Edited by