get %who:PLAYER_POSSESSIVE% location
Returns the current location of a player.
set loc to get player's location
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
get <who> location
get %who:PLAYER_POSSESSIVE% world
get player by (name|username) %name:STRING%
get player by (name|username) %name:EXPR%
get player by (uuid|unique id) %uuid:STRING%
get %op:PLAYER_POSSESSIVE% name
get %who:PLAYER_POSSESSIVE% x
get %who:PLAYER_POSSESSIVE% y
get %who:PLAYER_POSSESSIVE% z
get %who:PLAYER_POSSESSIVE% uuid
get %who:PLAYER_POSSESSIVE% (xp level|level)
get %who:PLAYER_POSSESSIVE% eye location
get %who:PLAYER_POSSESSIVE% direction x
get %who:PLAYER_POSSESSIVE% direction y
get %who:PLAYER_POSSESSIVE% direction z