> 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/ultimatequest-zhong-wen-wen-dang/pei-zhi/triggers/lifecycle.md).

# Tick 与生命周期触发器

下列各节按当前事件上下文说明。PLAYER 为累计任务进度的玩家，TARGET 不自动等于 PLAYER，缺失数据保持缺失。这些触发器观察进度，不提供可修改的伤害/掉落结果。

## 配置示例

```yaml
source:
  trigger: tick
  amount: 10
```

## `tick`

对被观察的在线玩家每游戏 tick 触发。

| 上下文                  | 值                           |
| -------------------- | --------------------------- |
| 事件/载荷                | `TriggerRuntime.PlayerTick` |
| 可用性                  | Paper 和 Spigot              |
| PLAYER               | 此事件关联的玩家                    |
| SOURCE               | 任务玩家                        |
| TARGET               | 缺省                          |
| LOCATION             | 玩家位置                        |
| TRIGGER\_ITEM / slot | 缺省                          |
| BLOCK                | 事件方块或移动终点方块                 |

此触发器会在相关目标进行期间自动执行。

## `spawn`

玩家加入数据就绪后及重生后触发，不是通用生物生成计数。

| 上下文                  | 值              |
| -------------------- | -------------- |
| 事件/载荷                | `Event`        |
| 可用性                  | Paper 和 Spigot |
| PLAYER               | 此事件关联的玩家       |
| SOURCE               | 任务玩家           |
| TARGET               | 缺省             |
| LOCATION             | 加入/重生位置        |
| TRIGGER\_ITEM / slot | 缺省             |
| BLOCK                | 事件方块或移动终点方块    |

## `respawn`

通过玩家调度器在玩家重生后触发。

| 上下文                  | 值                    |
| -------------------- | -------------------- |
| 事件/载荷                | `PlayerRespawnEvent` |
| 可用性                  | Paper 和 Spigot       |
| PLAYER               | 此事件关联的玩家             |
| SOURCE               | 任务玩家                 |
| TARGET               | 缺省                   |
| LOCATION             | 重生位置                 |
| TRIGGER\_ITEM / slot | 缺省                   |
| BLOCK                | 事件方块或移动终点方块          |

[触发器概览](/ultimatequest-zhong-wen-wen-dang/pei-zhi/triggers.md) · [事件条件](/ultimatequest-zhong-wen-wen-dang/pei-zhi/conditions.md)
