> ## 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 Hit Event

> Triggered when a player hits an NPC.

The `btcmob_npc_hit` event is triggered when a player left-clicks (attacks) a BTCMob NPC.

## Configuration

<ResponseField name="btcmob_npc_hit" type="Map" required>
  Configuration for the event.

  <Expandable title="Properties">
    <ResponseField name="id" type="String">
      Optional unique identifier.
    </ResponseField>

    <ResponseField name="npcInstance" type="Instance">
      The NPC instance that was hit.
    </ResponseField>

    <ResponseField name="cancel" type="Boolean">
      Whether to cancel the damage/knockback. Default `true`.
    </ResponseField>
  </Expandable>
</ResponseField>
