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

# Environment and Block Conditions

Each example is placed inside the conditions mapping of an objective or compatible task field. See [common fields](/for-ultimatequest/configuration/conditions.md).

## `world`

Checks the world at the context location.

| Field            | Default | Description                                 |
| ---------------- | ------- | ------------------------------------------- |
| `worlds / world` | —       | World-name list or scalar; case-normalized. |

```yaml
conditions:
  overworld:
    type: world
    worlds:
    - world
```

The event location may be at a target/block rather than at the quest owner. Use nested player\_conditions for a direct player-world test.

## `block_type`

Matches the event block using vanilla/custom-block hooks.

| Field               | Default | Description                        |
| ------------------- | ------- | ---------------------------------- |
| `types / type-name` | —       | Block identifiers, list or scalar. |

```yaml
conditions:
  stone:
    type: block_type
    types:
    - STONE
```

Uses brokenBlockState when available, otherwise the live context block. No block means false. It does not check crop maturity by itself.

## `night`

Checks the source living entity world time.

| Field   | Default | Description             |
| ------- | ------- | ----------------------- |
| `value` | true    | Expected boolean state. |

```yaml
conditions:
  dark:
    type: night
    value: true
```

Night is inclusive from tick 12300 to 23850. This condition reads SOURCE; it does not support a target field.

## `storm`

Checks whether the context location world has a storm.

| Field   | Default | Description             |
| ------- | ------- | ----------------------- |
| `value` | true    | Expected boolean state. |

```yaml
conditions:
  rain:
    type: storm
    value: true
```

No location/world means false. value: false requests no storm.
