Everything is working like it should but I still get this annoying message.
Here is my API code:
function turn(dir) if(dir == "right")then turtle.turnRight() end if(dir == "left")then turtle.turnLeft() end if(tonumber(dir)== 2)then turtle.turnRight() turtle.turnRight() end end function forward() if(turtle.detect()==false)then while turtle.forward()==false do turtle.attack() end else while turtle.forward()==false do turtle.dig() end end end function gotInvSpace() cont = false for i=1,16 do if turtle.getItemCount(i)==0 then cont = true end end return cont end function drop() for i=1,16 do turtle.select(i) turtle.drop() end end function gotFuel() if(turtle.getFuelLevel()<=0)then for x=1,16 do turtle.select(x) if turtle.refuel(64)==true then x = 16 end end while(turtle.getFuelLevel()<=0) do turtle.refuel(64) end end end
Never name an API after another one, if the API name already exist it will give this error












