Posted 14 June 2012 - 05:50 PM
I just cant figure out what's wrong with it. Help would be gladly appreciated.
hear is the code.
function a()
turtle.back()
turtle.place()
turtle.turnRight()
turtle.turnRight()
if turtle.detect() then
turtle.up()
turtle.placeDown()
shel.exit()
end
else
turtle.turnRight()
turtle.turnRight()
end
end
function p()
turtle.select(1)
a()
end
if turtle.getItemCount(1) == 0 then
turtle.select(2)
a()
end
while true do
p()
end
hear is the code.
function a()
turtle.back()
turtle.place()
turtle.turnRight()
turtle.turnRight()
if turtle.detect() then
turtle.up()
turtle.placeDown()
shel.exit()
end
else
turtle.turnRight()
turtle.turnRight()
end
end
function p()
turtle.select(1)
a()
end
if turtle.getItemCount(1) == 0 then
turtle.select(2)
a()
end
while true do
p()
end