Either lua doesn't like underscores in variables, or the turtle.back() and turtle.forward() need parentheses. Now, when I said not to use parentheses, I meant like this:
waitForRedstone(”side",functionName)
Instead of like this
waitForRedstone(”side",functionName())
Otherwise, your syntax is fine.
Edit: since it's on line one, the error is definitely the underscore. The parentheses aren't throwing an error yet, but they'll be next.
1
u/moomoomoo309 Mar 10 '15
Either lua doesn't like underscores in variables, or the turtle.back() and turtle.forward() need parentheses. Now, when I said not to use parentheses, I meant like this:
waitForRedstone(”side",functionName)
Instead of like this
waitForRedstone(”side",functionName())
Otherwise, your syntax is fine.
Edit: since it's on line one, the error is definitely the underscore. The parentheses aren't throwing an error yet, but they'll be next.