Here is the code for the inventFull() function:
function checkInvent()
for i = 1,16 do
if turtle.getItemCount(i) == 0 then
inventFull = false
break
end
end
if not inventFull == false then
inventFull = true
print("Inventory Full!")
if blocksMoved > 0 then
print("Returning to start...")
returnToStart()
end
error("Could not mine because inventory is full.")
end
end
P.S. I am using the FeedTheBeast modpack which I assume uses the latest version of ComputerCraft, if that makes any difference.











