Posted 12 January 2014 - 02:15 PM
Could you help with this program to shear turtles?
It dumps wool in the second slot into a chest below.
while turtle.getItemCount(1) == 1 do
turtle.place()
turtle.select(2)
turtle.dropDown()
turtle.select(1)
sleep(60)
turtle.turnRight()
turtle.select(1)
turtle.suckUp()
if turtle.getItemCount(1) == 0 then
turtle.select(1)
turtle.suckUp()
end
It has a while loop which uses a pair of shears in the first slot. I tried to put an if statement inside the loop which gets shears from the chest above it if there are no items in slot 1.It dumps wool in the second slot into a chest below.