Attempt To Perform Arithmetic __add on nil and numberIt says it is on line 6 of this code.
function getTree() x = 0 while turtle.detect() do turtle.dig() turtle.digUp() turtle.up() x = x + 1 end while turtle.detectDown() == false do turtle.down() end print("The tree was "..x.." blocks high!") endI placed my 'file' in the API's folder and i am befuddled as to what I should try. Can someone help?
EDIT: When I run it I enter 'xcorAPI.getTree()' under the lua
EDIT: Here is my API http://pastebin.com/VHfk8KYP