> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# NPC Distance

> Returns the distance to the NPC.

The `btcmob_npc_distance_fact` returns the distance (in blocks) between the player and the NPC.

## Configuration

<ResponseField name="btcmob_npc_distance_fact" type="Map" required>
  Configuration for the fact.

  <Expandable title="Properties">
    <ResponseField name="npc" type="String">
      Optional NPC ID.
    </ResponseField>
  </Expandable>
</ResponseField>
