Posted 16 April 2012 - 02:49 AM
lua:43: attempt to call nil.
I Used function bedrock()
my api:
function getTree()
x = 0
while turtle.detect() == true do
turtle.dig()
turtle.digUp()
turtle.up()
x=x+1
end
while turtle.detectDown() == false do
turtle.down()
end
print ("The Tree Was "..x.." Chunks Big!")
end
function bedrock()
while turtle.detectDown() do
x = 0
turtle.digDown()
turtle.down()
x=x+1
end
while turtle.detectDown() == false do
turtle.up
end
while turtle.detect() == true do
print ("I Dug "..x.." spaces!")
end
I Used function bedrock()
my api:
function getTree()
x = 0
while turtle.detect() == true do
turtle.dig()
turtle.digUp()
turtle.up()
x=x+1
end
while turtle.detectDown() == false do
turtle.down()
end
print ("The Tree Was "..x.." Chunks Big!")
end
function bedrock()
while turtle.detectDown() do
x = 0
turtle.digDown()
turtle.down()
x=x+1
end
while turtle.detectDown() == false do
turtle.up
end
while turtle.detect() == true do
print ("I Dug "..x.." spaces!")
end