All directional connecting custom block crashing game? (How can I fix this?)

Started by Aroyki on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All directional connecting custom block crashing game? (How can I fix this?)
Sun, 09/18/2022 - 07:45 (edited)

(Quick Edit: Its 62 if elses, and 24 models)

Hello!

I was working on a block (Truthfully its blocks, but all but one are unobtainable) that has rotatable models to connect Up/Down/North/South/East/West, and a procedure so it can be connected however (Almost exactly like chorus). It worked quite well when I had a bit of the procedure done. But, now that it's done, it has been crashing the game every time I try to place then next to each other.

 

If there's anyone with prior experience making these sorts of blocks, Can I somehow split the procedure? (it's one if statement with 50+ else ifs and one final else) Or is there some other solution?

Edited by Aroyki on Sun, 09/18/2022 - 07:45