Model name is not a valid Java name!

Started by periodt. on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Model name is not a valid Java name!
Wed, 07/24/2019 - 08:33 (edited)

I made my mob and i named it to Mob1 and i was trying to import mob into MCreator and it gave me error saying:

Screenshot of that error

What does that mean i don't understand help me

Edited by periodt. on Wed, 07/24/2019 - 08:33
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Russian
Thu, 07/25/2019 - 14:08

Russian

Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im having the same error its…
Mon, 08/05/2019 - 20:13

im having the same error its so annoying, i renamed it 5 times, and i even renamed it to nothing but .java, nothing works. 

Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you just need to open the…
Thu, 05/28/2020 - 17:33

you just need to open the mob model (.java) with notepad, then in the first few lines you will see this: "public class custom_model extends EntityModel<Entity>" and down in other line this: "public custom_model()". in there, where it says "custom model" (or whatever it ways in that exact place), you need to change from "custom_model" to other thing (normally, the mob name). in the other line you need to do the same, changing the "custom_model" to EXACTLY the same as you changed to in the other line. Make sure that both replacements of "custom_model" has the exact same name (even capital letters). then save it and import it. It turns out that for .java models, it doesnt use the file name, instead it uses the java class name. So even if the file names are different, if both java class has same name it will count as same name of file in MCreator.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i am having the same issue…
Wed, 12/30/2020 - 08:36

i am having the same issue. this does not work...