[get] %b:BLOCK% (x|y|z)
Returns the x, y, or z coordinate of a block.
set x to block x
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
<b> x
get <b> x
<b> y
get <b> y
<b> z
get <b> z
[get] block at %loc:LOCATION%
[get] %b:BLOCK% type
[get] %b:BLOCK% location
[get] %b:BLOCK% world
[get] %b:BLOCK% light level
[get] %b:BLOCK% data [string]
get pdc %key:STRING% of %bl:BLOCK%