How can I rotate a mob body instantly?

Started by NathVer1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I rotate a mob body instantly?

Hello, 
I'm trying to make a mob (specifically an Animated Entity by the GeckoLib Plugin), instantly orient itself towards a point.
I've tried using both "Make [Entity] look at" and "Set Rotation of [Entity] Yaw / Pitch." In both cases, the mob rotates its body with a delay of about one second after the head, completely ruining the effect I want to achieve.

How can I achieve instant rotation?

Other things I've tried:

  • Inserting the rotation procedure on multiple ticks.
  • Disabling AI.

Additional information:

  • [MCreator Version] 2023.3
  • [Minecraft Version] 1.20.1
  • [Plugins] Geckolib, Additions
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The game does this…
Tue, 10/24/2023 - 01:35

The game does this automatically to make entity rotation look smoother. ...If you want to override it, you could maybe try running a teleport command with a specified rotation on the entity; or despawning the entity and replacing it with another entity oriented in the correct direction. (Teleportation is probably easier though, I'm pretty sure this'll work instantly.)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, I'll try as soon as…
Tue, 10/24/2023 - 01:45

Thanks, I'll try as soon as I can