You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When changing a player entity's facing direction with modify(_, 'location', ...), modify(_, 'yaw', ...), or modify(_, 'pitch', ...), the entity's initial facing direction is influencing the result. Furthermore, modifying 'yaw' also affects pitch, and vice versa.
For example, running following command while I have a yaw and pitch of 15, 10 adjusts my yaw AND pitch to 17, 20. /script run modify(player(), 'yaw', 2)
I would expect my yaw and pitch to be 2, 10 afterwards.
This only occurs with player entities from what I've seen. Setting the pitch and yaw of mobs works correctly.
When changing a player entity's facing direction with
modify(_, 'location', ...)
,modify(_, 'yaw', ...)
, ormodify(_, 'pitch', ...)
, the entity's initial facing direction is influencing the result. Furthermore, modifying'yaw'
also affects pitch, and vice versa.For example, running following command while I have a yaw and pitch of
15, 10
adjusts my yaw AND pitch to17, 20
./script run modify(player(), 'yaw', 2)
I would expect my yaw and pitch to be
2, 10
afterwards.This only occurs with player entities from what I've seen. Setting the pitch and yaw of mobs works correctly.
Workarounds:
This appears to be a regression as it did not always behave this way.
I have tested and found this behavior in the following versions:
The text was updated successfully, but these errors were encountered: