Your model name is not a valid java name. Exported from Blockbench

Published by nc543 on Sun, 05/17/2020 - 19:58
Issue description

I am trying to import my manticore model, but every time I try it tells me that the model name is not a valid java name. I have looked around, but the solutions I have seen have not applied to my code. I noticed that the code says exported for Minecraft 1.15 while I am on 1.12. I don't know if that is causing the problem, but I could not find a way to change which version of Minecraft Blockbench exports to. Here is the code:

// Made with Blockbench 3.5.2

// Exported for Minecraft version 1.15

// Paste this class into your mod and generate all required imports


public class manticore extends EntityModel<Entity> {

    private final ModelRenderer body;

    private final ModelRenderer head;

    private final ModelRenderer leg0;

    private final ModelRenderer leg1;

    private final ModelRenderer leg2;

    private final ModelRenderer leg3;


    public manticore() {

        textureWidth = 64;

        textureHeight = 64;


        body = new ModelRenderer(this);

        body.setRotationPoint(0.0F, 5.0F, 2.0F);

        setRotationAngle(body, 1.5708F, 0.0F, 0.0F);

        body.setTextureOffset(28, 8).addBox(-4.0F, -10.0F, -7.0F, 8.0F, 16.0F, 6.0F, 0.0F, false);

        body.setTextureOffset(28, 40).addBox(-4.0F, -10.0F, -7.0F, 8.0F, 16.0F, 6.0F, 1.75F, false);


        head = new ModelRenderer(this);

        head.setRotationPoint(0.0F, 6.0F, -8.0F);

        head.setTextureOffset(0, 0).addBox(-3.0F, -4.0F, -6.0F, 6.0F, 6.0F, 8.0F, 0.0F, false);

        head.setTextureOffset(0, 32).addBox(-3.0F, -4.0F, -4.0F, 6.0F, 6.0F, 6.0F, 0.6F, false);


        leg0 = new ModelRenderer(this);

        leg0.setRotationPoint(-3.0F, 12.0F, 7.0F);

        leg0.setTextureOffset(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 0.0F, false);

        leg0.setTextureOffset(0, 48).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 6.0F, 4.0F, 0.5F, false);


        leg1 = new ModelRenderer(this);

        leg1.setRotationPoint(3.0F, 12.0F, 7.0F);

        leg1.setTextureOffset(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 0.0F, false);

        leg1.setTextureOffset(0, 48).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 6.0F, 4.0F, 0.5F, false);


        leg2 = new ModelRenderer(this);

        leg2.setRotationPoint(-3.0F, 12.0F, -5.0F);

        leg2.setTextureOffset(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 0.0F, false);

        leg2.setTextureOffset(0, 48).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 6.0F, 4.0F, 0.5F, false);


        leg3 = new ModelRenderer(this);

        leg3.setRotationPoint(3.0F, 12.0F, -5.0F);

        leg3.setTextureOffset(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 0.0F, false);

        leg3.setTextureOffset(0, 48).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 6.0F, 4.0F, 0.5F, false);




    public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){

        //previously the render function, render code was moved to a method below




    public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){

        body.render(matrixStack, buffer, packedLight, packedOverlay);

        head.render(matrixStack, buffer, packedLight, packedOverlay);

        leg0.render(matrixStack, buffer, packedLight, packedOverlay);

        leg1.render(matrixStack, buffer, packedLight, packedOverlay);

        leg2.render(matrixStack, buffer, packedLight, packedOverlay);

        leg3.render(matrixStack, buffer, packedLight, packedOverlay);



    public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {

        modelRenderer.rotateAngleX = x;

        modelRenderer.rotateAngleY = y;

        modelRenderer.rotateAngleZ = z;



Issue comments

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.