From 4b95185fbab603f55ec766e3f449589727ea27c4 Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 3 Jul 2022 22:24:12 +0200 Subject: [PATCH] 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