Your model name is not a valid Java name

Started by Mebve228 on Sat, 01/30/2021 - 12:03

Topic category: Help with MCreator software

Last seen on 12:12, 30. Jan 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Your model name is not a valid Java name
Sat, 01/30/2021 - 12:03

Your model name is not a valid Java name!

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

public class titan extends ModelBase {
    private final ModelRenderer Lleg;
    private final ModelRenderer foot;
    private final ModelRenderer cube_r1;
    private final ModelRenderer cube_r2;
    private final ModelRenderer leg;
    private final ModelRenderer cube_r3;
    private final ModelRenderer cube_r4;
    private final ModelRenderer Rleg;
    private final ModelRenderer foot2;
    private final ModelRenderer cube_r5;
    private final ModelRenderer cube_r6;
    private final ModelRenderer leg2;
    private final ModelRenderer cube_r7;
    private final ModelRenderer cube_r8;
    private final ModelRenderer body;
    private final ModelRenderer jivot;
    private final ModelRenderer cube_r9;
    private final ModelRenderer cube_r10;
    private final ModelRenderer gryd;
    private final ModelRenderer cube_r11;
    private final ModelRenderer sheya;
    private final ModelRenderer cube_r12;
    private final ModelRenderer Larm;
    private final ModelRenderer lodon;
    private final ModelRenderer cube_r13;
    private final ModelRenderer cube_r14;
    private final ModelRenderer cube_r15;
    private final ModelRenderer cube_r16;
    private final ModelRenderer ryka;
    private final ModelRenderer cube_r17;
    private final ModelRenderer cube_r18;
    private final ModelRenderer cube_r19;
    private final ModelRenderer Rarm;
    private final ModelRenderer lodon2;
    private final ModelRenderer cube_r20;
    private final ModelRenderer cube_r21;
    private final ModelRenderer cube_r22;
    private final ModelRenderer cube_r23;
    private final ModelRenderer ryka2;
    private final ModelRenderer cube_r24;
    private final ModelRenderer cube_r25;
    private final ModelRenderer cube_r26;
    private final ModelRenderer head;

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

        Lleg = new ModelRenderer(this);
        Lleg.setRotationPoint(-2.0F, 24.0F, 0.0F);
        

        foot = new ModelRenderer(this);
        foot.setRotationPoint(0.0F, 0.0F, 0.0F);
        Lleg.addChild(foot);
        foot.cubeList.add(new ModelBox(foot, 80, 66, 6.0F, -3.0F, -1.0F, 4, 3, 4, 0.0F, false));
        foot.cubeList.add(new ModelBox(foot, 22, 0, 6.5F, -1.0F, -3.0F, 1, 1, 1, 0.0F, false));
        foot.cubeList.add(new ModelBox(foot, 22, 0, 8.5F, -1.0F, -3.0F, 1, 1, 1, 0.0F, false));

        cube_r1 = new ModelRenderer(this);
        cube_r1.setRotationPoint(8.0F, -0.5F, -1.0F);
        foot.addChild(cube_r1);
        setRotationAngle(cube_r1, -1.5708F, 0.0F, 0.0F);
        cube_r1.cubeList.add(new ModelBox(cube_r1, 65, 70, -2.0F, -1.0F, -0.5F, 4, 2, 1, 0.0F, false));

        cube_r2 = new ModelRenderer(this);
        cube_r2.setRotationPoint(8.0F, -1.5747F, -1.041F);
        foot.addChild(cube_r2);
        setRotationAngle(cube_r2, -0.5672F, 0.0F, 0.0F);
        cube_r2.cubeList.add(new ModelBox(cube_r2, 65, 70, -2.0F, -1.0F, -0.5F, 4, 2, 1, 0.0F, false));

        leg = new ModelRenderer(this);
        leg.setRotationPoint(0.0F, 0.0F, 0.0F);
        Lleg.addChild(leg);
        leg.cubeList.add(new ModelBox(leg, 112, 40, 6.0F, -13.0F, -1.0F, 4, 10, 4, 0.0F, false));
        leg.cubeList.add(new ModelBox(leg, 106, 58, 5.0F, -31.0F, 0.0F, 6, 10, 5, 0.0F, false));

        cube_r3 = new ModelRenderer(this);
        cube_r3.setRotationPoint(8.0F, -12.0F, 0.0F);
        leg.addChild(cube_r3);
        setRotationAngle(cube_r3, -0.2182F, 0.0F, 0.0F);
        cube_r3.cubeList.add(new ModelBox(cube_r3, 114, 26, -2.0F, -5.0F, -2.0F, 4, 5, 3, 0.0F, false));

        cube_r4 = new ModelRenderer(this);
        cube_r4.setRotationPoint(8.0F, -17.8502F, 1.9301F);
        leg.addChild(cube_r4);
        setRotationAngle(cube_r4, -0.0873F, 0.0F, 0.0F);
        cube_r4.cubeList.add(new ModelBox(cube_r4, 114, 40, -2.0F, -5.0F, -1.5F, 4, 10, 3, 0.0F, false));

        Rleg = new ModelRenderer(this);
        Rleg.setRotationPoint(-14.0F, 24.0F, 0.0F);
        

        foot2 = new ModelRenderer(this);
        foot2.setRotationPoint(0.0F, 0.0F, 0.0F);
        Rleg.addChild(foot2);
        foot2.cubeList.add(new ModelBox(foot2, 80, 66, 6.0F, -3.0F, -1.0F, 4, 3, 4, 0.0F, false));
        foot2.cubeList.add(new ModelBox(foot2, 22, 0, 6.5F, -1.0F, -3.0F, 1, 1, 1, 0.0F, false));
        foot2.cubeList.add(new ModelBox(foot2, 22, 0, 8.5F, -1.0F, -3.0F, 1, 1, 1, 0.0F, false));

        cube_r5 = new ModelRenderer(this);
        cube_r5.setRotationPoint(8.0F, -0.5F, -1.0F);
        foot2.addChild(cube_r5);
        setRotationAngle(cube_r5, -1.5708F, 0.0F, 0.0F);
        cube_r5.cubeList.add(new ModelBox(cube_r5, 65, 70, -2.0F, -1.0F, -0.5F, 4, 2, 1, 0.0F, false));

        cube_r6 = new ModelRenderer(this);
        cube_r6.setRotationPoint(8.0F, -1.5747F, -1.041F);
        foot2.addChild(cube_r6);
        setRotationAngle(cube_r6, -0.5672F, 0.0F, 0.0F);
        cube_r6.cubeList.add(new ModelBox(cube_r6, 65, 70, -2.0F, -1.0F, -0.5F, 4, 2, 1, 0.0F, false));

        leg2 = new ModelRenderer(this);
        leg2.setRotationPoint(0.0F, 0.0F, 0.0F);
        Rleg.addChild(leg2);
        leg2.cubeList.add(new ModelBox(leg2, 112, 40, 6.0F, -13.0F, -1.0F, 4, 10, 4, 0.0F, false));
        leg2.cubeList.add(new ModelBox(leg2, 106, 58, 5.0F, -31.0F, 0.0F, 6, 10, 5, 0.0F, false));

        cube_r7 = new ModelRenderer(this);
        cube_r7.setRotationPoint(8.0F, -12.0F, 0.0F);
        leg2.addChild(cube_r7);
        setRotationAngle(cube_r7, -0.2182F, 0.0F, 0.0F);
        cube_r7.cubeList.add(new ModelBox(cube_r7, 114, 26, -2.0F, -5.0F, -2.0F, 4, 5, 3, 0.0F, false));

        cube_r8 = new ModelRenderer(this);
        cube_r8.setRotationPoint(8.0F, -17.8502F, 1.9301F);
        leg2.addChild(cube_r8);
        setRotationAngle(cube_r8, -0.0873F, 0.0F, 0.0F);
        cube_r8.cubeList.add(new ModelBox(cube_r8, 114, 40, -2.0F, -5.0F, -1.5F, 4, 10, 3, 0.0F, false));

        body = new ModelRenderer(this);
        body.setRotationPoint(0.0F, 24.0F, 0.0F);
        

        jivot = new ModelRenderer(this);
        jivot.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(jivot);
        jivot.cubeList.add(new ModelBox(jivot, 82, 86, -9.0F, -35.0F, 0.0F, 18, 4, 5, 0.0F, false));

        cube_r9 = new ModelRenderer(this);
        cube_r9.setRotationPoint(0.0F, -44.5051F, 3.1566F);
        jivot.addChild(cube_r9);
        setRotationAngle(cube_r9, 0.2618F, 0.0F, 0.0F);
        cube_r9.cubeList.add(new ModelBox(cube_r9, 98, 115, -5.0F, -4.0F, -2.5F, 10, 8, 5, 0.0F, false));

        cube_r10 = new ModelRenderer(this);
        cube_r10.setRotationPoint(0.0F, -38.5051F, 3.1566F);
        jivot.addChild(cube_r10);
        setRotationAngle(cube_r10, -0.1745F, 0.0F, 0.0F);
        cube_r10.cubeList.add(new ModelBox(cube_r10, 98, 98, -5.0F, -4.0F, -2.5F, 10, 8, 5, 0.0F, false));

        gryd = new ModelRenderer(this);
        gryd.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(gryd);
        

        cube_r11 = new ModelRenderer(this);
        cube_r11.setRotationPoint(0.0F, -48.5F, 2.5F);
        gryd.addChild(cube_r11);
        setRotationAngle(cube_r11, 0.1309F, 0.0F, 0.0F);
        cube_r11.cubeList.add(new ModelBox(cube_r11, 28, 82, -9.0F, -6.5F, -3.5F, 18, 7, 6, 0.0F, false));

        sheya = new ModelRenderer(this);
        sheya.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(sheya);
        

        cube_r12 = new ModelRenderer(this);
        cube_r12.setRotationPoint(-0.5F, -55.5F, 0.5F);
        sheya.addChild(cube_r12);
        setRotationAngle(cube_r12, 0.1745F, 0.0F, 0.0F);
        cube_r12.cubeList.add(new ModelBox(cube_r12, 38, 121, -1.5F, -2.5F, -1.5F, 5, 3, 4, 0.0F, false));

        Larm = new ModelRenderer(this);
        Larm.setRotationPoint(0.0F, 24.0F, 0.0F);
        

        lodon = new ModelRenderer(this);
        lodon.setRotationPoint(0.0F, 0.0F, 0.0F);
        Larm.addChild(lodon);
        

        cube_r13 = new ModelRenderer(this);
        cube_r13.setRotationPoint(12.5F, -26.4305F, 3.561F);
        lodon.addChild(cube_r13);
        setRotationAngle(cube_r13, 0.2618F, 0.0F, 0.0F);
        cube_r13.cubeList.add(new ModelBox(cube_r13, 0, 18, -0.5F, -1.5F, -0.5F, 1, 3, 1, 0.0F, false));

        cube_r14 = new ModelRenderer(this);
        cube_r14.setRotationPoint(12.5F, -26.4305F, 2.561F);
        lodon.addChild(cube_r14);
        setRotationAngle(cube_r14, 0.0873F, 0.0F, 0.0F);
        cube_r14.cubeList.add(new ModelBox(cube_r14, 0, 18, -0.5F, -1.5F, -0.5F, 1, 3, 1, 0.0F, false));

        cube_r15 = new ModelRenderer(this);
        cube_r15.setRotationPoint(11.0F, -26.0F, 1.0F);
        lodon.addChild(cube_r15);
        setRotationAngle(cube_r15, -0.1309F, 0.0F, 0.0F);
        cube_r15.cubeList.add(new ModelBox(cube_r15, 0, 18, -1.0F, -2.0F, 0.0F, 1, 3, 1, 0.0F, false));
        cube_r15.cubeList.add(new ModelBox(cube_r15, 0, 18, 1.0F, -2.0F, 0.0F, 1, 3, 1, 0.0F, false));

        cube_r16 = new ModelRenderer(this);
        cube_r16.setRotationPoint(12.5F, -28.5F, 1.5F);
        lodon.addChild(cube_r16);
        setRotationAngle(cube_r16, -0.0873F, 0.0F, 0.0F);
        cube_r16.cubeList.add(new ModelBox(cube_r16, 44, 0, -2.5F, -0.5F, -0.5F, 3, 2, 3, 0.0F, false));

        ryka = new ModelRenderer(this);
        ryka.setRotationPoint(0.0F, 0.0F, 0.0F);
        Larm.addChild(ryka);
        

        cube_r17 = new ModelRenderer(this);
        cube_r17.setRotationPoint(9.5F, -31.5F, 1.5F);
        ryka.addChild(cube_r17);
        setRotationAngle(cube_r17, -0.1309F, 0.0F, 0.0F);
        cube_r17.cubeList.add(new ModelBox(cube_r17, 0, 46, 0.5F, -8.5F, -0.5F, 3, 11, 4, 0.0F, false));

        cube_r18 = new ModelRenderer(this);
        cube_r18.setRotationPoint(9.5F, -41.5F, 1.5F);
        ryka.addChild(cube_r18);
        setRotationAngle(cube_r18, 0.1309F, 0.0F, 0.0F);
        cube_r18.cubeList.add(new ModelBox(cube_r18, 0, 67, 0.5F, -8.5F, -0.5F, 3, 11, 4, 0.0F, false));

        cube_r19 = new ModelRenderer(this);
        cube_r19.setRotationPoint(9.5F, -51.5F, 0.5F);
        ryka.addChild(cube_r19);
        setRotationAngle(cube_r19, 0.1309F, 0.0F, 0.0F);
        cube_r19.cubeList.add(new ModelBox(cube_r19, 0, 90, -0.5F, -2.5F, -1.5F, 5, 5, 5, 0.0F, false));

        Rarm = new ModelRenderer(this);
        Rarm.setRotationPoint(-23.0F, 24.0F, 0.0F);
        

        lodon2 = new ModelRenderer(this);
        lodon2.setRotationPoint(0.0F, 0.0F, 0.0F);
        Rarm.addChild(lodon2);
        

        cube_r20 = new ModelRenderer(this);
        cube_r20.setRotationPoint(10.5F, -26.4305F, 3.561F);
        lodon2.addChild(cube_r20);
        setRotationAngle(cube_r20, 0.2618F, 0.0F, 0.0F);
        cube_r20.cubeList.add(new ModelBox(cube_r20, 0, 18, -0.5F, -1.5F, -0.5F, 1, 3, 1, 0.0F, false));

        cube_r21 = new ModelRenderer(this);
        cube_r21.setRotationPoint(10.5F, -26.4305F, 2.561F);
        lodon2.addChild(cube_r21);
        setRotationAngle(cube_r21, 0.0873F, 0.0F, 0.0F);
        cube_r21.cubeList.add(new ModelBox(cube_r21, 0, 18, -0.5F, -1.5F, -0.5F, 1, 3, 1, 0.0F, false));

        cube_r22 = new ModelRenderer(this);
        cube_r22.setRotationPoint(11.0F, -26.0F, 1.0F);
        lodon2.addChild(cube_r22);
        setRotationAngle(cube_r22, -0.1309F, 0.0F, 0.0F);
        cube_r22.cubeList.add(new ModelBox(cube_r22, 0, 18, -1.0F, -2.0F, 0.0F, 1, 3, 1, 0.0F, false));
        cube_r22.cubeList.add(new ModelBox(cube_r22, 0, 18, 1.0F, -2.0F, 0.0F, 1, 3, 1, 0.0F, false));

        cube_r23 = new ModelRenderer(this);
        cube_r23.setRotationPoint(12.5F, -28.5F, 1.5F);
        lodon2.addChild(cube_r23);
        setRotationAngle(cube_r23, -0.0873F, 0.0F, 0.0F);
        cube_r23.cubeList.add(new ModelBox(cube_r23, 44, 0, -2.5F, -0.5F, -0.5F, 3, 2, 3, 0.0F, false));

        ryka2 = new ModelRenderer(this);
        ryka2.setRotationPoint(0.0F, 0.0F, 0.0F);
        Rarm.addChild(ryka2);
        

        cube_r24 = new ModelRenderer(this);
        cube_r24.setRotationPoint(9.5F, -31.5F, 1.5F);
        ryka2.addChild(cube_r24);
        setRotationAngle(cube_r24, -0.1309F, 0.0F, 0.0F);
        cube_r24.cubeList.add(new ModelBox(cube_r24, 0, 46, 0.5F, -8.5F, -0.5F, 3, 11, 4, 0.0F, false));

        cube_r25 = new ModelRenderer(this);
        cube_r25.setRotationPoint(9.5F, -41.5F, 1.5F);
        ryka2.addChild(cube_r25);
        setRotationAngle(cube_r25, 0.1309F, 0.0F, 0.0F);
        cube_r25.cubeList.add(new ModelBox(cube_r25, 0, 67, 0.5F, -8.5F, -0.5F, 3, 11, 4, 0.0F, false));

        cube_r26 = new ModelRenderer(this);
        cube_r26.setRotationPoint(9.5F, -51.5F, 0.5F);
        ryka2.addChild(cube_r26);
        setRotationAngle(cube_r26, 0.1309F, 0.0F, 0.0F);
        cube_r26.cubeList.add(new ModelBox(cube_r26, 0, 90, -0.5F, -2.5F, -1.5F, 5, 5, 5, 0.0F, false));

        head = new ModelRenderer(this);
        head.setRotationPoint(0.0F, 24.0F, 0.0F);
        head.cubeList.add(new ModelBox(head, 0, 111, -4.0F, -67.0F, -3.0F, 9, 9, 8, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        Lleg.render(f5);
        Rleg.render(f5);
        body.render(f5);
        Larm.render(f5);
        Rarm.render(f5);
        head.render(f5);
    }

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