Zarthon_Zark

ModelArmor

Sep 22nd, 2021
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.13 KB | None | 0 0
  1. package io.github.dloobyowl.owlessentials.Objects.items.models;
  2.  
  3. import net.minecraft.client.model.ModelBiped;
  4. import net.minecraft.client.model.ModelRenderer;
  5. import net.minecraft.entity.Entity;
  6.  
  7. /**
  8.  * Created using Tabula 7.1.0
  9.  */
  10. public class ModelMithrill extends ModelBiped {
  11.     public ModelRenderer helmet;
  12.     public ModelRenderer chestplate;
  13.     public ModelRenderer leftarm;
  14.     public ModelRenderer rightarm;
  15.     public ModelRenderer base_fin_sx;
  16.     public ModelRenderer base_fin_dx;
  17.     public ModelRenderer mid_fin_sx;
  18.     public ModelRenderer end_fin_sx;
  19.     public ModelRenderer mid_fin_dx;
  20.     public ModelRenderer end_fin_dx;
  21.     public ModelRenderer shoulder_base_sx;
  22.     public ModelRenderer Shoulderbase_End_sx;
  23.     public ModelRenderer shoulderbase_front_sx;
  24.     public ModelRenderer shoulderback_sx;
  25.     public ModelRenderer shoulderfront_end_sx;
  26.     public ModelRenderer shoulderendback_sx;
  27.  
  28.     public ModelMithrill() {
  29.         this.textureWidth = 128;
  30.         this.textureHeight = 128;
  31.         this.end_fin_sx = new ModelRenderer(this, 105, 16);
  32.         this.end_fin_sx.setRotationPoint(1.0F, 2.0F, 0.0F);
  33.         this.end_fin_sx.addBox(-4.0F, -8.0F, -4.0F, 1, 5, 2, 0.0F);
  34.         this.mid_fin_dx = new ModelRenderer(this, 97, 16);
  35.         this.mid_fin_dx.mirror = true;
  36.         this.mid_fin_dx.setRotationPoint(-1.0F, 1.0F, 0.0F);
  37.         this.mid_fin_dx.addBox(-4.0F, -8.0F, -4.0F, 1, 9, 2, 0.0F);
  38.         this.shoulderback_sx = new ModelRenderer(this, 60, 65);
  39.         this.shoulderback_sx.setRotationPoint(0.0F, 0.85F, 4.15F);
  40.         this.shoulderback_sx.addBox(-1.0F, -2.0F, -2.0F, 3, 1, 3, 0.0F);
  41.         this.setRotateAngle(shoulderback_sx, -0.7330382858376184F, 0.0F, 0.0F);
  42.         this.chestplate = new ModelRenderer(this, 100, 32);
  43.         this.chestplate.setRotationPoint(0.0F, 0.0F, 0.0F);
  44.         this.chestplate.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.5F);
  45.         this.shoulderendback_sx = new ModelRenderer(this, 60, 60);
  46.         this.shoulderendback_sx.setRotationPoint(3.0F, 0.0F, 0.0F);
  47.         this.shoulderendback_sx.addBox(-1.0F, -2.0F, -2.0F, 2, 1, 2, 0.0F);
  48.         this.shoulderbase_front_sx = new ModelRenderer(this, 60, 52);
  49.         this.shoulderbase_front_sx.setRotationPoint(0.0F, 0.85F, -2.15F);
  50.         this.shoulderbase_front_sx.addBox(-1.0F, -2.0F, -1.0F, 3, 1, 3, 0.0F);
  51.         this.setRotateAngle(shoulderbase_front_sx, 0.7330382858376184F, 0.0F, 0.0F);
  52.         this.base_fin_dx = new ModelRenderer(this, 90, 16);
  53.         this.base_fin_dx.mirror = true;
  54.         this.base_fin_dx.setRotationPoint(0.1F, -5.0F, 5.0F);
  55.         this.base_fin_dx.addBox(-4.0F, -8.0F, -4.0F, 1, 11, 2, 0.0F);
  56.         this.setRotateAngle(base_fin_dx, 0.0F, 0.5777039824101231F, 0.0F);
  57.         this.shoulder_base_sx = new ModelRenderer(this, 75, 58);
  58.         this.shoulder_base_sx.setRotationPoint(-0.6F, -1.5F, -1.0F);
  59.         this.shoulder_base_sx.addBox(-1.0F, -2.0F, -2.0F, 6, 1, 6, 0.0F);
  60.         this.setRotateAngle(shoulder_base_sx, 0.0F, 0.0F, 0.2181661564992912F);
  61.         this.shoulderfront_end_sx = new ModelRenderer(this, 60, 46);
  62.         this.shoulderfront_end_sx.setRotationPoint(3.0F, 0.0F, 2.0F);
  63.         this.shoulderfront_end_sx.addBox(-1.0F, -2.0F, -2.0F, 2, 1, 2, 0.0F);
  64.         this.base_fin_sx = new ModelRenderer(this, 90, 16);
  65.         this.base_fin_sx.setRotationPoint(5.8F, -5.0F, 8.85F);
  66.         this.base_fin_sx.addBox(-4.0F, -8.0F, -4.0F, 1, 11, 2, 0.0F);
  67.         this.setRotateAngle(base_fin_sx, 0.0F, -0.5777039824101231F, 0.0F);
  68.         this.Shoulderbase_End_sx = new ModelRenderer(this, 75, 68);
  69.         this.Shoulderbase_End_sx.setRotationPoint(6.0F, 0.0F, 1.0F);
  70.         this.Shoulderbase_End_sx.addBox(-1.0F, -2.0F, -2.0F, 1, 1, 4, 0.0F);
  71.         this.helmet = new ModelRenderer(this, 90, 0);
  72.         this.helmet.setRotationPoint(0.0F, 0.0F, 0.0F);
  73.         this.helmet.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.5F);
  74.         this.end_fin_dx = new ModelRenderer(this, 105, 16);
  75.         this.end_fin_dx.mirror = true;
  76.         this.end_fin_dx.setRotationPoint(-1.0F, 2.0F, 0.0F);
  77.         this.end_fin_dx.addBox(-4.0F, -8.0F, -4.0F, 1, 5, 2, 0.0F);
  78.         this.rightarm = new ModelRenderer(this, 80, 48);
  79.         this.rightarm.setRotationPoint(-5.5F, 2.0F, 0.0F);
  80.         this.rightarm.addBox(-3.0F, -2.0F, -2.0F, 4, 5, 4, 0.5F);
  81.         this.leftarm = new ModelRenderer(this, 80, 32);
  82.         this.leftarm.setRotationPoint(5.5F, 2.0F, 0.0F);
  83.         this.leftarm.addBox(-1.0F, -2.0F, -2.0F, 4, 5, 4, 0.5F);
  84.         this.mid_fin_sx = new ModelRenderer(this, 97, 16);
  85.         this.mid_fin_sx.setRotationPoint(1.0F, 1.0F, 0.0F);
  86.         this.mid_fin_sx.addBox(-4.0F, -8.0F, -4.0F, 1, 9, 2, 0.0F);
  87.         this.mid_fin_sx.addChild(this.end_fin_sx);
  88.         this.base_fin_dx.addChild(this.mid_fin_dx);
  89.         this.shoulder_base_sx.addChild(this.shoulderback_sx);
  90.         this.shoulderback_sx.addChild(this.shoulderendback_sx);
  91.         this.shoulder_base_sx.addChild(this.shoulderbase_front_sx);
  92.         this.helmet.addChild(this.base_fin_dx);
  93.         this.leftarm.addChild(this.shoulder_base_sx);
  94.         this.shoulderbase_front_sx.addChild(this.shoulderfront_end_sx);
  95.         this.helmet.addChild(this.base_fin_sx);
  96.         this.shoulder_base_sx.addChild(this.Shoulderbase_End_sx);
  97.         this.mid_fin_dx.addChild(this.end_fin_dx);
  98.         this.base_fin_sx.addChild(this.mid_fin_sx);
  99.        
  100.         this.bipedHead.addChild(helmet);
  101.         this.bipedBody.addChild(chestplate);
  102.         this.bipedRightArm.addChild(rightarm);
  103.         this.bipedLeftArm.addChild(leftarm);
  104.         //this.bipedLeftLeg.addChild(leftleg)
  105.         //this.bipedRightLeg.addChild(rightleg)
  106.     }
  107.  
  108.     @Override
  109.     public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
  110.         super.render(entity, f, f1, f2, f3, f4, f5);
  111.         //this.helmet.render(f5);
  112.     }
  113.  
  114.     /**
  115.      * This is a helper function from Tabula to set the rotation of model parts
  116.      */
  117.     public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  118.         modelRenderer.rotateAngleX = x;
  119.         modelRenderer.rotateAngleY = y;
  120.         modelRenderer.rotateAngleZ = z;
  121.     }
  122. }
  123.  
Advertisement
Add Comment
Please, Sign In to add comment