This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
iluvwaffles2's profile picture

I suck at this

Started by iluvwaffles2, 18 June 2012 - 06:24 PM
iluvwaffles2 #1
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)
MysticT #2
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).
iluvwaffles2 #3
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…
kazagistar #4
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.
iluvwaffles2 #5
Posted 18 June 2012 - 08:33 PM
thanks
archit #6
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