Posted 30 August 2012 - 06:18 PM
Thanks for the help guys but now I need more help. It needs to be able to sense when the seed slot is empty and go onto another seed slot.
_______________________________________________________________________________________________________________
_______________________________________________________________________________________________________________
function home(number)
for a = 1,number do
turtle.forward()
end
end
while true do
while not turtle.detect() do
turtle.select(1)
turtle.placeDown()
turtle.forward()
turtle.select(2)
end
while turtle.detectUp() do
turtle.select(1)
turtle.turnLeft()
turtle.placeDown()
turtle.forward()
turtle.turnLeft()
end
while turtle.compare() do
turtle.select(1)
turtle.turnRight()
turtle.placeDown()
turtle.forward()
turtle.turnRight()
end
turtle.select(3)
while turtle.compareDown(3) do
turtle.turnRight()
home(9)
turtle.turnRight()
return
end
end