error importing blockbench model

Started by Manatee on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined May 2019
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
error importing blockbench model

I have been trying to make a mod adding a mob and it keeps giving an error. I think it is because of the model i made with blockbench but I am not sure what is wrong and have tryed everything I know of. This is the error:

C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:224: error: ';' expected
private final ModelRenderer tail fin;
                                ^
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:224: error: <identifier> expected
private final ModelRenderer tail fin;
                                    ^
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:252: error: ';' expected
tail fin.setRotationPoint(0.0F, 0.0F, 0.0F);
        ^
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:253: error: ')' expected
bone4.addChild(tail fin);
                   ^
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:253: error: illegal start of expression
bone4.addChild(tail fin);
                       ^
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:254: error: ';' expected
tail fin.cubeList.add(new ModelBox(tail fin, 0, 0, 14.0F, -3.0F, -5.0F, 6, 1, 9, 0.0F, false));
        ^
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:254: error: ')' expected
tail fin.cubeList.add(new ModelBox(tail fin, 0, 0, 14.0F, -3.0F, -5.0F, 6, 1, 9, 0.0F, false));
                                       ^
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:254: error: ';' expected
 

I just made this account to ask this question and am not yet sure how the sight works so please tell me if this is the wrong place.

Active 4 years ago
Joined Feb 2018
Points:
727

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Alright, did you export it…
Mon, 05/06/2019 - 23:56

Alright, did you export it as a block model?

Active 5 years ago
Joined May 2019
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
What? Its a mob model.
Tue, 05/07/2019 - 00:54

What? Its a mob model.

Active 4 years ago
Joined Feb 2018
Points:
727

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Oh, ok. Did you export it in…
Tue, 05/07/2019 - 00:57

Oh, ok. Did you export it in the correct format?

Active 5 years ago
Joined May 2019
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
I exported it as a java file…
Tue, 05/07/2019 - 00:59

I exported it as a java file. Is that what you mean?

Active 4 years ago
Joined Feb 2018
Points:
727

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Yea. Well, i have never used…
Tue, 05/07/2019 - 01:06

Yea. Well, i have never used blockbench for mobs, so i dont really understand this. My best guess is that you made a mistake somewhere while making the mob.

Active 5 years ago
Joined May 2019
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
Thanks anyway will check mob…
Tue, 05/07/2019 - 01:23

Thanks anyway will check mob again.

You have a part called tail…
Tue, 05/07/2019 - 10:43

You have a part called tail fin which is not a valid Java model part name. Java member names can't contain spaces.

Active 5 years ago
Joined May 2019
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
I tried to fix that and it…
Tue, 05/07/2019 - 12:21

I tried to fix that and it seems to be a whole new error now:

C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:57: error: cannot find symbol
        RenderingRegistry.registerEntityRenderingHandler(mcreator_manatee.Entitymanatee.class, new RenderLiving(new mcreator_manatee.Modelmanatee3(),
                                                                                                                                    ^
  symbol:   class Modelmanatee3
  location: class mcreator_manatee
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:213: error: constructor ModelBox in class ModelBox cannot be applied to given types;
            body.cubeList.add(new ModelBox(body, 0, 0, -4.0F, -7.0F, -5.0F, 15, 7, 9, 0.0F, false));
                              ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:217: error: constructor ModelBox in class ModelBox cannot be applied to given types;
            head.cubeList.add(new ModelBox(head, 0, 0, -10.0F, -6.0F, -5.0F, 6, 6, 9, 0.0F, false));
                              ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:225: error: constructor ModelBox in class ModelBox cannot be applied to given types;
            tail2.cubeList.add(new ModelBox(tail2, 0, 0, 9.0F, -5.0F, -3.0F, 7, 4, 5, 0.0F, false));
                               ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:226: error: constructor ModelBox in class ModelBox cannot be applied to given types;
            tail2.cubeList.add(new ModelBox(tail2, 0, 0, 15.0F, -3.0F, -6.0F, 5, 1, 11, 0.0F, false));
                               ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:231: error: constructor ModelBox in class ModelBox cannot be applied to given types;
            fin.cubeList.add(new ModelBox(fin, 0, 0, -3.0F, -3.0F, -6.0F, 3, 6, 1, 0.0F, false));
                             ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
C:\Users\Andrew\Desktop\MCreator173\forge\build\sources\java\mod\mcreator\mcreator_manatee.java:236: error: constructor ModelBox in class ModelBox cannot be applied to given types;
            fin4.cubeList.add(new ModelBox(fin4, 0, 0, -3.0F, -3.0F, 4.0F, 3, 6, 1, 0.0F, false));
                              ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
7 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.
 

 

The model you exported is…
Tue, 05/07/2019 - 18:38

The model you exported is for the latest version of Minecraft supported (1.12.2) and not 1.7.10 unfortunately and this is modeler issue, not MCreator's.