Only my second script so I'm not all that adept at turtle coding. I've fixed some errors but now when running it I get
Code:
Any help appreciated
Code:
Code:
function check()
turtle.select(reed)
if turtle.compare() then
turtle.up()
if turle.compare() then
turtle.dig()
turtle.down()
turtle.dig()
else
turtle.down()
end
end
end
print("I must be placed 1 block above bottom of the bottom left sugarcane plant in a 5x5 farm
(SWSWS x5) with 1 block of space on all sides")
print("I'd also be very appreciative if there was a chest under my starting position")
print("Please place Sugarcane into Slot 1")
local reed = turtle.getItemCount(1)
while true do
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.turnrRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
check()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
check()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
check()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
check()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
check()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
check()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnRight()
for i=2,16 do
turtle.select(i)
turtle.dropDown()
end
sleep(60)
end
Any help appreciated