I am having issues with my Java Model, here is the code
// Made with Blockbench 3.5.0
// Exported for Minecraft version 1.12
// Paste this class into your mod and generate all required imports
public class ghastvilliger extends ModelBase {
private final ModelRenderer i;
private final ModelRenderer j;
public ghastvilliger() {
textureWidth = 256;
textureHeight = 144;
i = new ModelRenderer(this);
i.setRotationPoint(27.0F, 74.0F, -17.0F);
i.cubeList.add(new ModelBox(i, 0, 0, -59.0F, -129.0F, -15.0F, 64, 79, 64, 0.0F, false));
i.cubeList.add(new ModelBox(i, 192, 0, -34.0F, -74.0F, -31.0F, 16, 30, 16, 0.0F, false));
j = new ModelRenderer(this);
j.setRotationPoint(0.0F, 0.0F, 12.0F);
i.addChild(j);
setRotationAngle(j, 25.0F, 0.0F, 0.0F);
j.cubeList.add(new ModelBox(j, 208, 68, -18.0F, -45.8274F, 38.9712F, 12, 64, 12, 0.0F, false));
j.cubeList.add(new ModelBox(j, 208, 68, -9.0F, -58.9286F, 10.8757F, 12, 64, 12, 0.0F, false));
j.cubeList.add(new ModelBox(j, 208, 68, -38.0F, -53.8572F, 21.7514F, 12, 64, 12, 0.0F, false));
j.cubeList.add(new ModelBox(j, 208, 68, -26.0F, -61.4643F, 5.4378F, 12, 64, 12, 0.0F, false));
j.cubeList.add(new ModelBox(j, 208, 68, -53.0F, -46.25F, 38.0649F, 12, 64, 12, 0.0F, false));
j.cubeList.add(new ModelBox(j, 208, 68, -53.0F, -62.7321F, 2.7189F, 12, 64, 12, 0.0F, false));
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
i.render(f5);
j.render(f5);
}
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
could somebody help with this? (sorry for the bad name spelling [ghastvilliger], I tried everything I could)
Issue comments
I can confirm this new comment at the top breaks MCreator importer.
The current workaround is to manually remove this comment.
// Made with Blockbench 3.5.0
// Exported for Minecraft version 1.14
// Paste this class into your mod and generate all required imports
Proper fix in 2020.3
To all having this bug due to 2020.2.
Update to 2020.3 (or newer when released) and check this page: https://mcreator.net/plugin/64513/minecraft-1122-generator
Wait i just figured out the problem
ITS THE STUPID COMMENT AT THE TOP!
"// Made with Blockbench 3.5.0
// Exported for Minecraft version 1.12
// Paste this class into your mod and generate all required imports"