[get] %loc:LOCATION% z
Returns the Z coordinate of a location as a double.
set pz to player location z
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
<loc> z
get <loc> z
new location in %w:WORLD% at %x:INT% %y:INT% %z:INT%
new location at %x:INT% %y:INT% %z:INT% in %w:WORLD%
[get] %loc:LOCATION% x
[get] %loc:LOCATION% y
distance between %a:LOCATION% and %b:LOCATION%
[get] %loc:LOCATION% world