Entity rotation wrong values

Started by jopelle on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity rotation wrong values
Sat, 04/11/2020 - 16:13 (edited)

Hi,

I have a problem with the entity direction in deg. It was working perfectly a few hours ago and suddenly stopped working for some reason.

I'm comparing entity rotation with values and assigning a variable a value depending on this comparison value, but it is always wrong.

I've been printing the entity rotation value to the console and I have strange negative values like -445.

Here is my graphical flow

Here, the variable rotateDirection is always zero (default value).

Does anyone have any idea on what's happening ?

Thank you very much

EDIT: I fixed it by changing to negative values but still strange because it was working 5 hours ago

 

Edited by jopelle on Sat, 04/11/2020 - 16:13
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Will do thank you!
Sun, 04/12/2020 - 17:21

Will do thank you!