From 5d11ef0c31494d856cec1d3fc6fa3617c7a870b4 Mon Sep 17 00:00:00 2001
From: kno10 <erich.schubert@gmail.com>
Date: Sat, 1 Mar 2025 16:15:00 +0100
Subject: [PATCH] Make ancient debris more available (#4954)

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4954
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
---
 mods/MAPGEN/mcl_mapgen_core/ores.lua       | 8 ++++----
 mods/MAPGEN/mcl_nether_fortresses/init.lua | 3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/mods/MAPGEN/mcl_mapgen_core/ores.lua b/mods/MAPGEN/mcl_mapgen_core/ores.lua
index 3eeaefef8..fdcaa288b 100644
--- a/mods/MAPGEN/mcl_mapgen_core/ores.lua
+++ b/mods/MAPGEN/mcl_mapgen_core/ores.lua
@@ -450,19 +450,19 @@ if minetest.settings:get_bool("mcl_generate_ores", true) then
 		ore_type       = "scatter",
 		ore            = "mcl_nether:ancient_debris",
 		wherein         = ancient_debris_wherein,
-		clust_scarcity = 25000, -- 0.004% chance
+		clust_scarcity = 12000, -- MC would be 25000, MCLA uses 15000, needs balancing
 		clust_num_ores = 3,
 		clust_size     = 3,
 		y_min = mcl_vars.mg_nether_min + 8,
 		y_max = mcl_vars.mg_nether_min + 22,
 	})
 
-		-- Rare spawn (below)
+	-- Rare spawn (below)
 	minetest.register_ore({
 		ore_type       = "scatter",
 		ore            = "mcl_nether:ancient_debris",
 		wherein         = ancient_debris_wherein,
-		clust_scarcity = 32000,
+		clust_scarcity = 20000,
 		clust_num_ores = 2,
 		clust_size     = 3,
 		y_min = mcl_vars.mg_nether_min,
@@ -474,7 +474,7 @@ if minetest.settings:get_bool("mcl_generate_ores", true) then
 		ore_type       = "scatter",
 		ore            = "mcl_nether:ancient_debris",
 		wherein         = ancient_debris_wherein,
-		clust_scarcity = 32000,
+		clust_scarcity = 20000,
 		clust_num_ores = 2,
 		clust_size     = 3,
 		y_min = mcl_vars.mg_nether_min + 22,
diff --git a/mods/MAPGEN/mcl_nether_fortresses/init.lua b/mods/MAPGEN/mcl_nether_fortresses/init.lua
index 84823d106..41e92b5bd 100644
--- a/mods/MAPGEN/mcl_nether_fortresses/init.lua
+++ b/mods/MAPGEN/mcl_nether_fortresses/init.lua
@@ -170,6 +170,9 @@ mcl_structures.register_structure("nether_bulwark",{
 				{ itemstring = "mcl_armor:chestplate_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
 				{ itemstring = "mcl_armor:leggings_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
 				{ itemstring = "mcl_armor:boots_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
+				{ itemstring = "mcl_nether:ancient_debris", weight = 12 }, -- same values as MCLA for now
+				{ itemstring = "mcl_nether:netherite_scrap", weight = 4 }, -- until this is rebalanced
+				{ itemstring = "mcl_nether:netherite_upgrade_template", weight = 8 },
 			}
 		},
 		{