60 lines
628 B
Markdown
60 lines
628 B
Markdown
|
# Lua API: Sky
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```lua
|
||
|
mod:sky {
|
||
|
id = "sky_overworld",
|
||
|
|
||
|
color = {
|
||
|
day = {50, 153, 204},
|
||
|
},
|
||
|
|
||
|
fog_color = {
|
||
|
day = {50, 153, 204},
|
||
|
},
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## Attributes
|
||
|
|
||
|
### `id`
|
||
|
|
||
|
ID of the sky. **Mandatory field.**
|
||
|
|
||
|
Example:
|
||
|
```lua
|
||
|
id = "sky_nether"
|
||
|
```
|
||
|
|
||
|
IDs are usually of the form `mod:sky` but the `mod:` prefix is prepended automatically so it's not needed.
|
||
|
|
||
|
### `color`
|
||
|
|
||
|
Sky color.
|
||
|
|
||
|
Example:
|
||
|
```lua
|
||
|
color = {
|
||
|
day = {154, 50, 33}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
Possible values:
|
||
|
- `day`: Sky color at midday
|
||
|
|
||
|
### `fog_color`
|
||
|
|
||
|
Fog color.
|
||
|
|
||
|
Example:
|
||
|
```lua
|
||
|
fog_color = {
|
||
|
day = {154, 50, 33}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
Possible values:
|
||
|
- `day`: Fog color at midday
|
||
|
|