Mob-Model import bug

Status
Works as designed
Issue description

Hey,

My friend and I made a model for an endboss who has nearly 75 cubes. We made that model in "Blockbench".

After we finished the model, we couldn't import it into MCreator (by importing it in MCreator itself). We were able to select the parts for the animation, but it didn't import into the list after clicking on "set animations".

We tried to drag and drop the java file into the "forge>run>model" folder (where you could find the other models). It now seemed to be in MCreator. We were able to select it.

But after the last page with the spawning option, the mob wasn't compiling.

After that we tried to test it with smaller models. These could be imported and compiled.

We think that there is a cube limit in MCreator that blocks off the model (.java file).

We also think that block models are also affected.
(There is no error in the console or anything else.)

Issue comments

Please attach the mob model here so I can check this for myself. If you think block models are affected too, attach one block model too.

On a side note, MCreator does just copy the model code from the imported model, so I don't think the real issue is in any "limit" of blocks.

Your mob model contains the following part names:

  • crystle-small-4
  • crystle-small-3
  • crystle-small-2
  • crystle-small-1
  • crystle-large-3
  • crystle-large-2
  • crystle-large-1

 

Java names that contain - letter are not a valid Java names. Blockbench does not validate these names and this is not the issue with MCreator. Rename these parts to something like crysleSmall4, ... and export the model again and import it again in MCreator.

More on valid Java member names: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html (Naming section)