Skip to content

Commit

Permalink
minor progress !!
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixces committed Jul 23, 2024
1 parent 0e5a330 commit f6f8df0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ public class HeldItemFeatureRendererMixin {
return;
}

matrices.translate(TransformHook.translationX, TransformHook.translationY, TransformHook.translationZ);
matrices.multiply(RotationAxis.POSITIVE_X.rotation(TransformHook.rotationX));
matrices.multiply(RotationAxis.POSITIVE_Y.rotation(TransformHook.rotationY));
matrices.multiply(RotationAxis.POSITIVE_Z.rotation(TransformHook.rotationZ));
// matrices.translate(TransformHook.translationX, TransformHook.translationY, TransformHook.translationZ);
// matrices.multiply(RotationAxis.POSITIVE_X.rotation(TransformHook.rotationX));
// matrices.multiply(RotationAxis.POSITIVE_Y.rotation(TransformHook.rotationY));
// matrices.multiply(RotationAxis.POSITIVE_Z.rotation(TransformHook.rotationZ));

matrices.translate(-0.2F, 0.0F, 0.1F);
matrices.multiply(RotationAxis.POSITIVE_X.rotation(21.0F));
matrices.multiply(RotationAxis.POSITIVE_Y.rotation(90.0F));
matrices.multiply(RotationAxis.POSITIVE_Z.rotation(-90.0F));

// x: -0.2 y: 0.0 z: 0.1 yaw: 21.0 pitch: 90.0 roll: -90.0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public abstract class HeldItemRendererMixin
ci.cancel();
}

//todo: old re-equip logic needed frfr

// @ModifyArg(
// method = "updateHeldItems",
// at = @At(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
public class PlayerEntityRendererMixin
{

//todo: holding sword, eating, and bow fixes needed!
@Inject(
method = "getArmPose",
at = @At(
Expand Down

0 comments on commit f6f8df0

Please sign in to comment.