Skip to content

Commit

Permalink
Actually fix wraith's hitbox this time
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Jul 19, 2024
1 parent dbf46ec commit fd1abee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ public MoCModelWraith() {
textureWidth = 64;
textureHeight = 40;
this.bipedHead = new ModelRenderer(this, 0, 0);
this.bipedHead.addBox(-4F, -8F, -4F, 8, 8, 8, 0.0F);
this.bipedHead.addBox(-4.0F, -4.0F, -4.0F, 8, 8, 8, 0.0F);
this.bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F);
this.bipedBody = new ModelRenderer(this, 16, 16);
this.bipedBody.addBox(-4.0F, 0.0F, -2.0F, 8, 20, 4, 0.0F);
this.bipedBody.addBox(-4.0F, 4.0F, -2.0F, 8, 20, 4, 0.0F);
this.bipedBody.setRotationPoint(0.0F, 0.0F, 0.0F);
this.bipedRightArm = new ModelRenderer(this, 40, 16);
this.bipedRightArm.addBox(-3.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F);
this.bipedRightArm.addBox(-2.75F, -2.0F, 2.0F, 4, 12, 4, 0.0F);
this.bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F);
this.bipedLeftArm = new ModelRenderer(this, 40, 16);
this.bipedLeftArm.mirror = true;
this.bipedLeftArm.addBox(-1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F);
this.bipedLeftArm.addBox(-1.25F, -2.0F, 2.0F, 4, 12, 4, 0.0F);
this.bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MoCEntityWraith extends MoCEntityMob//MoCEntityFlyerMob
public MoCEntityWraith(World world) {
super(world);
this.collidedVertically = false;
setSize(0.6F, 2.0F);
setSize(0.6F, 1.75F);
experienceValue = 5;
}

Expand Down Expand Up @@ -173,6 +173,6 @@ protected boolean isHarmedByDaylight() {
}

public float getEyeHeight() {
return this.height * 0.86F;
return this.height * 0.84F;
}
}

0 comments on commit fd1abee

Please sign in to comment.