Minecraft wiki entry for Command_blocks_and_functions, associated text: Alternately the player can specify the x, y and z coordinates in the command (e.g. /execute if @p[x=50,y=64,z=46,distance=..1] but be warned that the range cannot be shrinked to the 1-block point. As with the non-xyz version range means center block plus range number of blocks around it, which makes sense from a command block (where “just the center block” would mean you have to be standing in the command block) but doesn’t make sense here. At any rate a range 1 sphere (+ pattern with an extra block on top and bottom) can be buried underground with just the top sticking out, provided the player know no one will be walking through the bottom 2 layers of the globe. Trying this with the non-xyz version of the command would require the command block itself to be embedded in the surface of the floor where it can be seen.