diff --git a/src/main/java/com/zivilon/cinder_loe/client/model/ModelGalvornHelmet.java b/src/main/java/com/zivilon/cinder_loe/client/model/ModelGalvornHelmet.java new file mode 100644 index 0000000..468f115 --- /dev/null +++ b/src/main/java/com/zivilon/cinder_loe/client/model/ModelGalvornHelmet.java @@ -0,0 +1,75 @@ +package com.zivilon.cinder_loe.client.model; +// Made with Blockbench 4.11.1 +// Exported for Minecraft version 1.7 - 1.12 +// Paste this class into your mod and generate all required imports + + +import lotr.client.model.LOTRModelBiped; +import net.minecraft.client.model.ModelBox; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; + +public class ModelGalvornHelmet extends LOTRModelBiped { + private final ModelRenderer bipedHead; + private final ModelRenderer crest; + private final ModelRenderer shape12; + private final ModelRenderer shape3; + private final ModelRenderer shape4; + private final ModelRenderer shape5; + private final ModelRenderer shape6; + + public ModelGalvornHelmet(float f) { + super(f); + + textureWidth = 64; + textureHeight = 32; + bipedHead = new ModelRenderer(this); + bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F); + bipedHead.cubeList.add(new ModelBox(bipedHead, 0, 0, -4.0F, -8.0F, -4.0F, 8, 8, 8, 1.0F)); + crest = new ModelRenderer(this); + crest.setRotationPoint(0.0F, -1.0F, 0.55F); + + + shape12 = new ModelRenderer(this); + shape12.setRotationPoint(0.5F, -4.0F, -6.35F); + crest.addChild(shape12); + setRotationAngle(shape12, 1.5708F, 0.0F, 0.0F); + shape12.cubeList.add(new ModelBox(shape12, 43, 22, -1.0F, 0.0F, -1.5F, 1, 1, 9, 0.0F)); + + shape3 = new ModelRenderer(this); + shape3.setRotationPoint(0.0F, 0.0F, 0.0F); + shape12.addChild(shape3); + setRotationAngle(shape3, 0.0F, -0.2276F, 0.0F); + shape3.cubeList.add(new ModelBox(shape3, 0, 25, -1.0F, 0.1F, 0.0F, 1, 0, 6, 0.0F)); + + shape4 = new ModelRenderer(this); + shape4.setRotationPoint(0.0F, 0.0F, 0.0F); + shape3.addChild(shape4); + setRotationAngle(shape4, 0.0F, -0.2731F, 0.0F); + shape4.cubeList.add(new ModelBox(shape4, 16, 23, -1.0F, 0.2F, 0.0F, 1, 0, 5, 0.0F)); + + shape5 = new ModelRenderer(this); + shape5.setRotationPoint(-1.0F, 0.0F, 0.0F); + shape12.addChild(shape5); + setRotationAngle(shape5, 0.0F, 0.2276F, 0.0F); + shape5.cubeList.add(new ModelBox(shape5, 50, 3, 0.0F, 0.1F, 0.0F, 1, 0, 6, 0.0F)); + + shape6 = new ModelRenderer(this); + shape6.setRotationPoint(0.0F, 0.0F, 0.0F); + shape5.addChild(shape6); + setRotationAngle(shape6, 0.0F, 0.2731F, 0.0F); + shape6.cubeList.add(new ModelBox(shape6, 49, 13, 0.0F, 0.2F, 0.0F, 1, 0, 5, 0.0F)); + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { + bipedHead.render(f5); + crest.render(f5); + } + + public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } +} \ No newline at end of file diff --git a/src/main/java/com/zivilon/cinder_loe/client/model/ModelWarlordHelmet.java b/src/main/java/com/zivilon/cinder_loe/client/model/ModelWarlordHelmet.java index 7fe2b10..e3d1b74 100644 --- a/src/main/java/com/zivilon/cinder_loe/client/model/ModelWarlordHelmet.java +++ b/src/main/java/com/zivilon/cinder_loe/client/model/ModelWarlordHelmet.java @@ -23,6 +23,7 @@ public class ModelWarlordHelmet extends LOTRModelBiped { super (f); this.textureWidth = 64; this.textureHeight = 32; + this.shape31 = new ModelRenderer(this, 2, 2); this.shape31.setRotationPoint(0.0F, 0.0F, 0.0F); this.shape31.addBox(-4.0F, -10.0F, -7.0F, 8, 3, 6, 1.0F); diff --git a/src/main/java/com/zivilon/cinder_loe/mixins/MixinLOTRArmorModels.java b/src/main/java/com/zivilon/cinder_loe/mixins/MixinLOTRArmorModels.java index 46bd3d1..f3ab789 100644 --- a/src/main/java/com/zivilon/cinder_loe/mixins/MixinLOTRArmorModels.java +++ b/src/main/java/com/zivilon/cinder_loe/mixins/MixinLOTRArmorModels.java @@ -102,6 +102,7 @@ public class MixinLOTRArmorModels { map.put(CinderLoE.bodyJade, new ModelBodyJade(1.0f)); map.put(CinderLoE.legsJade, new ModelLegsJade(1.0f)); map.put(CinderLoE.helmetJade, new ModelJadeHelmet(1.0f)); + map.put(LOTRMod.helmetGalvorn, new ModelGalvornHelmet(1.0f)); map.put(LOTRMod.plate, new LOTRModelHeadPlate()); map.put(LOTRMod.woodPlate, new LOTRModelHeadPlate()); map.put(LOTRMod.ceramicPlate, new LOTRModelHeadPlate()); diff --git a/src/main/resources/assets/lotr/armor/galvorn_helmet.png b/src/main/resources/assets/lotr/armor/galvorn_helmet.png new file mode 100644 index 0000000..5a1a359 Binary files /dev/null and b/src/main/resources/assets/lotr/armor/galvorn_helmet.png differ