From 4b95185fbab603f55ec766e3f449589727ea27c4 Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 3 Jul 2022 22:24:12 +0200 Subject: [PATCH 1/4] make geodes less cube shaped (sometimes) --- mods/MAPGEN/mcl_structures/geode.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_structures/geode.lua b/mods/MAPGEN/mcl_structures/geode.lua index 1a2e8bedc..c8e59b5c9 100644 --- a/mods/MAPGEN/mcl_structures/geode.lua +++ b/mods/MAPGEN/mcl_structures/geode.lua @@ -26,7 +26,7 @@ local function makegeode(pos,def,pr) end) if not nn[1] then return end - for i=1,math.random(#nn) do + for i=1,pr:next(1,math.max(2,#nn - math.ceil(#nn/5) )) do set_node_no_bedrock(nn[i],{name="mcl_amethyst:amethyst_block"}) end From ea99341f940a745c5820bbe5c05497f7cc082a43 Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 3 Jul 2022 22:31:05 +0200 Subject: [PATCH 2/4] make geode inside smoother --- mods/MAPGEN/mcl_structures/geode.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_structures/geode.lua b/mods/MAPGEN/mcl_structures/geode.lua index c8e59b5c9..8bcd13310 100644 --- a/mods/MAPGEN/mcl_structures/geode.lua +++ b/mods/MAPGEN/mcl_structures/geode.lua @@ -43,7 +43,7 @@ local function makegeode(pos,def,pr) set_node_no_bedrock(v,{name="mcl_amethyst:budding_amethyst_block"}) end all_amethyst = false - elseif an.name ~= "mcl_amethyst:amethyst_block" and an.name ~= "air" then + elseif an.name ~= "mcl_amethyst:amethyst_block" and an.name ~= "air" and an.name ~= "mcl_amethyst:budding_amethyst_block" then all_amethyst = false end end From 889e72c50dd06da7dfef0af12a626f47f434d0c8 Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 4 Jul 2022 00:24:52 +0200 Subject: [PATCH 3/4] don't dig amethyst by water --- mods/ITEMS/mcl_amethyst/init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/mods/ITEMS/mcl_amethyst/init.lua b/mods/ITEMS/mcl_amethyst/init.lua index 0ee78de41..e43223a41 100644 --- a/mods/ITEMS/mcl_amethyst/init.lua +++ b/mods/ITEMS/mcl_amethyst/init.lua @@ -117,7 +117,6 @@ for _, def in pairs(bud_def) do walkable = false, light_source = def.light_source, groups = { - dig_by_water = 1, destroy_by_lava_flow = 1, dig_by_piston = 1, pickaxey = 1, @@ -162,7 +161,6 @@ minetest.register_node("mcl_amethyst:amethyst_cluster",{ walkable = false, light_source = 7, groups = { - dig_by_water = 1, destroy_by_lava_flow = 1, dig_by_piston = 1, pickaxey = 1, From daa95e3688879dd048a08c99c137608060b3e1de Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 5 Jul 2022 00:11:18 +0200 Subject: [PATCH 4/4] replace dirt and gravel too for even less clumps --- mods/MAPGEN/mcl_structures/geode.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_structures/geode.lua b/mods/MAPGEN/mcl_structures/geode.lua index 8bcd13310..95f9b0e81 100644 --- a/mods/MAPGEN/mcl_structures/geode.lua +++ b/mods/MAPGEN/mcl_structures/geode.lua @@ -20,7 +20,7 @@ local function makegeode(pos,def,pr) minetest.emerge_area(p1, p2, function(blockpos, action, calls_remaining, param) if calls_remaining ~= 0 then return end local calcite = {} - local nn = minetest.find_nodes_in_area(p1,p2,{"group:material_stone"}) + local nn = minetest.find_nodes_in_area(p1,p2,{"group:material_stone","group:dirt","mcl_core:gravel"}) table.sort(nn,function(a, b) return vector.distance(pos, a) < vector.distance(pos, b) end)