Custom Armor Model Problems

Started by RangerRed2002 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Armor Model Problems

Hello. I am having an issue where I go to import a custom armor model, I try to click "Save Mod Element" but it isn't responding. I try clicking the button, but it does nothing, and won't save the armor. This only happens when I'm trying to use a custom model. Does anyone know what's going on? Or know how to fix it? Any help would be very much appreciated.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is the code: //Made…
Sun, 01/12/2020 - 18:01

Here is the code:

//Made with Blockbench
//Paste this code into your mod.

import org.lwjgl.opengl.GL11;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;

public class aqua extends ModelBase {
	private final ModelRenderer leftLeg;
	private final ModelRenderer rightLeg;
	private final ModelRenderer leftArm;
	private final ModelRenderer rightArm;
	private final ModelRenderer body;
	private final ModelRenderer head;

	public aqua() {
		textureWidth = 64;
		textureHeight = 32;

		leftLeg = new ModelRenderer(this);
		leftLeg.setRotationPoint(0.0F, 24.0F, 0.0F);
		leftLeg.cubeList.add(new ModelBox(leftLeg, 0, 16, -4.0F, -12.0F, 0.0F, 4, 12, 4, 0.0F, false));

		rightLeg = new ModelRenderer(this);
		rightLeg.setRotationPoint(0.0F, 24.0F, 0.0F);
		rightLeg.cubeList.add(new ModelBox(rightLeg, 0, 16, 0.0F, -12.0F, 0.0F, 4, 12, 4, 0.0F, false));

		leftArm = new ModelRenderer(this);
		leftArm.setRotationPoint(0.0F, 24.0F, 0.0F);
		leftArm.cubeList.add(new ModelBox(leftArm, 40, 16, -8.0F, -24.0F, 0.0F, 4, 12, 4, 0.0F, false));

		rightArm = new ModelRenderer(this);
		rightArm.setRotationPoint(0.0F, 24.0F, 0.0F);
		rightArm.cubeList.add(new ModelBox(rightArm, 40, 16, 4.0F, -24.0F, 0.0F, 4, 12, 4, 0.0F, false));

		body = new ModelRenderer(this);
		body.setRotationPoint(0.0F, 24.0F, 0.0F);
		body.cubeList.add(new ModelBox(body, 16, 16, -4.0F, -24.0F, 0.0F, 8, 12, 4, 0.0F, false));

		head = new ModelRenderer(this);
		head.setRotationPoint(0.0F, 24.0F, 0.0F);
		head.cubeList.add(new ModelBox(head, 0, 0, -4.0F, -32.0F, -2.0F, 8, 8, 8, 0.0F, false));
	}

	@Override
	public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
		leftLeg.render(f5);
		rightLeg.render(f5);
		leftArm.render(f5);
		rightArm.render(f5);
		body.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;
	}
}

Like I said, I can't even click the "Save Element" button. So I can't even test if it works in game or not.