> ## 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 Fact

> Calculates distance to an NPC.

The `mythicmob_npc_distance_fact` returns the distance in blocks between the player and the target NPC. Returns `0` if in different worlds.

## Configuration

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

  <Expandable title="Properties">
    <ResponseField name="target" type="Target">
      The target NPC to measure distance to.
    </ResponseField>
  </Expandable>
</ResponseField>
