Getting relative mappings using a plugin

Discussion in 'Plugin Development' started by Supermater228fedya, Apr 14, 2021.

Thread Status:
Not open for further replies.
  1. Hello, minecraft has relative coordinates - ^ ^ ^. With the help of them, I could get the coordinates of the player from behind, regardless of where he was turned. How can I get them when creating plugins?
  2. Offline


    The player's x, y, and z? You can get those from the location
    Where player is the player variable
    Location methods

  3. We cannot get the coordinates behind the player this way
  4. Offline


    To get the coordinates of behind the player you can just normalize the direction the player is already facing and then multiply it by -1. Then you can add this vector to the players location.
    Chr0mosom3 and davidclue like this.
Thread Status:
Not open for further replies.

Share This Page