Help me why my model have problem

Started by Deadhat on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me why my model have problem

Hey guys my model has problem when I'm import it Mcreator said your model name is not a valid java name but why help me pls

// Made with Blockbench 3.9.3
// Exported for Minecraft version 1.7 - 1.12.2
// Paste this class into your mod and generate all required imports


public class nong extends ModelBase {
	private final ModelRenderer Head;
	private final ModelRenderer tentacle1;
	private final ModelRenderer cube_r1;
	private final ModelRenderer cube_r2;
	private final ModelRenderer tentacle2;
	private final ModelRenderer cube_r3;
	private final ModelRenderer cube_r4;
	private final ModelRenderer Fangright;
	private final ModelRenderer cube_r5;
	private final ModelRenderer cube_r6;
	private final ModelRenderer Fangleft;
	private final ModelRenderer cube_r7;
	private final ModelRenderer cube_r8;
	private final ModelRenderer Body;
	private final ModelRenderer cube_r9;
	private final ModelRenderer Butt;
	private final ModelRenderer cube_r10;
	private final ModelRenderer Leftleg3;
	private final ModelRenderer cube_r11;
	private final ModelRenderer cube_r12;
	private final ModelRenderer Leftleg1;
	private final ModelRenderer cube_r13;
	private final ModelRenderer cube_r14;
	private final ModelRenderer cube_r15;
	private final ModelRenderer Rightleg1;
	private final ModelRenderer cube_r16;
	private final ModelRenderer cube_r17;
	private final ModelRenderer cube_r18;
	private final ModelRenderer Leftleg2;
	private final ModelRenderer cube_r19;
	private final ModelRenderer cube_r20;
	private final ModelRenderer Rightleg2;
	private final ModelRenderer cube_r21;
	private final ModelRenderer cube_r22;
	private final ModelRenderer Rightleg3;
	private final ModelRenderer cube_r23;
	private final ModelRenderer cube_r24;

	public nong {
		textureWidth = 64;
		textureHeight = 64;

		Head = new ModelRenderer(this);
		Head.setRotationPoint(0.5F, 26.5F, 5.5F);
		setRotationAngle(Head, 0.2618F, 0.0F, 0.0F);
		Head.cubeList.add(new ModelBox(Head, 0, 20, -2.25F, -11.7588F, -9.9659F, 3, 1, 4, 0.0F, false));
		Head.cubeList.add(new ModelBox(Head, 21, 0, -2.0F, -12.0088F, -9.7159F, 3, 2, 3, 0.0F, false));
		Head.cubeList.add(new ModelBox(Head, 10, 20, -2.5F, -11.5088F, -9.7159F, 4, 1, 3, 0.0F, false));
		Head.cubeList.add(new ModelBox(Head, 0, 8, -2.75F, -11.25F, -7.5F, 1, 0, 0, 0.0F, false));
		Head.cubeList.add(new ModelBox(Head, 0, 8, 0.75F, -11.25F, -7.5F, 1, 0, 0, 0.0F, false));

		tentacle1 = new ModelRenderer(this);
		tentacle1.setRotationPoint(-0.5F, -5.5F, -2.5F);
		Head.addChild(tentacle1);
		

		cube_r1 = new ModelRenderer(this);
		cube_r1.setRotationPoint(0.0F, 0.0F, 0.0F);
		tentacle1.addChild(cube_r1);
		setRotationAngle(cube_r1, 0.2182F, 0.0F, 0.0F);
		cube_r1.cubeList.add(new ModelBox(cube_r1, 1, 10, 1.0F, -9.4617F, -2.887F, 0, 2, 0, 0.0F, false));

		cube_r2 = new ModelRenderer(this);
		cube_r2.setRotationPoint(1.0F, -8.5F, -4.75F);
		tentacle1.addChild(cube_r2);
		setRotationAngle(cube_r2, 1.8762F, 0.0F, 0.0F);
		cube_r2.cubeList.add(new ModelBox(cube_r2, 1, 32, 0.0F, -1.8851F, -0.0893F, 0, 2, 0, 0.0F, false));

		tentacle2 = new ModelRenderer(this);
		tentacle2.setRotationPoint(-1.5F, -14.0F, -7.25F);
		Head.addChild(tentacle2);
		

		cube_r3 = new ModelRenderer(this);
		cube_r3.setRotationPoint(0.0F, 0.0F, 0.0F);
		tentacle2.addChild(cube_r3);
		setRotationAngle(cube_r3, 1.8762F, 0.0F, 0.0F);
		cube_r3.cubeList.add(new ModelBox(cube_r3, 0, 32, -0.25F, -1.8851F, -0.0893F, 0, 2, 0, 0.0F, true));

		cube_r4 = new ModelRenderer(this);
		cube_r4.setRotationPoint(1.0F, 8.5F, 4.75F);
		tentacle2.addChild(cube_r4);
		setRotationAngle(cube_r4, 0.2182F, 0.0F, 0.0F);
		cube_r4.cubeList.add(new ModelBox(cube_r4, 1, 10, -1.25F, -9.4617F, -2.887F, 0, 2, 0, 0.0F, true));

		Fangright = new ModelRenderer(this);
		Fangright.setRotationPoint(-2.5F, 19.5F, -6.0F);
		

		cube_r5 = new ModelRenderer(this);
		cube_r5.setRotationPoint(0.0F, 0.0F, -1.0F);
		Fangright.addChild(cube_r5);
		setRotationAngle(cube_r5, 0.3123F, -0.3621F, -0.2066F);
		cube_r5.cubeList.add(new ModelBox(cube_r5, 0, 18, -0.193F, -0.1621F, -2.3652F, 0, 0, 2, 0.0F, false));

		cube_r6 = new ModelRenderer(this);
		cube_r6.setRotationPoint(3.0F, -3.0F, 1.5F);
		Fangright.addChild(cube_r6);
		setRotationAngle(cube_r6, 0.3156F, 0.3885F, 0.0304F);
		cube_r6.cubeList.add(new ModelBox(cube_r6, 0, 18, -1.937F, 1.7148F, -4.0707F, 0, 0, 2, 0.0F, false));

		Fangleft = new ModelRenderer(this);
		Fangleft.setRotationPoint(0.5F, 16.5F, -3.5F);
		

		cube_r7 = new ModelRenderer(this);
		cube_r7.setRotationPoint(0.0F, 0.0F, -1.0F);
		Fangleft.addChild(cube_r7);
		setRotationAngle(cube_r7, 0.3156F, -0.3885F, -0.0304F);
		cube_r7.cubeList.add(new ModelBox(cube_r7, 0, 18, 0.437F, 1.7148F, -3.8207F, 0, 0, 2, 0.0F, false));

		cube_r8 = new ModelRenderer(this);
		cube_r8.setRotationPoint(2.0F, 2.75F, -4.25F);
		Fangleft.addChild(cube_r8);
		setRotationAngle(cube_r8, 0.3123F, 0.3621F, 0.2066F);
		cube_r8.cubeList.add(new ModelBox(cube_r8, 0, 18, -0.6048F, 0.2032F, -1.8995F, 0, 0, 2, 0.0F, false));

		Body = new ModelRenderer(this);
		Body.setRotationPoint(0.0F, 19.75F, -1.75F);
		setRotationAngle(Body, -0.1309F, 0.0F, 0.0F);
		Body.cubeList.add(new ModelBox(Body, 20, 20, -1.5F, -0.5F, -1.75F, 2, 1, 4, 0.0F, false));
		Body.cubeList.add(new ModelBox(Body, 11, 24, -1.75F, -0.75F, -1.5F, 3, 2, 3, 0.0F, false));
		Body.cubeList.add(new ModelBox(Body, 25, 14, -1.75F, -0.5F, -1.25F, 3, 1, 3, 0.0F, false));

		cube_r9 = new ModelRenderer(this);
		cube_r9.setRotationPoint(0.0F, -0.75F, -1.5F);
		Body.addChild(cube_r9);
		setRotationAngle(cube_r9, 0.7854F, 0.0F, 0.0F);
		cube_r9.cubeList.add(new ModelBox(cube_r9, 0, 2, -0.5F, -0.5F, -0.5F, 1, 1, 1, 0.0F, false));

		Butt = new ModelRenderer(this);
		Butt.setRotationPoint(0.0F, 21.25F, 2.5F);
		setRotationAngle(Butt, 0.0436F, 0.0F, 0.0F);
		Butt.cubeList.add(new ModelBox(Butt, 0, 14, -1.75F, -1.0F, -1.75F, 3, 2, 4, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 0, 0, -1.5F, -0.75F, -1.75F, 3, 2, 5, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 12, 2, -1.25F, -0.5F, -1.75F, 2, 1, 5, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 11, 9, -1.0F, -0.25F, -1.75F, 2, 1, 5, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 0, 7, -2.0F, -1.25F, -1.5F, 4, 3, 4, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 20, 8, -1.5F, -1.75F, -1.0F, 3, 4, 3, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 0, 18, -1.75F, -1.5F, -1.25F, 3, 3, 3, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 0, 20, -2.25F, -1.0F, -1.25F, 4, 2, 3, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 14, 15, -2.5F, -0.75F, -1.0F, 5, 2, 3, 0.0F, false));
		Butt.cubeList.add(new ModelBox(Butt, 0, 0, -0.25F, 0.0F, 3.75F, 0, 0, 1, 0.0F, false));

		cube_r10 = new ModelRenderer(this);
		cube_r10.setRotationPoint(0.0F, 2.75F, -2.5F);
		Butt.addChild(cube_r10);
		setRotationAngle(cube_r10, 0.7418F, 0.0F, 0.0F);
		cube_r10.cubeList.add(new ModelBox(cube_r10, 0, 0, -0.5F, -2.5F, 2.0F, 1, 1, 1, 0.0F, false));

		Leftleg3 = new ModelRenderer(this);
		Leftleg3.setRotationPoint(1.0F, 21.5F, 0.0F);
		

		cube_r11 = new ModelRenderer(this);
		cube_r11.setRotationPoint(0.0F, 0.0F, 0.0F);
		Leftleg3.addChild(cube_r11);
		setRotationAngle(cube_r11, 0.0F, 0.0F, 1.5272F);
		cube_r11.cubeList.add(new ModelBox(cube_r11, 0, 0, 0.5F, -1.0F, 0.25F, 2, 0, 0, 0.0F, false));

		cube_r12 = new ModelRenderer(this);
		cube_r12.setRotationPoint(0.0F, 0.0F, 0.0F);
		Leftleg3.addChild(cube_r12);
		setRotationAngle(cube_r12, 0.0F, 0.0F, 0.5672F);
		cube_r12.cubeList.add(new ModelBox(cube_r12, 0, 0, -0.5F, -0.25F, 0.25F, 1, 0, 0, 0.0F, false));

		Leftleg1 = new ModelRenderer(this);
		Leftleg1.setRotationPoint(2.25F, 22.25F, -3.0F);
		

		cube_r13 = new ModelRenderer(this);
		cube_r13.setRotationPoint(0.0F, 0.0F, 0.0F);
		Leftleg1.addChild(cube_r13);
		setRotationAngle(cube_r13, -0.1585F, 0.0735F, 1.565F);
		cube_r13.cubeList.add(new ModelBox(cube_r13, 0, 0, -0.1143F, -0.3104F, -0.1353F, 1, 0, 0, 0.0F, false));

		cube_r14 = new ModelRenderer(this);
		cube_r14.setRotationPoint(-1.25F, -1.75F, -0.5F);
		Leftleg1.addChild(cube_r14);
		setRotationAngle(cube_r14, 0.0F, -0.3491F, 0.48F);
		cube_r14.cubeList.add(new ModelBox(cube_r14, 0, 0, -0.5F, -0.25F, 0.25F, 1, 0, 0, 0.0F, false));

		cube_r15 = new ModelRenderer(this);
		cube_r15.setRotationPoint(-1.25F, -1.5F, 0.5F);
		Leftleg1.addChild(cube_r15);
		setRotationAngle(cube_r15, -0.1745F, 0.0F, 1.1345F);
		cube_r15.cubeList.add(new ModelBox(cube_r15, 0, 0, 0.2734F, -0.7149F, -0.7143F, 1, 0, 0, 0.0F, false));

		Rightleg1 = new ModelRenderer(this);
		Rightleg1.setRotationPoint(-1.0F, 20.75F, -3.5F);
		

		cube_r16 = new ModelRenderer(this);
		cube_r16.setRotationPoint(0.0F, 0.0F, 0.0F);
		Rightleg1.addChild(cube_r16);
		setRotationAngle(cube_r16, 0.0F, 0.3491F, -0.48F);
		cube_r16.cubeList.add(new ModelBox(cube_r16, 0, 0, -1.0F, -0.25F, 0.25F, 1, 0, 0, 0.0F, false));

		cube_r17 = new ModelRenderer(this);
		cube_r17.setRotationPoint(0.0F, 0.25F, 1.0F);
		Rightleg1.addChild(cube_r17);
		setRotationAngle(cube_r17, -0.1745F, 0.0F, -1.1345F);
		cube_r17.cubeList.add(new ModelBox(cube_r17, 0, 0, -2.0234F, -0.7149F, -0.7143F, 1, 0, 0, 0.0F, false));

		cube_r18 = new ModelRenderer(this);
		cube_r18.setRotationPoint(-1.25F, 1.75F, 0.5F);
		Rightleg1.addChild(cube_r18);
		setRotationAngle(cube_r18, -0.1585F, -0.0735F, -1.565F);
		cube_r18.cubeList.add(new ModelBox(cube_r18, 0, 0, -1.3857F, -0.3104F, -0.1353F, 1, 0, 0, 0.0F, false));

		Leftleg2 = new ModelRenderer(this);
		Leftleg2.setRotationPoint(1.0F, 21.0F, -1.75F);
		

		cube_r19 = new ModelRenderer(this);
		cube_r19.setRotationPoint(0.0F, 0.0F, 0.0F);
		Leftleg2.addChild(cube_r19);
		setRotationAngle(cube_r19, 0.0F, 0.0F, 0.48F);
		cube_r19.cubeList.add(new ModelBox(cube_r19, 0, 0, -1.0F, -0.25F, 0.25F, 2, 0, 0, 0.0F, false));

		cube_r20 = new ModelRenderer(this);
		cube_r20.setRotationPoint(0.0F, 0.0F, 0.0F);
		Leftleg2.addChild(cube_r20);
		setRotationAngle(cube_r20, 0.0F, 0.0F, 1.3526F);
		cube_r20.cubeList.add(new ModelBox(cube_r20, 0, 0, 0.75F, -1.25F, 0.25F, 2, 0, 0, 0.0F, false));

		Rightleg2 = new ModelRenderer(this);
		Rightleg2.setRotationPoint(-1.0F, 21.0F, -1.75F);
		

		cube_r21 = new ModelRenderer(this);
		cube_r21.setRotationPoint(0.0F, 0.0F, 0.0F);
		Rightleg2.addChild(cube_r21);
		setRotationAngle(cube_r21, 0.0F, 0.0F, -0.48F);
		cube_r21.cubeList.add(new ModelBox(cube_r21, 0, 0, -1.5F, -0.25F, 0.25F, 2, 0, 0, 0.0F, false));

		cube_r22 = new ModelRenderer(this);
		cube_r22.setRotationPoint(0.0F, 0.0F, 0.0F);
		Rightleg2.addChild(cube_r22);
		setRotationAngle(cube_r22, 0.0F, 0.0F, -1.3526F);
		cube_r22.cubeList.add(new ModelBox(cube_r22, 0, 0, -3.25F, -1.25F, 0.25F, 2, 0, 0, 0.0F, false));

		Rightleg3 = new ModelRenderer(this);
		Rightleg3.setRotationPoint(-1.0F, 21.5F, 0.0F);
		

		cube_r23 = new ModelRenderer(this);
		cube_r23.setRotationPoint(0.0F, 0.0F, 0.0F);
		Rightleg3.addChild(cube_r23);
		setRotationAngle(cube_r23, 0.0F, 0.0F, -1.5272F);
		cube_r23.cubeList.add(new ModelBox(cube_r23, 0, 0, -2.5F, -1.0F, 0.25F, 2, 0, 0, 0.0F, false));

		cube_r24 = new ModelRenderer(this);
		cube_r24.setRotationPoint(0.0F, 0.0F, 0.0F);
		Rightleg3.addChild(cube_r24);
		setRotationAngle(cube_r24, 0.0F, 0.0F, -0.5672F);
		cube_r24.cubeList.add(new ModelBox(cube_r24, 0, 0, -1.0F, -0.25F, 0.25F, 1, 0, 0, 0.0F, false));
	}

	@Override
	public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
		Head.render(f5);
		Fangright.render(f5);
		Fangleft.render(f5);
		Body.render(f5);
		Butt.render(f5);
		Leftleg3.render(f5);
		Leftleg1.render(f5);
		Rightleg1.render(f5);
		Leftleg2.render(f5);
		Rightleg2.render(f5);
		Rightleg3.render(f5);
	}

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

 

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I had this problem a week…
Thu, 09/02/2021 - 12:55

I had this problem a week ago and it was because the name i had set in blockbench (while saving the project) wasn't the same name i gave when exporting.

I don't know if it's the same for you, but i would recommend you to first save the blockbench model with the name and then export without changing the filename.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Doesn't work guys.  
Fri, 09/03/2021 - 07:42

Doesn't work guys.