how to add custom sky box

Post Reply
zadocallen
Member
Posts: 16
Joined: Thu Nov 12, 2020 16:47
In-game: Leuden

how to add custom sky box

by zadocallen » Post

How would I add my own custom skybox

User avatar
Skamiz Kazzarch
Member
Posts: 613
Joined: Fri Mar 09, 2018 20:34
GitHub: Skamiz
In-game: Skamiz
Location: la lojbaugag.

Re: how to add custom sky box

by Skamiz Kazzarch » Post

This function:

Code: Select all

* `set_sky(sky_parameters)`
    * Passing no arguments resets the sky to its default values.
    * `sky_parameters` is a table with the following optional fields:
        * `base_color`: ColorSpec, changes fog in "skybox" and "plain".
          (default: `#ffffff`)
        * `type`: Available types:
            * `"regular"`: Uses 0 textures, `base_color` ignored
            * `"skybox"`: Uses 6 textures, `base_color` used as fog.
            * `"plain"`: Uses 0 textures, `base_color` used as both fog and sky.
            (default: `"regular"`)
        * `textures`: A table containing up to six textures in the following
            order: Y+ (top), Y- (bottom), X- (west), X+ (east), Z+ (north), Z- (south).
        * `clouds`: Boolean for whether clouds appear. (default: `true`)
        * `sky_color`: A table used in `"regular"` type only, containing the
          following values (alpha is ignored): (...)
You can learn more here: https://github.com/minetest/minetest/bl ... .txt#L7134

You call the function on a player object to change the specific players appearance of their sky.

User avatar
Blockhead
Member
Posts: 1622
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: how to add custom sky box

by Blockhead » Post

Roshni Agarwal wrote:
Sat Feb 04, 2023 07:16
[A load of tosh]
You should really verify if what your AI chatbot says is true before just posting it verbatim.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

Maverick2797
Member
Posts: 128
Joined: Sun Aug 05, 2018 12:37
In-game: Maverick2797
Location: Poking about here and there...

Re: how to add custom sky box

by Maverick2797 » Post

The Pandorabox server has a great mod that lets you register an custom skybox via api: https://github.com/pandorabox-io/skybox
The number you have called is not available during a solar eclipse. This message will self destruct in ten seconds in protest... [BEEP]

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests