Topic category: Help with Minecraft modding (Java Edition)
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.
Alright, did you export it as a block model?
What? Its a mob model.
Oh, ok. Did you export it in the correct format?
I exported it as a java file. Is that what you mean?
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.
Thanks anyway will check mob again.
You have a part called tail fin which is not a valid Java model part name. Java member names can't contain spaces.
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 for the latest version of Minecraft supported (1.12.2) and not 1.7.10 unfortunately and this is modeler issue, not MCreator's.