First-person Model (Forge/Fabric)

First-person Model (Forge/Fabric)

9M Downloads

I need some help with the api

RazorPlay01 opened this issue ยท 5 comments

commented

I am creating a mod which modifies the vanilla animations of the player through the player animation api. In addition to this, I am modifying the rendering of the player entity and adding tilt/oscillation depending on the direction of movement of the player. When doing this I have noticed that the Player's head is rendered on the first person screen when using your mod. Therefore I would like to know how I could disable the rendering of the head as long as your mod is active

commented

You can call FirstPersonAPI.isRenderingPlayer() to check rather the player is getting rendered in the first-person context right now. Then hide the head(since it seems to be some custom player model that this mod is unable to work with).

commented

How can I import the mod through Maven I don't know much about it to be honest

commented

If you are moving the player model, you can also look at this example on how to make sure that the head stays attached to the camera https://github.com/tr7zw/FirstPersonModel/blob/1.19.4/Shared/src/main/java/dev/tr7zw/firstperson/modsupport/PlayerAnimatorSupport.java

commented

Thanks for the support