Posted 28 January 2013 - 04:14 AM
Title: Fir Tree progam used by sethbling not working?!
I've copyed it, it was working before destroyed my turtle by mistake, re-written it and now its saying an
bios:338: [string "fell"]:9: '('
code
I've copyed it, it was working before destroyed my turtle by mistake, re-written it and now its saying an
bios:338: [string "fell"]:9: '('
code
local function checkFuel()
if turtle.getFuelLevel() < 1 then
turtle.select(1)
turtle.refuel(1)
end
end
local function column()
while turtle.digUp() do
turtle.dig()
checkFuel()
turtle.up()
end
turtle.dig()
checkFuel()
while turtle.down() do
checkFuel()
end
end
local function digmove()
checkFuel()
turtle.dig()
turtle.forward()
end
digmove()
column()
turtle.turnRight()
digmove()
turtle.turnLeft()
column()
turtle.turnLeft()
digmove()
digmove()
turtle.turnRight()
column()