Get Location 3 Blocks in the Direction a Player is Looking?

Discussion in 'Plugin Development' started by NerdsWBNerds, May 3, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    NerdsWBNerds

    How can I get the exact location 3 blocks in front of a player?

    Certainly there is an easy way to do this creating some Vector out of the users yaw/pitch and then just adding it * 3 to the player's current location.
     
  2. Offline

    rfsantos1996

    player..getLocation().getDirection()?
     
  3. Offline

    NerdsWBNerds


    Thanks... I should've seen that :/
     
    rfsantos1996 likes this.
Thread Status:
Not open for further replies.

Share This Page