> ## 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 Actions

> Modify world state, time, and weather.

Manipulate global environment variables.

## Configuration

### `time_action`

Sets the exact time of day.

<ResponseField name="time" type="Long" default="0">
  Ticks (0-24000). 0=Dawn, 6000=Noon, 18000=Midnight.
</ResponseField>

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

### `weather_action`

Sets the weather state.
<ResponseField name="weather" type="Enum" default="CLEAR">CLEAR, RAIN, STORM.</ResponseField>
<ResponseField name="duration" type="Duration" default="5m">How long it lasts.</ResponseField>

### `tree_spawn_action`

Spawns a specific tree structure.
<ResponseField name="location" type="Location">Where to grow the tree.</ResponseField>
<ResponseField name="type" type="Enum" default="OAK">OAK, BIRCH, JUNGLE, etc.</ResponseField>

## Example Usage

<CodeGroup>
  ```yaml Midnight theme={null}
  time_action:
    time: 18000
  ```

  ```yaml Stormy Weather theme={null}
  weather_action:
    weather: STORM
    duration: 20m
  ```
</CodeGroup>
