From 41853ab879d0586101fca4f660470b19ef575341 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Sat, 25 Feb 2023 22:35:35 -0500 Subject: [PATCH] Add setting for skybox --- api.lua | 1 + init.lua | 6 +++++- settingtypes.txt | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index f4d1703..4a7d63d 100644 --- a/api.lua +++ b/api.lua @@ -519,6 +519,7 @@ Everness = { }, features = { everness_feature_sneak_pickup = minetest.settings:get_bool('everness_feature_sneak_pickup', true), + everness_feature_skybox = minetest.settings:get_bool('everness_feature_skybox', true), } }, } diff --git a/init.lua b/init.lua index 8894001..07adde3 100644 --- a/init.lua +++ b/init.lua @@ -163,7 +163,11 @@ dofile(path .. '/tools.lua') dofile(path .. '/craftitems.lua') dofile(path .. '/crafting.lua') dofile(path .. '/loot_chests.lua') -dofile(path .. '/skybox.lua') + +if Everness.settings.features.everness_feature_skybox then + dofile(path .. '/skybox.lua') +end + dofile(path .. '/env_sounds.lua') if Everness.settings.features.everness_feature_sneak_pickup then diff --git a/settingtypes.txt b/settingtypes.txt index de22cbb..d8c40e1 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -329,3 +329,9 @@ everness_forsaken_tundra_under_y_min (y min) int -31000 # Enable/ Disable Item pick up with sneak key # [Shift + E + Q] single drop item everness_feature_sneak_pickup (Sneak Pickup) bool true + +# Enable/ Disable Skybox +# This shows custom sun/moon/sky colors/stars/clouds... +# based on the biome, so each new biome has +# unique feeling and experience. +everness_feature_skybox (Skybox) bool true