Not valid java code name!

Started by FerColors on

Topic category: Help with MCreator software

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not valid java code name!

So, my problem isin't new, but, i tried EVERYTHING, and couldn't fix the error, MCreator keeps saying the name of my model have whitespace or something like that, but i looked in the code, and i can't see what's wrong, pls help me! Here's the code, if you reconize the problem, asnwer me!
 

// Made with Blockbench 3.7.4
// 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 Chest;
    private final RendererModel LeftArm;
    private final RendererModel RightArm;
    private final RendererModel LeftFeet;
    private final RendererModel RightFeet;

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

        Chest = new RendererModel(this);
        Chest.setRotationPoint(0.0F, 24.0F, 0.0F);
        Chest.cubeList.add(new ModelBox(Chest, 0, 0, -8.0F, -22.0F, -8.0F, 16, 20, 16, 0.0F, false));
        Chest.cubeList.add(new ModelBox(Chest, 31, 36, -4.0F, -16.0F, 8.0F, 7, 2, 2, 0.0F, false));

        LeftArm = new RendererModel(this);
        LeftArm.setRotationPoint(0.0F, 24.0F, 0.0F);
        LeftArm.cubeList.add(new ModelBox(LeftArm, 18, 36, 6.0F, -14.0F, -3.0F, 4, 8, 5, 0.0F, false));

        RightArm = new RendererModel(this);
        RightArm.setRotationPoint(0.0F, 24.0F, 0.0F);
        RightArm.cubeList.add(new ModelBox(RightArm, 0, 36, -10.0F, -14.0F, -3.0F, 4, 8, 5, 0.0F, false));

        LeftFeet = new RendererModel(this);
        LeftFeet.setRotationPoint(0.0F, 24.0F, 0.0F);
        LeftFeet.cubeList.add(new ModelBox(LeftFeet, 0, 8, -6.0F, -3.0F, -3.0F, 3, 3, 5, 0.0F, false));

        RightFeet = new RendererModel(this);
        RightFeet.setRotationPoint(0.0F, 24.0F, 0.0F);
        RightFeet.cubeList.add(new ModelBox(RightFeet, 0, 0, 3.0F, -3.0F, -3.0F, 3, 3, 5, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        Chest.render(f5);
        LeftArm.render(f5);
        RightArm.render(f5);
        LeftFeet.render(f5);
        RightFeet.render(f5);
    }

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

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh... I would never though…
Thu, 12/03/2020 - 12:30

Oh... I would never though about that! Thank you so much!