From 3460e27468c5ce3be846d19be8f3a9797195dfc9 Mon Sep 17 00:00:00 2001 From: tacotexmex Date: Sat, 3 Aug 2024 12:47:37 +0200 Subject: [PATCH 1/7] Update OpenCollective link (#4465) Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4465 Reviewed-by: the-real-herowl Co-authored-by: tacotexmex Co-committed-by: tacotexmex --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02f55b4d6..d3caf8ad9 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ The VoxeLibre repository is hosted at Mesehub. To contribute or report issues, h * Discord: * YouTube: * ContentDB: -* OpenCollective: +* OpenCollective: * Mastodon: * Lemmy: * Matrix space: From dc07eea59077b096049da2d9574346040f5593ab Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 13 Nov 2023 15:56:59 +0100 Subject: [PATCH 2/7] Freeze water in cold areas --- mods/ITEMS/mcl_core/functions.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index ad2346dd9..f90664e8e 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1451,6 +1451,20 @@ minetest.register_abm({ end }) +-- Freeze water +minetest.register_abm({ + label = "Freeze water in cold areas", + nodenames = {"mcl_core:water_source", "mclx_core:river_water_source"}, + interval = 32, + chance = 8, + action = function(pos, node) + if mcl_weather.has_snow(pos) then + node.name = "mcl_core:ice" + minetest.swap_node(pos, node) + end + end +}) + --[[ Call this for vines nodes only. Given the pos and node of a vines node, this returns true if the vines are supported and false if the vines are currently floating. From c2098d777f314eed386043e4320dfd5313bba777 Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 21 Nov 2023 16:53:57 +0100 Subject: [PATCH 3/7] Prevent water freezing and ice melting ABMs from fighting --- mods/ITEMS/mcl_core/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index f90664e8e..664982145 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1458,7 +1458,7 @@ minetest.register_abm({ interval = 32, chance = 8, action = function(pos, node) - if mcl_weather.has_snow(pos) then + if mcl_weather.has_snow(pos) and minetest.get_node_light(pos, 0) < 12 then node.name = "mcl_core:ice" minetest.swap_node(pos, node) end From f23014005f2dc63f412703ffdf2d9b3e65003ad6 Mon Sep 17 00:00:00 2001 From: cora Date: Sat, 25 Nov 2023 06:31:30 +0100 Subject: [PATCH 4/7] Only freeze water under open air and if light level < 10 --- mods/ITEMS/mcl_core/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 664982145..6b3c9f251 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1458,7 +1458,7 @@ minetest.register_abm({ interval = 32, chance = 8, action = function(pos, node) - if mcl_weather.has_snow(pos) and minetest.get_node_light(pos, 0) < 12 then + if mcl_weather.has_snow(pos) and minetest.get_natural_light(vector.offset(pos,0,1,0), 0.5) == minetest.LIGHT_MAX + 1 and minetest.get_node_light(pos) < 10 then node.name = "mcl_core:ice" minetest.swap_node(pos, node) end From a785be59d91495edc87839e6d8ae3c6a80a94b6a Mon Sep 17 00:00:00 2001 From: WillConker Date: Mon, 1 Jul 2024 16:28:19 +0100 Subject: [PATCH 5/7] Changed node light check to artificial light so that water can freeze in the day --- mods/ITEMS/mcl_core/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 6b3c9f251..e66ce8db7 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1458,7 +1458,7 @@ minetest.register_abm({ interval = 32, chance = 8, action = function(pos, node) - if mcl_weather.has_snow(pos) and minetest.get_natural_light(vector.offset(pos,0,1,0), 0.5) == minetest.LIGHT_MAX + 1 and minetest.get_node_light(pos) < 10 then + if mcl_weather.has_snow(pos) and minetest.get_natural_light(vector.offset(pos,0,1,0), 0.5) == minetest.LIGHT_MAX + 1 and minetest.get_artificial_light(minetest.get_node(pos).param1) < 10 then node.name = "mcl_core:ice" minetest.swap_node(pos, node) end From 6c614d8376e3e461e644bee430e9e93835c9006b Mon Sep 17 00:00:00 2001 From: WillConker Date: Sat, 13 Jul 2024 12:30:39 +0200 Subject: [PATCH 6/7] Added line breaks in water freezing condition --- mods/ITEMS/mcl_core/functions.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index e66ce8db7..b520777d6 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -1458,7 +1458,9 @@ minetest.register_abm({ interval = 32, chance = 8, action = function(pos, node) - if mcl_weather.has_snow(pos) and minetest.get_natural_light(vector.offset(pos,0,1,0), 0.5) == minetest.LIGHT_MAX + 1 and minetest.get_artificial_light(minetest.get_node(pos).param1) < 10 then + if mcl_weather.has_snow(pos) + and minetest.get_natural_light(vector.offset(pos,0,1,0), 0.5) == minetest.LIGHT_MAX + 1 + and minetest.get_artificial_light(minetest.get_node(pos).param1) < 10 then node.name = "mcl_core:ice" minetest.swap_node(pos, node) end From 77382d930ee60a67116462f0c9d15a56e7f9255d Mon Sep 17 00:00:00 2001 From: kno10 Date: Sat, 3 Aug 2024 17:52:51 +0200 Subject: [PATCH 7/7] Typo in setting name, default should be false (#4492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4492 Reviewed-by: Mikita Wiśniewski Co-authored-by: kno10 Co-committed-by: kno10 --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- mods/ENTITIES/mcl_mobs/spawning.lua | 5 ++--- settingtypes.txt | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 1e49e8b4f..b3d1ac142 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -18,7 +18,7 @@ mcl_mobs.invis = {} local remove_far = true local mobs_debug = minetest.settings:get_bool("mobs_debug", false) -- Shows helpful debug info above each mob -local spawn_logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true) +local spawn_logging = minetest.settings:get_bool("mcl_logging_mobs_spawn", false) local MAPGEN_LIMIT = mcl_vars.mapgen_limit local MAPGEN_MOB_LIMIT = MAPGEN_LIMIT - 90 diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index 85b0ca3e5..b0b63ff39 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -34,9 +34,9 @@ local table_copy = table.copy local table_remove = table.remove local pairs = pairs -local LOGGING_ON = minetest.settings:get_bool("mcl_logging_mobs_spawning", false) +local logging = minetest.settings:get_bool("mcl_logging_mobs_spawn", false) local function mcl_log (message, property) - if LOGGING_ON then + if logging then if property then message = message .. ": " .. dump(property) end @@ -98,7 +98,6 @@ mcl_log("Percentage of hostile spawns are group: " .. hostile_group_percentage_s --do mobs spawn? local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= false local spawn_protected = minetest.settings:get_bool("mobs_spawn_protected") ~= false -local logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true) -- THIS IS THE BIG LIST OF ALL BIOMES - used for programming/updating mobs -- Also used for missing parameter diff --git a/settingtypes.txt b/settingtypes.txt index ac3399498..30a160427 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -329,13 +329,13 @@ give_starting_inv (Player Starter Pack) bool false mcl_item_id_debug (Item ID Debug) bool false #Log mob spawning and despawning events -mcl_logging_mobs_spawn (Log Mob Spawning) bool true +mcl_logging_mobs_spawn (Log Mob Spawning) bool false # If enabled mapgen timings will be dumped to log mcl_logging_mapgen (Chunk generation logging) bool false # If enabled generated structures will be logged -mcl_logging_structures (Structure generation logging) bool true +mcl_logging_structures (Structure generation logging) bool false #Complete debug logging for mcl_signs events. Use this if you have issues with signs. mcl_logging_mcl_signs (Complete debug logging for mcl_signs) bool false