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

# 玩家条件

示例写在目标或对应任务字段的 conditions 中。公共字段见[概览](/ultimatequest-zhong-wen-wen-dang/pei-zhi/conditions.md)。

## `player_conditions`

对选定玩家运行通用玩家条件注册表。

| 字段           | 默认值    | 说明                      |
| ------------ | ------ | ----------------------- |
| `target`     | SOURCE | 玩家选择器，PLAYER 显式选择任务拥有者。 |
| `conditions` | —      | 具名通用玩家条件。               |

```yaml
conditions:
  allowed:
    type: player_conditions
    target: PLAYER
    conditions:
      permission:
        type: permission
        permission: ultimatequest.quest.miner
```

嵌套类型为 permission、world、biome、placeholder、any、not，不是直接事件条件 ID。

## 嵌套类型参考

| type          | 字段                       | 行为           |
| ------------- | ------------------------ | ------------ |
| `permission`  | permission               | 选中玩家必须拥有权限。  |
| `world`       | world                    | 玩家世界精确名称。    |
| `biome`       | biome                    | 玩家所在生物群系。    |
| `placeholder` | placeholder, rule, value | 比较解析后的文本或数值。 |
| `any`         | conditions               | 任一嵌套通用条件通过。  |
| `not`         | conditions               | 反转嵌套整体结果。    |

placeholder 数字运算符为 >=、>、=、<、<=；文本为 ==、!=、*=（左含右）、=*（右含左）、!*=、!=*。缺少参数或数值格式错误可能使条件无法正确限制玩家。请填写完整参数，并分别测试满足和不满足要求的情况。
