> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# World Facts

> Check world and environmental conditions.

Facts allow you to query the state of the world for use in conditions or placeholders.

## Fact Library

<CardGroup cols={2}>
  <Card title="Time of Day" icon="clock" href="#time-of-day-fact">
    Returns current world time (0-24000).
  </Card>

  <Card title="Weather" icon="cloud" href="#weather-fact">
    Returns current weather state.
  </Card>

  <Card title="Biome" icon="tree" href="#biome-fact">
    Returns the biome ID.
  </Card>
</CardGroup>

## Configuration

### `time_of_day_fact`

Returns the world time in ticks.

* **Returns:** `Long` (ticks)
  * `0`: Dawn
  * `6000`: Noon
  * `18000`: Midnight

### `weather_fact`

Returns the current weather state.

<ResponseField name="world" type="String">
  Target world name (optional).
</ResponseField>

* **Returns:** `Int`
  * `0`: Clear
  * `1`: Rain
  * `2`: Storm

### `biome_fact`

Returns the ID of the biome at the player's location.

* **Returns:** `String` (Namespace ID, e.g. `minecraft:plains`)

## Usage Example

<CodeGroup>
  ```yaml Night Condition theme={null}
  condition:
    fact: time_of_day_fact
    operator: GREATER_THAN
    value: 13000
  ```
</CodeGroup>
