Posted 21 October 2012 - 12:41 AM
I created a farming programm but everytime i start it i get an error!
The code is:
a = 0
if a < 1 then
turtle.select(1)
if not turtle.compare() then
turtle.dig
turtle.forward(1)
turtle.dig
turtle.dorward(1)
turtle.turnRight(2)
turtle.select(2)
turtle.turnLeft(2)
turtle.select(1)
end
if turtle.compare()
turtle.turnRight(1)
turtle.dig
turtle.forward(1)
turtle.turnRight(2)
turtle.select(2)
turtle.place
turtle.turnLeft(1)
turtle.select(1)
end
end
The first slot in the turtle is fence the second seeds!
The code is:
a = 0
if a < 1 then
turtle.select(1)
if not turtle.compare() then
turtle.dig
turtle.forward(1)
turtle.dig
turtle.dorward(1)
turtle.turnRight(2)
turtle.select(2)
turtle.turnLeft(2)
turtle.select(1)
end
if turtle.compare()
turtle.turnRight(1)
turtle.dig
turtle.forward(1)
turtle.turnRight(2)
turtle.select(2)
turtle.place
turtle.turnLeft(1)
turtle.select(1)
end
end
The first slot in the turtle is fence the second seeds!