java model import bug

Published by poupeuu on
Issue description

i cant import java models i keep getting error "Custom mob model names can not contain whitespace, start with number of contain any non ASCII letters"

i have changed the name of my model so many times, but the error still pops up on my screen.

Issue comments

i changed the file name from the bbmodel yet it does work

// Made with Blockbench 3.5.2
// Exported for Minecraft version 1.14
// Paste this class into your mod and generate all required imports

public class penguin extends EntityModel {
    private final RendererModel left_foot;
    private final RendererModel right_foot;
    private final RendererModel body;
    private final RendererModel left_arm;
    private final RendererModel right_arm;
    private final RendererModel head;
    private final RendererModel mouth;
    private final RendererModel mouth2;
    private final RendererModel chest;

    public penguin() {
        textureWidth = 128;
        textureHeight = 128;

        left_foot = new RendererModel(this);
        left_foot.setRotationPoint(3.0F, 23.0F, 5.0F);
        left_foot.cubeList.add(new ModelBox(left_foot, 28, 5, -7.0F, 0.0F, -2.0F, 9, 1, 4, 0.0F, false));

        right_foot = new RendererModel(this);
        right_foot.setRotationPoint(2.0F, 24.0F, -5.0F);
        right_foot.cubeList.add(new ModelBox(right_foot, 28, 0, -6.0F, -1.0F, -2.0F, 9, 1, 4, 0.0F, false));

        body = new RendererModel(this);
        body.setRotationPoint(0.0F, 15.0F, 0.0F);
        body.cubeList.add(new ModelBox(body, 0, 0, 0.0F, -7.0F, -7.0F, 7, 15, 14, 0.0F, false));

        left_arm = new RendererModel(this);
        left_arm.setRotationPoint(3.0F, 9.0F, 7.0F);
        left_arm.cubeList.add(new ModelBox(left_arm, 0, 50, -3.0F, -1.0F, 0.0F, 7, 11, 1, 0.0F, false));

        right_arm = new RendererModel(this);
        right_arm.setRotationPoint(3.0F, 9.0F, -7.0F);
        right_arm.cubeList.add(new ModelBox(right_arm, 38, 38, -3.0F, -1.0F, -1.0F, 7, 11, 1, 0.0F, false));

        head = new RendererModel(this);
        head.setRotationPoint(4.0F, 8.0F, 0.0F);
        head.cubeList.add(new ModelBox(head, 32, 19, -5.0F, -8.0F, -5.0F, 9, 8, 10, 0.0F, false));

        mouth = new RendererModel(this);
        mouth.setRotationPoint(-1.0F, 6.0F, 0.0F);
        mouth.cubeList.add(new ModelBox(mouth, 0, 0, -2.0F, -1.0F, -2.0F, 2, 1, 4, 0.0F, false));

        mouth2 = new RendererModel(this);
        mouth2.setRotationPoint(-1.0F, 7.0F, 0.0F);
        mouth2.cubeList.add(new ModelBox(mouth2, 0, 5, -2.0F, -1.0F, -1.0F, 2, 1, 2, 0.0F, false));

        chest = new RendererModel(this);
        chest.setRotationPoint(3.0F, 13.0F, 1.0F);
        chest.cubeList.add(new ModelBox(chest, 0, 29, -4.0F, -3.0F, -6.0F, 9, 11, 10, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        left_foot.render(f5);
        right_foot.render(f5);
        body.render(f5);
        left_arm.render(f5);
        right_arm.render(f5);
        head.render(f5);
        mouth.render(f5);
        mouth2.render(f5);
        chest.render(f5);
    }

    public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }
}

It says

Your model name is not a valid java name!

custom mob model names can not contain whitespace, start with number or contain any non ASCIl letters.

model name is not filename, but the name inside the model java code (model class name)!

 

i don't understand i changed it in the java file and exported and everything but nothing changes it