Posted 25 May 2016 - 03:10 PM
I have some experience with programming and I just started learning lua last night on computer craft, my first program which dug spiral stairs was successful but my next two programs give me the same error saying bios:14 '<name>' expected and that doesn't really explain the error.. the line where it told me the problem was didn't seem to have any mistakes.
Below is my flint program
Below is my shaft program
Below is my flint program
function refuel()
if turtle.getFuelLevel() < 10 then
while turtle.getFuelLever() < 100 do
turtle.select(1)
turtle.refuel(5)
end
end
end
function placeAndBreak()
for i=2,16 do
turtle.place()
turtle.break()
refuel()
end
end
placeAndBreak()
Below is my shaft program
function refuel()
if turtle.getFuelLevel() < 10 then
while turtle.getFuelLevel() < 100 do
turtle.select(1)
turtle.refuel(5)
end
end
end
function pathWays()
turtle.dig()
turtle.forward()
turtle.digUp()
end
function mainHallway()
pathWays()
pathWays()
turtle.turnLeft()
end
function theTunnels()
while turtle.detect() do
refuel()
pathWays()
end
end
function return()
turtle.turnLeft()
turtle.turnLeft()
while turtle.detect() == false do
refuel()
turtle.forward()
end
turtle.turnLeft()
end
while true do
refuel()
mainHallway()
theTunnels()
reutrn()
end