To change colour of clouds at night or make night clouds darker

Post Reply
ivanssalt
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

by ivanssalt » Post

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:
screenshot_20221113_110028.png
screenshot_20221113_110028.png (438.63 KiB) Viewed 368 times

User avatar
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

by Skamiz Kazzarch » Post

https://github.com/minetest/minetest/bl ... .txt#L7246

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}`).
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.

ivanssalt
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

by ivanssalt » Post

Okay, thanks. I will try it

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests