CraftTweaker

CraftTweaker

151M Downloads

Getting an error with the code but cant figure out what is the issue.

Jennifercutixx opened this issue ยท 5 comments

commented

Ive added tons before and when i tried it out and finihsed the recipes. It gives me an error on code to large and dunno if its bc added too many or something. Please help

Untitled

and yes i have renamed it before and worked completly fine. Any help on this would be good thank you.

commented

It seems that i was corrected and the script couldnt load more then a certin amount of recipe lines. But i hope the mod will in the future be able to handle more recipes in the future. but still i love the mod for allowing ppl who ant good at java script to add recipes into the game. ^^

commented

Split your script into multiple files.

commented

ye that might work unless you know it works. Thank you for the tip never would have thought of that tbh haha

commented

The problem is that ZS will put everything you write in your script into one method.
Java has a hard set limit on how many instructions can be inside of one method.

So using multiple script files solves that problem since each script file will be in its own method.

commented

aww okies thank you very much ^^