AutoLocK, on 19 September 2013 - 02:43 AM, said:
Jappards, on 01 June 2013 - 01:09 PM, said:
when i looked at the amount of movement API`s out there, i saw that there aren`t any proper ones, so i created a proper one.
-snip-
You know that your API is basically just the basic Turtle API? It doesn't really add anything else in.
I agree with you, but he tried to do something "simpler". I made a turtle API once, but lost it (whatever), it had options like
function dig(dir, tillGravelEnds)
if tillGravelEnds == nil then tillGravelEnds = true end
if dir == nil then dir = "frwd" end
if dir == "left" then
turtle.turnLeft()
if tillGravelEnds then
while turtle.detect() do
turtle.dig()
sleep(0.6) -- Was the best time for me
end
else
turtle.dig()
end
turtle.turnRight()
end
end
That's a part of my "dig" function. Turtle API should contain every function that interacts with the Minecraft world.
I can see that your code contains critical function bugs (that means it won't function at all because of that bug).
What you wrote:
for i = 1, times[1] do
...
end
You try to access the times variable as a table (a collection of information in one variable). It should be:
for i = 1, times do
...
end
Anyways, I don't really like turtles, because I don't play Minecraft, unless coding

If you're just like me, PM me for some more help. I'd like to help you =)