To change colour of clouds at night or make night clouds darker
-
- New member
- Posts: 4
- Joined: Sat Nov 05, 2022 16:04
- GitHub: ivanssalt
- IRC: chertila
- In-game: DeeFFRed
To change colour of clouds at night or make night clouds darker
Hello everyone I would like to know how I can change the color of the clouds for the dark time of day or just make the clouds darker for the night? Because I don't like this color of clouds at night, depicted in this screenshot:
- Skamiz Kazzarch
- Member
- Posts: 613
- Joined: Fri Mar 09, 2018 20:34
- GitHub: Skamiz
- In-game: Skamiz
- Location: la lojbaugag.
Re: To change colour of clouds at night or make night clouds darker
https://github.com/minetest/minetest/bl ... .txt#L7246
You can call this function on the player object to change cloud appearance. You will also have to mess with the 'weather' mod from MTG if you don't want your changes instantly overridden.
Code: Select all
* `set_clouds(cloud_parameters)`: set cloud parameters
* Passing no arguments resets clouds to their default values.
* `cloud_parameters` is a table with the following optional fields:
* `density`: from `0` (no clouds) to `1` (full clouds) (default `0.4`)
* `color`: basic cloud color with alpha channel, ColorSpec
(default `#fff0f0e5`).
* `ambient`: cloud color lower bound, use for a "glow at night" effect.
ColorSpec (alpha ignored, default `#000000`)
* `height`: cloud height, i.e. y of cloud base (default per conf,
usually `120`)
* `thickness`: cloud thickness in nodes (default `16`)
* `speed`: 2D cloud speed + direction in nodes per second
(default `{x=0, z=-2}`).
-
- New member
- Posts: 4
- Joined: Sat Nov 05, 2022 16:04
- GitHub: ivanssalt
- IRC: chertila
- In-game: DeeFFRed
Re: To change colour of clouds at night or make night clouds darker
Okay, thanks. I will try it
Who is online
Users browsing this forum: No registered users and 8 guests