Model error

Started by Pr@uhh on Tue, 01/01/2019 - 20:56

Topic category: Bugs and solutions

Last seen on 16:56, 31. Jan 2019
Joined Jan 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Model error
Tue, 01/01/2019 - 20:56

hello everyone, im trying to make a dragon mod but there is 1 dragon thats giving errors. im new on this application so i dont know how to solve it. can you guys help me?

these are the errors:

C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:52: error: '(' or '[' expected
        RenderingRegistry.registerEntityRenderingHandler(mcreator_testenvironmentmod.Entitytestenvironmentmod.class, new RenderLiving(new mcreator_testenvironmentmod.ModelGronckle-baby(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("Gronckle-baby.png");}
                                                                                                                                                                                   ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:263: error: '{' expected
public static class ModelGronckle-baby extends ModelBase
                                 ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:318: error: <identifier> expected
public ModelGronckle-baby()
                    ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:318: error: invalid method declaration; return type required
public ModelGronckle-baby()
                     ^
4 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 

ModelGronckle-baby is not a…
Wed, 01/02/2019 - 09:27

ModelGronckle-baby is not a valid Java name. Change it to ModelGroncklebaby when exporting your mob model. This is the bug with the modeller you use that does not validate model names.

Last seen on 16:56, 31. Jan 2019
Joined Jan 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i did that now i getting…
Wed, 01/02/2019 - 15:43

i did that now i getting this errors:

C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:274: error: variable built is already defined in class ModelGroncklebaby
        ModelRenderer built;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:275: error: variable built is already defined in class ModelGroncklebaby
        ModelRenderer built;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:276: error: variable built is already defined in class ModelGroncklebaby
        ModelRenderer built;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:277: error: variable built is already defined in class ModelGroncklebaby
        ModelRenderer built;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:279: error: variable Shape1 is already defined in class ModelGroncklebaby
        ModelRenderer Shape1;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:283: error: variable Shape4 is already defined in class ModelGroncklebaby
        ModelRenderer Shape4;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:286: error: variable Shape6 is already defined in class ModelGroncklebaby
        ModelRenderer Shape6;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:287: error: variable Shape6 is already defined in class ModelGroncklebaby
        ModelRenderer Shape6;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:291: error: variable Shape9 is already defined in class ModelGroncklebaby
        ModelRenderer Shape9;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:292: error: variable Shape7 is already defined in class ModelGroncklebaby
        ModelRenderer Shape7;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:293: error: variable Shape8 is already defined in class ModelGroncklebaby
        ModelRenderer Shape8;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:295: error: variable Shape10 is already defined in class ModelGroncklebaby
        ModelRenderer Shape10;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:296: error: variable Shape10 is already defined in class ModelGroncklebaby
        ModelRenderer Shape10;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:297: error: variable Shape10 is already defined in class ModelGroncklebaby
        ModelRenderer Shape10;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:298: error: variable Shape10 is already defined in class ModelGroncklebaby
        ModelRenderer Shape10;
                      ^
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_babygronckle.java:299: error: variable Shape10 is already defined in class ModelGroncklebaby
        ModelRenderer Shape10;
                      ^
16 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 

You are using multiple parts…
Wed, 01/02/2019 - 18:38

You are using multiple parts with the same name. Each part should have a unique valid name. It is the task of the modeler tool to take care of this, not MCreator.