3 posts
Posted 18 June 2012 - 08:24 PM
im trying to make my mining turtle just mine like… normal and i cant really do it. just trying to make him do as big as a minecraft person can be, i have this
turtle.dig()
turtle.forward()
turtle.digdown()
turtle.down()
end
and i get bios:206: [string "mining"] :5: '<eof>' expected
(btw im a big newb at this)
1604 posts
Posted 18 June 2012 - 08:25 PM
Remove the "end", you don't need to put it at the end of the program.
end is just to close blocks (if, while, for, etc).
3 posts
Posted 18 June 2012 - 08:27 PM
after i removed End i got (Mining:3: attempt to call nil) after it dug forward and moved forward…
351 posts
Posted 18 June 2012 - 08:30 PM
local length = 10
for i=1,length do
turtle.digDown()
turtle.dig()
turtle.forward()
end
turtle.digDown()
Should work for ya. Remember, capitalization is important, and the default function names use camelCase.
3 posts
Posted 18 June 2012 - 08:33 PM
thanks
30 posts
Posted 19 June 2012 - 12:20 AM
im trying to make my mining turtle just mine like… normal and i cant really do it. just trying to make him do as big as a minecraft person can be, i have this
turtle.dig()
turtle.forward()
turtle.digdown()
turtle.down()
end
and i get bios:206: [string "mining"] :5: '<eof>' expected
(btw im a big newb at this)
besides the end, the reason why you got an error on line 3 is because digdown() should be digDown()
Have to watch capitalization in lua