Posted 13 September 2012 - 10:55 PM
Hello all,
I am making a cobble generator and I get this error:
Here is my entire API:
The focus is the cobbleGen function.
Here are some screenshots also.
I am making a cobble generator and I get this error:
Spoiler
Function:4d0152bb
Spoiler
function getTree()
while turtle.detect() do
turtle.dig()
print("Digging the block")
turtle.digUp()
print("Digging the block")
turtle.up()
print("Moving up")
end
while not turtle.detect() and not turtle.detectDown() do
turtle.down()
print("Moving down")
end
print("Job done!")
end
function cobbleGen()
while true do
if turtle.detect() then
turtle.dig()
end
itemcount = turtle.getItemCount(9)
if itemcount == 64 then
for i=1,9 do
turtle.select(i)
turtle.drop()
end
turtle.select(1)
end
end
end
Here are some screenshots also.