> 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/configs/triggers/targeting-special.md).

# Targeting and Special-Entity Triggers

Each trigger section uses the same Context terminology as the [Power Triggers](/configs/triggers.md) index.

## `on-target`

Runs when the powered mob selects a target.

| Context             | Value                                                             |
| ------------------- | ----------------------------------------------------------------- |
| Entity roles        | `SOURCE`/`SKILL` are the powered mob; `TARGET` is the new target. |
| Event-specific data | Provides target reason.                                           |

***

## `on-untag`

Runs when the powered mob loses its target.

| Context             | Value                                                                          |
| ------------------- | ------------------------------------------------------------------------------ |
| Entity roles        | `SOURCE`/`SKILL` are the mob; target role follows the implementation fallback. |
| Event-specific data | Provides target reason.                                                        |

***

## `on-explode`

Runs for a generic entity explosion owned by the powered mob.

| Context             | Value                                                                                        |
| ------------------- | -------------------------------------------------------------------------------------------- |
| Entity roles        | `SOURCE` is exploding entity or resolved shooter; `SKILL`/`TARGET` are the exploding entity. |
| Event-specific data | Provides mutable explosion yield.                                                            |

***

## `on-creeper-explode`

Runs when a powered creeper primes its explosion.

| Context             | Value                                      |
| ------------------- | ------------------------------------------ |
| Entity roles        | `SOURCE`/`SKILL`/`TARGET` are the creeper. |
| Event-specific data | Provides mutable explosion radius.         |
