> 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/lifecycle.md).

# Tick and Lifecycle Triggers

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

## `on-tick`

Runs periodically for a powered mob.

| Context             | Value                                                                             |
| ------------------- | --------------------------------------------------------------------------------- |
| Entity roles        | `OWNER`, `SOURCE`, `SKILL`, and `TARGET` are the powered mob. `TICK` is supplied. |
| Event-specific data | Supports `interval`, clamped to at least one tick.                                |

***

## `on-target-tick`

Runs periodically while the powered mob has a target.

| Context             | Value                                                                                     |
| ------------------- | ----------------------------------------------------------------------------------------- |
| Entity roles        | `OWNER`/`SOURCE`/`SKILL` are the mob; `TARGET` is its current target. `TICK` is supplied. |
| Event-specific data | Supports `interval`; does not fire without a target.                                      |

***

## `on-spawn`

Runs when powers are assigned to a mob.

| Context             | Value                                                                      |
| ------------------- | -------------------------------------------------------------------------- |
| Entity roles        | All entity roles resolve to the powered mob; location is the mob location. |
| Event-specific data | This is power-assignment lifecycle, not every Bukkit spawn event.          |
