Minecraft wiki entry for findanchoredbuildpos, associated text: Given the coordinates of a target block, this command finds a valid standing position for the player to place the block at the target coordinate.