Started by
ThorPDough
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to know how I could make custom armour model for my upcoming mod. I have made a helmet model with blockbench but failed to find where to select the file with making the armour.
any ideas?
Make custom armor Java model and import it, then select it in armor maker.
Wich program is advised?
I've got the helmet and the body working, but I can't get the arms working. Anyone kwow how?
Model code:
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 redron_chest extends ModelBase {
private final ModelRenderer armour;
private final ModelRenderer chestplate;
private final ModelRenderer leftarm;
private final ModelRenderer rightarm;
public redron_chest() {
textureWidth = 64;
textureHeight = 64;
armour = new ModelRenderer(this);
armour.setRotationPoint(0.0F, 24.0F, 0.0F);
chestplate = new ModelRenderer(this);
chestplate.setRotationPoint(0.0F, 0.0F, 0.0F);
armour.addChild(chestplate);
chestplate.cubeList.add(new ModelBox(chestplate, 0, 0, -4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 20, 0, -4.0F, 3.0F, -3.0F, 8, 3, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 28, 13, -3.0F, 3.0F, -4.0F, 6, 3, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 28, 17, -3.0F, 6.0F, -3.0F, 6, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 24, 6, -4.0F, 10.0F, -3.0F, 8, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 24, 4, -4.0F, 10.0F, 2.0F, 8, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 18, 32, 1.0F, 2.0F, -3.0F, 3, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 18, 34, 1.0F, 2.0F, -4.0F, 2, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 8, 34, -3.0F, 2.0F, -4.0F, 2, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 38, 35, 3.0F, 1.0F, -3.0F, 1, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 32, 33, -4.0F, 1.0F, -3.0F, 1, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 8, 32, -4.0F, 2.0F, -3.0F, 3, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 24, 8, -3.0F, 1.0F, 2.0F, 6, 4, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 0, 37, -2.0F, 5.0F, 2.0F, 4, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 12, 18, 1.0F, 0.0F, 2.0F, 3, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 12, 16, -4.0F, 0.0F, 2.0F, 3, 1, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 0, 42, -4.0F, 1.0F, 2.0F, 1, 2, 1, 0.0F, false));
chestplate.cubeList.add(new ModelBox(chestplate, 41, 37, 3.0F, 1.0F, 2.0F, 1, 2, 1, 0.0F, false));
leftarm = new ModelRenderer(this);
leftarm.setRotationPoint(-4.0F, 1.0F, 0.0F);
armour.addChild(leftarm);
leftarm.cubeList.add(new ModelBox(leftarm, 15, 38, 9.0F, -1.0F, 2.0F, 2, 4, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 28, 28, 9.0F, -2.0F, -2.0F, 2, 1, 4, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 38, 8, 8.0F, -2.0F, -1.0F, 1, 1, 2, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 38, 0, 12.0F, -1.0F, -1.0F, 1, 1, 2, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 33, 38, 12.0F, 2.0F, -1.0F, 1, 1, 2, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 12, 32, 12.0F, 0.0F, -2.0F, 1, 2, 4, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 28, 33, 11.0F, -2.0F, -1.0F, 1, 1, 2, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 9, 38, 9.0F, -1.0F, -3.0F, 2, 4, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 36, 30, 8.0F, 8.0F, -3.0F, 4, 1, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 36, 28, 8.0F, 8.0F, 2.0F, 4, 1, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 32, 33, 12.0F, 8.0F, -2.0F, 1, 1, 4, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 0, 32, 8.0F, 0.0F, -3.0F, 1, 2, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 24, 13, 8.0F, 0.0F, 2.0F, 1, 2, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 0, 16, 11.0F, 0.0F, 2.0F, 1, 2, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 0, 0, 11.0F, 0.0F, -3.0F, 1, 2, 1, 0.0F, false));
leftarm.cubeList.add(new ModelBox(leftarm, 0, 16, 8.0F, -1.0F, -2.0F, 4, 12, 4, 0.0F, false));
rightarm = new ModelRenderer(this);
rightarm.setRotationPoint(4.0F, 1.0F, 0.0F);
armour.addChild(rightarm);
rightarm.cubeList.add(new ModelBox(rightarm, 27, 38, -11.0F, -1.0F, 2.0F, 2, 4, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 0, 32, -11.0F, -2.0F, -2.0F, 2, 1, 4, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 37, 39, -12.0F, -2.0F, -1.0F, 1, 1, 2, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 38, 32, -13.0F, -1.0F, -1.0F, 1, 1, 2, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 38, 19, -13.0F, 2.0F, -1.0F, 1, 1, 2, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 22, 32, -13.0F, 0.0F, -2.0F, 1, 2, 4, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 0, 39, -9.0F, -2.0F, -1.0F, 1, 1, 2, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 21, 38, -11.0F, -1.0F, -3.0F, 2, 4, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 41, 11, -12.0F, 0.0F, -3.0F, 1, 2, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 5, 41, -12.0F, 0.0F, 2.0F, 1, 2, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 32, 19, -9.0F, 0.0F, 2.0F, 1, 2, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 33, 41, -9.0F, 0.0F, -3.0F, 1, 2, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 32, 19, -13.0F, 8.0F, -2.0F, 1, 1, 4, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 32, 26, -12.0F, 8.0F, -3.0F, 4, 1, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 32, 24, -12.0F, 8.0F, 2.0F, 4, 1, 1, 0.0F, false));
rightarm.cubeList.add(new ModelBox(rightarm, 16, 16, -12.0F, -1.0F, -2.0F, 4, 12, 4, 0.0F, false));
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
armour.render(f5);
}
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
I've got animations set for rightarm and leftarm their swing animations and in the armor maker selected armour.
If anyone could help that would be much appriciated