Topic category: Help with MCreator software
So I imported a .java of an enderman model from Techne and it asked me to set the animations which I honestly don't really understand as I just match head to head and right arm to right arm and left arm to left arm etc. and when I choose the model for the mob I tried to create the build failed. I did load a texture for the enderman model in Techne and exported it. This is a part I also don't understand my thought process is because I already loaded a texture for the model in Techne and when I select the model in Mcreator it asks for a texture all I did was use the same texture as the one I used in Techne, I don't know if that screws anything up. this is what it gives me:
C:\Users\SPenc\Desktop\aAAA\build\sources\main\java\net\mcreator\sag\MCreatorGgg.java:202: error: illegal start of expression
= new ModelRenderer(this, 0, 0);
^
C:\Users\SPenc\Desktop\aAAA\build\sources\main\java\net\mcreator\sag\MCreatorGgg.java:203: error: illegal start of expression
.addBox(0F, 0F, 0F, 1, 1, 1);
^
C:\Users\SPenc\Desktop\aAAA\build\sources\main\java\net\mcreator\sag\MCreatorGgg.java:204: error: illegal start of expression
.setRotationPoint(0F, -19F, 0F);
^
C:\Users\SPenc\Desktop\aAAA\build\sources\main\java\net\mcreator\sag\MCreatorGgg.java:205: error: illegal start of expression
.setTextureSize(64, 32);
^
C:\Users\SPenc\Desktop\aAAA\build\sources\main\java\net\mcreator\sag\MCreatorGgg.java:206: error: illegal start of expression
.mirror = true;
^
C:\Users\SPenc\Desktop\aAAA\build\sources\main\java\net\mcreator\sag\MCreatorGgg.java:207: error: illegal start of expression
setRotation(, 0F, 0F, 0F);
^
C:\Users\SPenc\Desktop\aAAA\build\sources\main\java\net\mcreator\sag\MCreatorGgg.java:221: error: illegal start of expression
.render(f5);
^
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. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
I think that a part of the mob is mirrored. This often causes bugs with Techne (or at least it did to me). Disable that option and check if it works
Where do I go to disable the mirrored option?
Where do I go to disable the mirrored option?
oops
I can't send you images now. When you select a part of a model (head, body, arms, legs...)you can choose to mirror its texture. This however often causes issues with Techne.
If the issue persist I would recommend using Blockbench instead, which is much stabler.
I don't really know how to create a model. Do you have a model of an enderman I can download because the problem still persists. I took a look at blockbench and it only imports .json files I tried to convert the enderman.java file from techne to a .json to export as a OBJ model, idk if I can export as anything else mcreator will accept, but when importing the enderman.json blockbench gave me the error of unexpected token p in JSON at position 11. I also tried to import the ennderman.json to mcreator but it gives me a texture mapping with nothing in it and I don't know how to import a texture map is there a specific way to do it?
One of the parts of your model has an empty name. Rename or remove this part and import your model again.
I looked at the model in techne and it has all the parts of the model with names such as head left leg, left arm, right arm, right leg etc. Where am I suppose to find this empty name in the code of the .json?
In model elements tree if you use Techne. What .json are you talking about, were we not talking about .java?
Well I'm just being bad at this thinking stupidly by converting the .java to a .json, but where is this model elements tree in techne is it on the left or the right of it because it gives me the list of what the model is made of on the right: right leg, left leg, right arm, left arm, head, body, and headgear. The left is just what object is highlighted and its dimensions and position.
If you can't find the model without name there, try to manually remove it in code. Your model code does indeed containt one element without name based on the error log you posted.
Enderman's techne model is broken! I suggest leaving the Techne that no longer has support ... use Blockbench which is much better!
Ok well that's a shame. For blockbench does it already have a model of enderman somewhere I can have or is there an online library of models?
There is the official plugin: "Bedrock Entity Generator"