Started by
JayStarPlays
on
Topic category: Troubleshooting, bugs, and solutions
Whenever I attempt to upload a Java model, it gives me this error saying
"Your model name is not a valid Java name! Custom mob model names can not contain whitespace, start with number or contain any non ASCII letters. Model name is not filename, but the name inside the model Java code (model class name)! The best solution to this problem is to properly define the model name in your modeler before exporting the model."
I've tried messing around, making new models from scratch and messing around with the code inside the file, but it doesn't change. Please help!
I am using blockbench to make these models, fyi.
If you saved your model, go to blockbench, click File>Project...>Change the mob geometry name to the same thing as your file name.
If you haven't, open the .java file with for example notepad++ and replace:
public class *SOMETHING* extends ModelBase {
to
public class FILENAME(without the .java) extends ModelBase {
do the same thing with everything that has the wrong name, such as
public SOMETHING() {
I've tried all that, and it still gives me the same error message. :/
Every second forum topic is about this. Can you not search?
https://mcreator.net/tracker/issue/60020
Wow, you're a very nice person. You are soooo nice and so friendly.