Help preventing mob body head alignment

Started by Mr. 41 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help preventing mob body head alignment
Wed, 01/29/2025 - 18:05 (edited)

You might have noticed the difference between mob and player movements. When a mob turns it's head, the body also turns into the same direction, which is not the case with players, which the body only turns slightly when the player looks to far on the sides. In my mod I am creating a player like entity, and although this is a super specific question, the mob head alignment really breaks the immersion of it being player-like. Anyone knows how to prevent that or how to disable that?

 

Additional information that might be helpful: the living entity basically stares at the player. To do this I used the following AI tasks (listed from highest priority to the lowest priority):

 > Avoid entity of type [Player] in radius [83] near speed [1.1] far speed [1.1]

 > Attack (in sight only [ ]) (nearby only [ ]) entity of type [Player]

 > Do melee attack with range [0] speed factor [0] (chase after lost sight [X])

 > Float in water

 

[EDIT]: Forgot to mention, but I am on NeoForge 1.21.1

Edited by Mr. 41 on Wed, 01/29/2025 - 18:05
Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I forgot to mention, but I…
Tue, 01/28/2025 - 18:48

I forgot to mention, but I am on Neoforge 1.21.1