function dig()
for i=1, 75 do
turtle.dig()
turtle.digUp()
turtle.forward()
end
function refuel()
turtle.select(1)
turtle.refuel(5)
end
function turn()
turtle.left()
turtle.left()
end
function back()
for i=1, 75 do
turtle.forward()
end
function torch()
for i=1, 7 do
turtle.select(2)
turtle.placeDown(2)
end
function cleartext()
term.clear()
holder("My Miner ", 1,1
term.setCursorPos(1,3)
end
function holder(string, columnVar,rowVar)
term.setCursorPos(columnVar, rowVar)
write (string)
end
end
end
end
cleartext()
print("Welcome to this unworking program! ")
sleep(1)
cleartext()
print("Lets get started")
sleep(1)
print("Starting...")
It tells me that I'm trying to call nil or something when it's supposed to start it's cleartext() function? what did I do wrong?











