Posted 26 February 2012 - 08:00 PM
Hi, I am pretty new to coding in Lua so I thought I'd start with something simple… and then I got this error: bios:206: [string "mineshaft"]:3: '=' expected
My code (done in notepad ++):
My code (done in notepad ++):
–Create a mineshaft
print("Creating your mineshaft, Press any key to stop")
While true do
turtle.digdown()
turtle.down()
turtle.turnright()
turtle.dig()
turtle.forward()
turtle.turnleft()
turtle.dig()
turtle.forward()
turtle.turnleft()
turtle.dig()
turtle.forward()
turtle.turnright()
turtle.dig()
turtle.forward()
turtle.turnright()
turtle.dig()
turtle.turnleft()
turtle.back()
sleep(1)
end
if event == "key" then
break
end