lua

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Mikey_R

New Member
Jul 29, 2019
382
0
0
Just to make it a bit clearer, you have a space in the dig4(). Take it out and it should work fine.
 

BlackFire

New Member
Jul 29, 2019
344
0
0
I think the problem is the levels of the functions. If you put all the functions on the same level, move the "end"s to close off each function before starting the new one, it should work.

Why did you embed them anyways?
 

BlackFire

New Member
Jul 29, 2019
344
0
0
they are embedded as you wrote them such as function dig4() is within function dig3() is within function dig2...

When you try to call a function that is embedded, such as how you are trying to call dig5() which is within dig4(), the program can't start there.

If you put an extra end statement after your if statments (closing the function) it should work.
 

slay_mithos

New Member
Jul 29, 2019
1,288
0
0
Basically, your dig5 is inside dig4 that is inside dig3 ... That is what embed means.
You need to put the 'end' for each function before you start the next one.

By the way, do register on pastebin, it lets you edit the content when you manually put it there, so just edit the pastebin directly and then send it to your turtle.
That way you can keep the same code instead of having a new one each time.