Topic category: Help with modding (Java Edition)
Entity direction in deg. is behaving in a way I don't really understand.
I'm sending to entity text containing the entity yaw in deg: when I'm facing West, it texts 90 as it should but when I'm doing a 360, it texts -270 instead of 90 as before.
Why is the value not always between 0 and 360 or between -180 and 180?
Is there something I'm missing?
Thank you very much
(I posted a few hours ago a question pretty much about the same subject but not exactly the same question. I'm basically broadening my previous question)
EDIT: I'm using modulo to keep the value between 0 and 360 but I'm still wondering why I have such strange values