From 96d3c3ba4aac47ca6de88b420bff4efe7c56e8b1 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:03:19 -0600 Subject: [PATCH 01/29] Update mod.conf Title and dependencies added. --- mod.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod.conf b/mod.conf index 9cf9080..7c929f4 100644 --- a/mod.conf +++ b/mod.conf @@ -1 +1,3 @@ -name = rainbow_source \ No newline at end of file +name = rainbow_source +title = Rainbow Source +depends = default From 180772f17828a71cfa7a37a980cae0293ac75ff9 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:13:35 -0600 Subject: [PATCH 02/29] Update and rename license.txt to LICENSE.md License added to line 1 so GitHub will recognize it. File restructured into Markdown file --- license.txt => LICENSE.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename license.txt => LICENSE.md (96%) diff --git a/license.txt b/LICENSE.md similarity index 96% rename from license.txt rename to LICENSE.md index 15e0356..f510f77 100644 --- a/license.txt +++ b/LICENSE.md @@ -1,5 +1,6 @@ +# MIT license -Textures: +## Textures rs_water.png Based on default_water.png by Cisoun from minetest_game (CC BY-SA 3.0). @@ -7,7 +8,7 @@ rs_water_flowing_animated.png and rs_water_source_animated.png Based on textures by RealBadAngel from minetest_game (CC BY-SA 3.0). -Code: +## Code License: MIT (https://opensource.org/licenses/MIT) By Shara RedCat @@ -36,4 +37,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file +THE SOFTWARE. From 6a5d35d2086b1619d8c61e285f658bbdc1001d23 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:15:07 -0600 Subject: [PATCH 03/29] Update LICENSE.md --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index f510f77..bba6d99 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -# MIT license +# MIT License ## Textures rs_water.png From cfdca1fcce93a22ffcee725f668025ee763a46b6 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:08:06 -0600 Subject: [PATCH 04/29] Update init.lua Depreciated "alpha" node definition updated to "use_texture_alpha". Technic radiation_resistance group added. --- init.lua | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/init.lua b/init.lua index 2bc83d0..dcc04c3 100644 --- a/init.lua +++ b/init.lua @@ -18,7 +18,7 @@ for i in ipairs(source_list) do local colour = source_list[i][3] local red = source_list[i][4] local green = source_list[i][5] - local blue = source_list[i][6] + local blue = source_list[i][6] minetest.register_node("rainbow_source:"..name.."_water_source", { description = description.." Water Source", @@ -46,7 +46,7 @@ for i in ipairs(source_list) do backface_culling = false, }, }, - alpha = 160, + use_texture_alpha = "blend", paramtype = "light", walkable = false, pointable = false, @@ -60,7 +60,8 @@ for i in ipairs(source_list) do liquid_alternative_source = "rainbow_source:"..name.."_water_source", liquid_viscosity = 1, post_effect_color = {a = 50, r = red, g = green, b = blue}, - groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1}, + groups = {water = 3, liquid = 3, puts_out_fire = 1, + cools_lava = 1, rad_resistance = 5.6}, sounds = default.node_sound_water_defaults(), }) @@ -90,7 +91,7 @@ for i in ipairs(source_list) do }, }, }, - alpha = 160, + use_texture_alpha = "blend", paramtype = "light", paramtype2 = "flowingliquid", walkable = false, @@ -105,16 +106,8 @@ for i in ipairs(source_list) do liquid_alternative_source = "rainbow_source:"..name.."_water_source", liquid_viscosity = 1, post_effect_color = {a = 50, r = red, g = green, b = blue}, - groups = {water = 3, liquid = 3, puts_out_fire = 1, + groups = {water = 3, liquid = 3, puts_out_fire = 1, rad_resistance = 2.8, not_in_creative_inventory = 1, cools_lava = 1}, sounds = default.node_sound_water_defaults(), }) - - - - - - - - end From efc703903a613740256234f39868464ffdec4b08 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:22:51 -0600 Subject: [PATCH 05/29] Update mod.conf --- mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mod.conf b/mod.conf index 7c929f4..99644e9 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,4 @@ name = rainbow_source title = Rainbow Source depends = default +min_minetest_version = 5.7.0 From 8b2045f52d1ae15ff64d737009823cbb37e0c16a Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:02:46 -0600 Subject: [PATCH 06/29] Update init.lua Buckets added. --- init.lua | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index dcc04c3..aca4f07 100644 --- a/init.lua +++ b/init.lua @@ -1,15 +1,15 @@ local source_list = { - {"black", "Darkened", "292421", 40, 36, 33}, + {"black", "Darkened", "292421", 40, 36, 33}, {"blue", "Blue", "0000FF", 0, 0, 255}, - {"cyan", "Cyan", "00FFFF", 0, 255, 255}, - {"green", "Green", "00FF00", 0, 255, 0}, - {"magenta", "Magenta", "FF00FF", 255, 0, 255}, - {"orange", "Orange", "FF6103", 255, 97, 3}, - {"purple", "Purple", "800080", 128, 0, 128}, - {"red", "Red", "FF0000", 255, 0, 0}, - {"yellow", "Yellow", "FFFF00", 255, 255, 0}, - {"frosted", "Frosted", "FFFFFF", 255, 255, 255} + {"cyan", "Cyan", "00FFFF", 0, 255, 255, "turquoise"}, + {"green", "Green", "00FF00", 0, 255, 0}, + {"magenta", "Magenta", "FF00FF", 255, 0, 255}, + {"orange", "Orange", "FF6103", 255, 97, 3}, + {"purple", "Purple", "800080", 128, 0, 128, "violet"}, + {"red", "Red", "FF0000", 255, 0, 0}, + {"yellow", "Yellow", "FFFF00", 255, 255, 0}, + {"frosted", "Frosted", "FFFFFF", 255, 255, 255, "white"} } for i in ipairs(source_list) do @@ -19,6 +19,7 @@ for i in ipairs(source_list) do local red = source_list[i][4] local green = source_list[i][5] local blue = source_list[i][6] + local dye = source_list[i][7] or name minetest.register_node("rainbow_source:"..name.."_water_source", { description = description.." Water Source", @@ -110,4 +111,25 @@ for i in ipairs(source_list) do not_in_creative_inventory = 1, cools_lava = 1}, sounds = default.node_sound_water_defaults(), }) + + if minetest.get_modpath("fluid_lib") and minetest.get_modpath("bucket") then + bucket.register_liquid( + "rainbow_source:"..name.."_water_source", + "rainbow_source:"..name.."_water_flowing", + "rainbow_source:bucket_"..name.."_water", + "#"..colour, + description.." Water Bucket", + {water_bucket = 1} + ) + + if minetest.get_modpath("dye") then + minetest.register_craft({ + output = "rainbow_source:bucket_"..name.."_water", + recipe = { + {"dye:"..dye}, + {"group:water_bucket"} + } + }) + end + end end From 14edc2ef3b93ca2d5ca85e3c7835ef8f051a88a1 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 23 Nov 2024 11:13:59 -0600 Subject: [PATCH 07/29] Update mod.conf Optional dependencies added. --- mod.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod.conf b/mod.conf index 99644e9..d92f441 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,5 @@ name = rainbow_source title = Rainbow Source depends = default -min_minetest_version = 5.7.0 +optional_depends = fluid_lib, bucket, dye +min_minetest_version = 5.7 From b3c90c9736e0571880f8ff73be91d2f61f4e198d Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 23 Nov 2024 11:25:19 -0600 Subject: [PATCH 08/29] Update mod.conf Apparently use_texture_alpha replaced alpha much earlier than I thought. --- mod.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.conf b/mod.conf index d92f441..a1fd838 100644 --- a/mod.conf +++ b/mod.conf @@ -2,4 +2,4 @@ name = rainbow_source title = Rainbow Source depends = default optional_depends = fluid_lib, bucket, dye -min_minetest_version = 5.7 +min_minetest_version = 5.4 From 24697ea56d419e881f51e0d2715bf38d6d3c9996 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 23 Nov 2024 11:27:20 -0600 Subject: [PATCH 09/29] Update mod.conf I thought I added the description already. --- mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mod.conf b/mod.conf index a1fd838..d70044f 100644 --- a/mod.conf +++ b/mod.conf @@ -1,5 +1,6 @@ name = rainbow_source title = Rainbow Source +description = Adds coloured water. depends = default optional_depends = fluid_lib, bucket, dye min_minetest_version = 5.4 From 3e5017613b154853f337b658e8964818e2600d88 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 23 Nov 2024 21:55:30 -0600 Subject: [PATCH 10/29] Update mod.conf Minetest Game is supported. --- mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mod.conf b/mod.conf index d70044f..9fe24de 100644 --- a/mod.conf +++ b/mod.conf @@ -4,3 +4,4 @@ description = Adds coloured water. depends = default optional_depends = fluid_lib, bucket, dye min_minetest_version = 5.4 +supported_games = minetest_game From 0c0e596b2d6178dc75ba231018ab4caa7bd9c9e3 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:00:12 -0600 Subject: [PATCH 11/29] Update init.lua Minetest is now called Luanti, so the "core" table should be used instead. --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index aca4f07..945f066 100644 --- a/init.lua +++ b/init.lua @@ -21,7 +21,7 @@ for i in ipairs(source_list) do local blue = source_list[i][6] local dye = source_list[i][7] or name - minetest.register_node("rainbow_source:"..name.."_water_source", { + core.register_node("rainbow_source:"..name.."_water_source", { description = description.." Water Source", drawtype = "liquid", tiles = { @@ -66,7 +66,7 @@ for i in ipairs(source_list) do sounds = default.node_sound_water_defaults(), }) - minetest.register_node("rainbow_source:"..name.."_water_flowing", { + core.register_node("rainbow_source:"..name.."_water_flowing", { description = description.." Flowing Water", drawtype = "flowingliquid", tiles = {"rs_water.png^[colorize:#"..colour}, @@ -112,7 +112,7 @@ for i in ipairs(source_list) do sounds = default.node_sound_water_defaults(), }) - if minetest.get_modpath("fluid_lib") and minetest.get_modpath("bucket") then + if core.get_modpath("fluid_lib") and core.get_modpath("bucket") then bucket.register_liquid( "rainbow_source:"..name.."_water_source", "rainbow_source:"..name.."_water_flowing", @@ -122,8 +122,8 @@ for i in ipairs(source_list) do {water_bucket = 1} ) - if minetest.get_modpath("dye") then - minetest.register_craft({ + if core.get_modpath("dye") then + core.register_craft({ output = "rainbow_source:bucket_"..name.."_water", recipe = { {"dye:"..dye}, From 5b132a3c1ce6300e1e8233bb420f8f2929dd3ac9 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Thu, 22 May 2025 12:15:23 -0500 Subject: [PATCH 12/29] Update mod.conf Bucket renamed to bucket_compat. --- mod.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.conf b/mod.conf index 9fe24de..817e1f3 100644 --- a/mod.conf +++ b/mod.conf @@ -2,6 +2,6 @@ name = rainbow_source title = Rainbow Source description = Adds coloured water. depends = default -optional_depends = fluid_lib, bucket, dye +optional_depends = fluid_lib, bucket_compat, dye min_minetest_version = 5.4 supported_games = minetest_game From 9a4e42556b26cf8e5fb9e724c062e3a693c2cd5c Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 08:56:30 -0500 Subject: [PATCH 13/29] Update init.lua Bucket mod name updated and unused "rad_resistance" group removed. --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 945f066..5919b29 100644 --- a/init.lua +++ b/init.lua @@ -62,7 +62,7 @@ for i in ipairs(source_list) do liquid_viscosity = 1, post_effect_color = {a = 50, r = red, g = green, b = blue}, groups = {water = 3, liquid = 3, puts_out_fire = 1, - cools_lava = 1, rad_resistance = 5.6}, + cools_lava = 1}, sounds = default.node_sound_water_defaults(), }) @@ -107,12 +107,12 @@ for i in ipairs(source_list) do liquid_alternative_source = "rainbow_source:"..name.."_water_source", liquid_viscosity = 1, post_effect_color = {a = 50, r = red, g = green, b = blue}, - groups = {water = 3, liquid = 3, puts_out_fire = 1, rad_resistance = 2.8, + groups = {water = 3, liquid = 3, puts_out_fire = 1, not_in_creative_inventory = 1, cools_lava = 1}, sounds = default.node_sound_water_defaults(), }) - if core.get_modpath("fluid_lib") and core.get_modpath("bucket") then + if core.get_modpath("fluid_lib") and core.get_modpath("bucket_compat") then bucket.register_liquid( "rainbow_source:"..name.."_water_source", "rainbow_source:"..name.."_water_flowing", From bbb478716f03b422330c7844293a2fb2bfb4fe90 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 09:28:37 -0500 Subject: [PATCH 14/29] Update init.lua Specified what code is mine. --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 5919b29..edff9c4 100644 --- a/init.lua +++ b/init.lua @@ -112,6 +112,7 @@ for i in ipairs(source_list) do sounds = default.node_sound_water_defaults(), }) + --Buckets (new feature by DustyDave961) if core.get_modpath("fluid_lib") and core.get_modpath("bucket_compat") then bucket.register_liquid( "rainbow_source:"..name.."_water_source", From eef8575a2b58276cb184efa1e2929a7467e934c2 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 09:45:08 -0500 Subject: [PATCH 15/29] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..17fc437 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Fork of Rainbow Source by Shara compatibile with Luanti versions after 5.4.0. I also added craftable water buckets for each water color. Unfortunately, I'm bad at making textures, so for now fluid_lib is required for the buckets. From 4951a06f51cf01f79861349aa6a6c183b5a225a2 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 10:29:56 -0500 Subject: [PATCH 16/29] Update init.lua Only bucket_compat is needed for buckets. Cyan bucket recipe fixed. --- init.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index edff9c4..2caf864 100644 --- a/init.lua +++ b/init.lua @@ -1,8 +1,7 @@ - local source_list = { {"black", "Darkened", "292421", 40, 36, 33}, {"blue", "Blue", "0000FF", 0, 0, 255}, - {"cyan", "Cyan", "00FFFF", 0, 255, 255, "turquoise"}, + {"cyan", "Cyan", "00FFFF", 0, 255, 255}, {"green", "Green", "00FF00", 0, 255, 0}, {"magenta", "Magenta", "FF00FF", 255, 0, 255}, {"orange", "Orange", "FF6103", 255, 97, 3}, @@ -113,8 +112,8 @@ for i in ipairs(source_list) do }) --Buckets (new feature by DustyDave961) - if core.get_modpath("fluid_lib") and core.get_modpath("bucket_compat") then - bucket.register_liquid( + if core.get_modpath("bucket_compat") then + fluid_lib.register_liquid( "rainbow_source:"..name.."_water_source", "rainbow_source:"..name.."_water_flowing", "rainbow_source:bucket_"..name.."_water", From e90ee2324078913f52c668be34e9e750f8c3ea71 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 10:35:23 -0500 Subject: [PATCH 17/29] Update mod.conf --- mod.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.conf b/mod.conf index 817e1f3..c7c8622 100644 --- a/mod.conf +++ b/mod.conf @@ -1,7 +1,7 @@ name = rainbow_source title = Rainbow Source -description = Adds coloured water. +description = Adds coloured water. Fork with buckets and compatibility fixes. depends = default -optional_depends = fluid_lib, bucket_compat, dye +optional_depends = bucket_compat, dye min_minetest_version = 5.4 supported_games = minetest_game From 58fbcd034b0f974defa4e2ee1d671e364b46731f Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 10:50:44 -0500 Subject: [PATCH 18/29] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17fc437..1221c46 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Fork of Rainbow Source by Shara compatibile with Luanti versions after 5.4.0. I also added craftable water buckets for each water color. Unfortunately, I'm bad at making textures, so for now fluid_lib is required for the buckets. +Fork of Rainbow Source by Shara compatibile with Luanti versions after 5.4.0. I also added craftable buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for the buckets. From 6d9822c35fbe51bd6886834671c1ac7be11c9188 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 11:21:30 -0500 Subject: [PATCH 19/29] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1221c46..2a108b3 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Fork of Rainbow Source by Shara compatibile with Luanti versions after 5.4.0. I also added craftable buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for the buckets. +Adds coloured water. This Fork of Rainbow Source by Shara is compatibile with Luanti versions after 5.4.0. I also added craftable buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for the buckets. All content contained in this mod is under the MIT License. From d27e48f0cd8ebaa9f7d293da4ce54007fe40ed57 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 11:36:51 -0500 Subject: [PATCH 20/29] Delete depends.txt --- depends.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 depends.txt diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 331d858..0000000 --- a/depends.txt +++ /dev/null @@ -1 +0,0 @@ -default \ No newline at end of file From 98c78124045c0a18cb04b6c9daa775a499e1266a Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sat, 18 Apr 2026 11:37:05 -0500 Subject: [PATCH 21/29] Delete description.txt --- description.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 description.txt diff --git a/description.txt b/description.txt deleted file mode 100644 index b29356e..0000000 --- a/description.txt +++ /dev/null @@ -1 +0,0 @@ -Adds coloured water. \ No newline at end of file From ec121ad49df18a5a41cca5d4712d39413bd6fa14 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Mon, 20 Apr 2026 18:26:10 -0500 Subject: [PATCH 22/29] Update mod.conf Title and description now specify this is a fork more clearly. --- mod.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.conf b/mod.conf index c7c8622..ef27011 100644 --- a/mod.conf +++ b/mod.conf @@ -1,6 +1,6 @@ name = rainbow_source -title = Rainbow Source -description = Adds coloured water. Fork with buckets and compatibility fixes. +title = Rainbow Source Redo +description = Fork of Rainbow Source by Shara. Adds coloured water buckets. depends = default optional_depends = bucket_compat, dye min_minetest_version = 5.4 From 4a530663db20f8879f8a28763c663f2b6860215e Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Fri, 1 May 2026 14:00:01 -0500 Subject: [PATCH 23/29] Update mod.conf --- mod.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.conf b/mod.conf index ef27011..f107a39 100644 --- a/mod.conf +++ b/mod.conf @@ -1,7 +1,7 @@ name = rainbow_source title = Rainbow Source Redo -description = Fork of Rainbow Source by Shara. Adds coloured water buckets. +description = Fork of Rainbow Source by Shara. Adds coloured water and buckets. depends = default -optional_depends = bucket_compat, dye +optional_depends = bucket_compat, dye, bucket min_minetest_version = 5.4 supported_games = minetest_game From 9dc843dca6a1a1a25ac1806e101c74594d131326 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Fri, 1 May 2026 14:40:40 -0500 Subject: [PATCH 24/29] Update init.lua Blue and orange buckets no longer require bucket_compat. Bucket crafting made into a setting disabled by default. --- init.lua | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 2caf864..0e572b3 100644 --- a/init.lua +++ b/init.lua @@ -119,10 +119,10 @@ for i in ipairs(source_list) do "rainbow_source:bucket_"..name.."_water", "#"..colour, description.." Water Bucket", - {water_bucket = 1} + {tool = 1, water_bucket = 1} ) - if core.get_modpath("dye") then + if core.get_modpath("dye") and core.settings:get_bool("enable_colored_bucket_crafts") then core.register_craft({ output = "rainbow_source:bucket_"..name.."_water", recipe = { @@ -131,5 +131,23 @@ for i in ipairs(source_list) do } }) end + elseif core.get_modpath("bucket") then + bucket.register_liquid( + "rainbow_source:blue_water_source", + "rainbow_source:blue_water_flowing", + "rainbow_source:bucket_blue_water", + "bucket_water.png", + "Blue Water Bucket", + {tool = 1, water_bucket = 1} + ) + + bucket.register_liquid( + "rainbow_source:orange_water_source", + "rainbow_source:orange_water_flowing", + "rainbow_source:bucket_orange_water", + "bucket_lava.png", + "Orange Water Bucket", + {tool = 1, water_bucket = 1} + ) end end From 76b6135a477b85b3e63f1e8e7c673959f19d05ac Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Fri, 1 May 2026 14:43:09 -0500 Subject: [PATCH 25/29] Add files via upload --- settingtypes.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 settingtypes.txt diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..31a797f --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1 @@ +enable_colored_bucket_crafts (Craft colored water buckets.) bool false \ No newline at end of file From 71456f28d2617c4d156b1ae65d0b93ee5b7d93fe Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Fri, 1 May 2026 14:43:52 -0500 Subject: [PATCH 26/29] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a108b3..0237e68 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Adds coloured water. This Fork of Rainbow Source by Shara is compatibile with Luanti versions after 5.4.0. I also added craftable buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for the buckets. All content contained in this mod is under the MIT License. +Adds coloured water. This Fork of Rainbow Source by Shara is compatibile with Luanti versions after 5.4.0. I also added craftable buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for most buckets. All content contained in this mod is under the MIT License. From cbfece4a174aacc3bd54aec5b4e99cd4461709fe Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Fri, 1 May 2026 14:45:48 -0500 Subject: [PATCH 27/29] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0237e68..86fbe22 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Adds coloured water. This Fork of Rainbow Source by Shara is compatibile with Luanti versions after 5.4.0. I also added craftable buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for most buckets. All content contained in this mod is under the MIT License. +Adds coloured water. This Fork of Rainbow Source by Shara is compatibile with Luanti versions after 5.4.0. I also added buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for most buckets. Bucket crafting recipes are a Setting that is disabled by default. All content contained in this mod is under the MIT License. From c69a0cecc1b35b830213ea3ff982249b3550ab17 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Fri, 1 May 2026 14:56:49 -0500 Subject: [PATCH 28/29] Update init.lua Comments added. --- init.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 0e572b3..458306a 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,4 @@ +--Water definitions local source_list = { {"black", "Darkened", "292421", 40, 36, 33}, {"blue", "Blue", "0000FF", 0, 0, 255}, @@ -20,6 +21,7 @@ for i in ipairs(source_list) do local blue = source_list[i][6] local dye = source_list[i][7] or name + --Register water source nodes core.register_node("rainbow_source:"..name.."_water_source", { description = description.." Water Source", drawtype = "liquid", @@ -65,6 +67,7 @@ for i in ipairs(source_list) do sounds = default.node_sound_water_defaults(), }) + --Register flowing water nodes core.register_node("rainbow_source:"..name.."_water_flowing", { description = description.." Flowing Water", drawtype = "flowingliquid", @@ -111,7 +114,11 @@ for i in ipairs(source_list) do sounds = default.node_sound_water_defaults(), }) - --Buckets (new feature by DustyDave961) + --[[------------------------------------- + --Buckets (new feature by DustyDave961)-- + ---------------------------------------]] + + --Register buckets with fluid_lib function if core.get_modpath("bucket_compat") then fluid_lib.register_liquid( "rainbow_source:"..name.."_water_source", @@ -121,7 +128,8 @@ for i in ipairs(source_list) do description.." Water Bucket", {tool = 1, water_bucket = 1} ) - + + --Register crafting recipes if dye is present and crafting setting is enabled if core.get_modpath("dye") and core.settings:get_bool("enable_colored_bucket_crafts") then core.register_craft({ output = "rainbow_source:bucket_"..name.."_water", @@ -131,6 +139,7 @@ for i in ipairs(source_list) do } }) end + --Add buckets even without bucket_compat elseif core.get_modpath("bucket") then bucket.register_liquid( "rainbow_source:blue_water_source", From 3b9880d7de9a9c6452ee473f850fdf0a77e37ed3 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Thu, 14 May 2026 23:29:28 -0500 Subject: [PATCH 29/29] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 86fbe22..7d85d4e 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Adds coloured water. This Fork of Rainbow Source by Shara is compatibile with Luanti versions after 5.4.0. I also added buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for most buckets. Bucket crafting recipes are a Setting that is disabled by default. All content contained in this mod is under the MIT License. +Adds coloured water. This Fork of Rainbow Source by Shara is compatible with Luanti versions after 5.4.0. I also added buckets for each water color. Unfortunately, I'm bad at making textures, so for now bucket_compat from fluid_lib by IcyDiamond is required for most buckets. Bucket crafting recipes are a Setting that is disabled by default. All content contained in this mod is under the MIT License.