Posted 18 September 2013 - 04:49 PM
I made a program for a turtle to turn gravel into flint. It worked fine until the part where it drops all but one flint into a chest above it.
The exact error was: gravel :9: Expected number
turtle.select(1)
gravel = turtle.getItemCount(1)
while true do
turtle.place()
turtle.dig()
gravel = turtle.getItemCount(1)
if tonumber(gravel) < 1 then
turtle.select(16)
while turtle.getItemCount() < 1 do
turtle.dropUp(1)
end
turtle.select(1)
os.reboot()
end
end
The exact error was: gravel :9: Expected number