> For the complete documentation index, see [llms.txt](https://enchantedmobs.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enchantedmobs.superiormc.cn/for-ultimatequest/configuration/triggers/targeting-special.md).

# Targeting and Special-Entity Triggers

Each section documents the current event context. PLAYER is the player credited with quest progress; TARGET is not automatically PLAYER. Missing values remain absent. All of these triggers observe progress and do not expose mutable damage/drop results.

## Configuration example

```yaml
source:
  trigger: target
  amount: 10
```

## `target`

Runs when an entity acquires a player target and records target tracking.

| Context              | Value                             |
| -------------------- | --------------------------------- |
| Event / payload      | `EntityTargetEvent`               |
| Availability         | Paper and Spigot                  |
| PLAYER               | Player associated with this event |
| SOURCE               | Targeting entity                  |
| TARGET               | Quest player                      |
| LOCATION             | Player location                   |
| TRIGGER\_ITEM / slot | Absent                            |
| Extra context        | `target_reason`, `target_count`   |

## `untag`

Runs when a tracked entity stops targeting its previously recorded player.

| Context              | Value                             |
| -------------------- | --------------------------------- |
| Event / payload      | `EntityTargetEvent`               |
| Availability         | Paper and Spigot                  |
| PLAYER               | Player associated with this event |
| SOURCE               | Entity losing the tracked target  |
| TARGET               | Quest player                      |
| LOCATION             | Player location                   |
| TRIGGER\_ITEM / slot | Absent                            |
| Extra context        | `target_reason`                   |

## `target_tick`

Scans an observed player line of sight for an entity within 32 blocks each tick. No entity means no event.

| Context              | Value                                     |
| -------------------- | ----------------------------------------- |
| Event / payload      | `TriggerRuntime.PlayerTick`               |
| Availability         | Paper and Spigot                          |
| PLAYER               | Player associated with this event         |
| SOURCE               | Quest player                              |
| TARGET               | Looked-at entity                          |
| LOCATION             | Target/entity location                    |
| TRIGGER\_ITEM / slot | Absent                                    |
| BLOCK                | Event block or movement destination block |

This trigger runs automatically while a matching objective is active.

## `enderman_attack_player`

Observes an enderman decision to attack a player.

| Context              | Value                               |
| -------------------- | ----------------------------------- |
| Event / payload      | `EndermanAttackPlayerEvent`         |
| Availability         | Paper mode and event class required |
| PLAYER               | Player associated with this event   |
| SOURCE               | Enderman                            |
| TARGET               | Quest player                        |
| LOCATION             | Player location                     |
| TRIGGER\_ITEM / slot | Absent                              |

## `phantom_pre_spawn`

Observes non-aborted phantom pre-spawn linked to a spawning player.

| Context              | Value                                     |
| -------------------- | ----------------------------------------- |
| Event / payload      | `PhantomPreSpawnEvent`                    |
| Availability         | Paper mode and event class required       |
| PLAYER               | Player associated with this event         |
| SOURCE               | Quest player                              |
| TARGET               | Absent                                    |
| LOCATION             | Proposed spawn location                   |
| TRIGGER\_ITEM / slot | Absent                                    |
| BLOCK                | Event block or movement destination block |

## `warden_anger_change`

Observes a Warden anger change whose target is a player.

| Context              | Value                               |
| -------------------- | ----------------------------------- |
| Event / payload      | `WardenAngerChangeEvent`            |
| Availability         | Paper mode and event class required |
| PLAYER               | Player associated with this event   |
| SOURCE               | Quest player                        |
| TARGET               | Warden                              |
| LOCATION             | Target/entity location              |
| TRIGGER\_ITEM / slot | Absent                              |

[Trigger overview](/for-ultimatequest/configuration/triggers.md) · [Event conditions](/for-ultimatequest/configuration/conditions.md)
