Posted 29 December 2012 - 04:24 AM
Hi, I'm new to programming and having some slight issues. problem is when a player or animal is standing infront of turtle.
he will continue until there is another block behind the player and stop without digging out the rest of the way.
thanks in advance for any pointers
e=0
while e<10 do
if not turtle.detect() then
repeat
turtle.forward()
e=e+1
until turtle.detect()==true
else
repeat
turtle.dig()
until turtle.detect()==false
end
end
he will continue until there is another block behind the player and stop without digging out the rest of the way.
thanks in advance for any pointers
e=0
while e<10 do
if not turtle.detect() then
repeat
turtle.forward()
e=e+1
until turtle.detect()==true
else
repeat
turtle.dig()
until turtle.detect()==false
end
end