From 2ff8836ed3d20661c786f2ae77f9c20c8da85c6f Mon Sep 17 00:00:00 2001 From: KeyLime17 Date: Fri, 9 May 2025 18:12:35 -0400 Subject: [PATCH] Galvorn model implemented, retains a few issues --- .../client/model/ModelGalvornHelmet.java | 75 ++++++++++++++++++ .../client/model/ModelWarlordHelmet.java | 1 + .../mixins/MixinLOTRArmorModels.java | 1 + .../assets/lotr/armor/galvorn_helmet.png | Bin 0 -> 936 bytes 4 files changed, 77 insertions(+) create mode 100644 src/main/java/com/zivilon/cinder_loe/client/model/ModelGalvornHelmet.java create mode 100644 src/main/resources/assets/lotr/armor/galvorn_helmet.png 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 0000000000000000000000000000000000000000..5a1a35944efc45c57cec105af7d42d104e8c7ff1 GIT binary patch literal 936 zcmV;Z16TZsP)Px&NJ&INRA_gQT=j5N#3BQVO*y^xTt1Z=S?c zkNpSiQBQFNZ{7+@uTex2L=X&(cu}d+rrBP+T3t*T>C~t0(3IzOqQfGSz^_0D*&BoUDF`A-K=bEYj;w~jAdIx z5wQ8|H!J)7Cu-{2oj30imTe6QplcdLNkXYu1OV_n&!V8+sW;zB!sl)C+$A;Q9xLh^pq9;{cc=U4j5z z)3Ca{gkUHFPq&D|PaWlQ8LP`nI2k+zQIc5S>i4PRZc#*0*P-dfih2N8{PR5cHu&&v`f+LzYT2-yn;qP@04$|iMOpf60i1c8Mv#cY=P z2Zu;5ry#fTojub&)y|a5Wme{Sp4p@QXgjslDqMy2JSL|eVEOA8RvC<(#=^W@Ap%UC zG}cc}#cFIke>R73=6=Toxqghj1 zlBb6NfTzb>5e0?yZ85dNx+4*g&SXg{nZe!I=OGo*qI) zagw;4AaOb2_;=ctxSSxyD7NCj9)|4pf69Rspiw&dHiu$Nf@tnzO6@{3vk$unXx12|m9yV0bp_}o zM|O(Ks-e-@ug=1ZqS1wrW?N#X~1=Vg?{sR9)_yYj9)7#Wm94M@I zC9?w%EXHkQAll3Q0s4EAcHe^>IRF3v4rN$LW=%~1DgXcg2mk;800000(o>TF0000< KMNUMnLSTYL6sD2@ literal 0 HcmV?d00001