From 17a1ad5017472dcacfd6ddcb801d4cb6053b7afd Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Sun, 2 Jan 2022 11:27:39 +0100 Subject: [PATCH 1/7] 'Fix incorrect tool_capabilities' from OgelGames (copied from main mod) --- init.lua | 56 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/init.lua b/init.lua index 69f5397..8119b40 100644 --- a/init.lua +++ b/init.lua @@ -178,32 +178,26 @@ local function add_ore(modname, description, mineral_name, oredef) inventory_image = toolimg_base .. tool_name .. ".png", tool_capabilities = { max_drop_level = 3, - groupcaps = tooldef, + groupcaps = tooldef.groupcaps, + damage_groups = tooldef.damage_groups, + full_punch_interval = oredef.full_punch_interval, }, sound = {breaks = "default_tool_breaks"}, } if tool_name == "sword" then - tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval - tdef.tool_capabilities.damage_groups = oredef.tools.sword.damage_groups tdef.description = S("@1 Sword", S(description)) end if tool_name == "pick" then - tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval - tdef.tool_capabilities.damage_groups = oredef.tools.pick.damage_groups tdef.description = S("@1 Pickaxe", S(description)) end if tool_name == "axe" then - tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval - tdef.tool_capabilities.damage_groups = oredef.tools.axe.damage_groups tdef.description = S("@1 Axe", S(description)) end if tool_name == "shovel" then - tdef.full_punch_interval = oredef.full_punch_interval - tdef.tool_capabilities.damage_groups = oredef.tools.shovel.damage_groups tdef.description = S("@1 Shovel", S(description)) tdef.wield_image = toolimg_base .. tool_name .. ".png^[transformR90" end @@ -211,7 +205,7 @@ local function add_ore(modname, description, mineral_name, oredef) local fulltool_name = tool_base .. tool_name .. tool_post if tool_name == "hoe" and minetest.get_modpath("farming") then - tdef.max_uses = tooldef.uses + tdef.max_uses = tooldef.max_uses tdef.description = S("@1 Hoe", S(description)) tdef.material = ingot farming.register_hoe(fulltool_name, tdef) @@ -260,30 +254,37 @@ local oredefs = { }, tools = { pick = { - cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel = 1}, - damage_groups = {fleshy = 4}, + groupcaps = { + cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel = 1}, + }, + damage_groups = {fleshy = 4}, }, hoe = { - uses = 300, + max_uses = 300, }, shovel = { - crumbly = {times = {[1] = 1.10, [2] = 0.40, [3] = 0.25}, uses = 100, maxlevel = 1}, - damage_groups = {fleshy = 3}, + groupcaps = { + crumbly = {times = {[1] = 1.10, [2] = 0.40, [3] = 0.25}, uses = 100, maxlevel = 1}, + }, + damage_groups = {fleshy = 3}, }, axe = { + groupcaps = { choppy = {times = {[1] = 2.50, [2] = 0.80, [3] = 0.50}, uses = 100, maxlevel = 1}, fleshy = {times = {[2] = 1.10, [3] = 0.60}, uses = 100, maxlevel = 1}, - damage_groups = {fleshy = 5}, + }, + damage_groups = {fleshy = 5}, }, sword = { + groupcaps = { fleshy = {times = {[2] = 0.70, [3] = 0.30}, uses = 100, maxlevel = 1}, snappy = {times = {[1] = 1.70, [2] = 0.70, [3] = 0.30}, uses = 100, maxlevel = 1}, choppy = {times = {[3] = 0.80}, uses = 100, maxlevel = 0}, - damage_groups = {fleshy = 6}, + }, + damage_groups = {fleshy = 6}, }, }, full_punch_interval = 1.0, - --damage_groups = {fleshy = 6}, }, mithril = { description = "Mithril", @@ -297,30 +298,37 @@ local oredefs = { }, tools = { pick = { + groupcaps = { cracky = {times = {[1] = 2, [2] = 1, [3] = 0.50}, uses = 300, maxlevel = 3}, - damage_groups = {fleshy = 6}, + }, + damage_groups = {fleshy = 6}, }, hoe = { - uses = 1500, + max_uses = 1500, }, shovel = { + groupcaps = { crumbly = {times = {[1] = 0.70, [2] = 0.35, [3] = 0.20}, uses = 200, maxlevel = 3}, - damage_groups = {fleshy = 5}, + }, + damage_groups = {fleshy = 5}, }, axe = { + groupcaps = { choppy = {times = {[1] = 1.75, [2] = 0.45, [3] = 0.45}, uses = 200, maxlevel = 3}, fleshy = {times = {[2] = 0.95, [3] = 0.30}, uses = 200, maxlevel = 2}, - damage_groups = {fleshy = 8}, + }, + damage_groups = {fleshy = 8}, }, sword = { + groupcaps = { fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 200, maxlevel = 2}, snappy = {times = {[1] = 1.70, [2] = 0.70, [3] = 0.25}, uses = 200, maxlevel = 3}, choppy = {times = {[3] = 0.65}, uses = 200, maxlevel = 0}, - damage_groups = {fleshy = 10}, + }, + damage_groups = {fleshy = 10}, }, }, full_punch_interval = 0.45, - --damage_groups = {fleshy = 9}, } } From 317ade9fc72fe042f35a30f0c4f6e2b13e882633 Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Sun, 2 Jan 2022 12:36:08 +0100 Subject: [PATCH 2/7] differentating blocks, minerals, cooktimes, mithril block level 4 and tnt resistent --- init.lua | 59 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/init.lua b/init.lua index 8119b40..ae08395 100644 --- a/init.lua +++ b/init.lua @@ -83,28 +83,25 @@ local function add_ore(modname, description, mineral_name, oredef) local ingot = item_base .. "_ingot" local lump_item = item_base .. "_lump" - if oredef.makes.ore then - minetest.register_node(modname .. ":mineral_" .. mineral_name, { - description = S("@1 Ore", S(description)), - tiles = {"default_stone.png^" .. modname .. "_mineral_" .. mineral_name .. ".png"}, - groups = {cracky = 2}, - sounds = default_stone_sounds, - drop = lump_item, - }) - + if oredef.mineral then + oredef.mineral.description = oredef.mineral.description or S("@1 Ore", S(description)) + oredef.mineral.tiles = oredef.mineral.tiles or {"default_stone.png^" .. modname .. "_mineral_" .. mineral_name .. ".png"} + oredef.mineral.groups = oredef.mineral.groups or {cracky = 2} + oredef.mineral.sounds = oredef.mineral.sounds or default_stone_sounds + oredef.mineral.drop = oredef.mineral.drop or lump_item + minetest.register_node(modname .. ":mineral_" .. mineral_name, oredef.mineral) if use_frame then frame.register(modname .. ":mineral_" .. mineral_name) end end - if oredef.makes.block then + if oredef.block then local block_item = item_base .. "_block" - minetest.register_node(block_item, { - description = S("@1 Block", S(description)), - tiles = {img_base .. "_block.png"}, - groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level = 2}, - sounds = default_metal_sounds, - }) + oredef.block.description = oredef.block.description or S("@1 Block", S(description)) + oredef.block.tiles = oredef.block.tiles or {img_base .. "_block.png"} + oredef.block.groups = oredef.block.groups or {cracky = 1, level = 2} + oredef.block.sounds = oredef.block.sounds or default_metal_sounds + minetest.register_node(block_item, oredef.block) minetest.register_alias(mineral_name.."_block", block_item) if oredef.makes.ingot then minetest.register_craft( { @@ -134,6 +131,7 @@ local function add_ore(modname, description, mineral_name, oredef) type = "cooking", output = ingot, recipe = lump_item, + cooktime = oredef.craftingot.cooktime, }) end if use_frame then @@ -244,7 +242,7 @@ end local oredefs = { silver = { description = "Silver", - makes = {ore = true, block = true, lump = true, ingot = true, chest = true}, + makes = {lump = true, ingot = true, chest = true}, oredef = { clust_scarcity = moreores.silver_chunk_size ^ 3, clust_num_ores = moreores.silver_ore_per_chunk, @@ -252,6 +250,9 @@ local oredefs = { y_min = moreores.silver_min_depth, y_max = moreores.silver_max_depth, }, + mineral = {groups = {cracky = 2}}, + block = {groups = {cracky = 1, level = 2}}, + craftingot = {cooktime = 2}, tools = { pick = { groupcaps = { @@ -288,7 +289,7 @@ local oredefs = { }, mithril = { description = "Mithril", - makes = {ore = true, block = true, lump = true, ingot = true, chest = false}, + makes = {lump = true, ingot = true, chest = false}, oredef = { clust_scarcity = moreores.mithril_chunk_size ^ 3, clust_num_ores = moreores.mithril_ore_per_chunk, @@ -296,10 +297,13 @@ local oredefs = { y_min = moreores.mithril_min_depth, y_max = moreores.mithril_max_depth, }, + mineral = {groups = {cracky = 1}}, + block = {groups = {cracky = 0, level = 4}, on_blast = function() end}, + craftingot = {cooktime = 10}, tools = { pick = { groupcaps = { - cracky = {times = {[1] = 2, [2] = 1, [3] = 0.50}, uses = 300, maxlevel = 3}, + cracky = {times = {[0] = 5.00, [1] = 1.90, [2] = 0.90, [3] = 0.45}, uses = 66, maxlevel = 4}, }, damage_groups = {fleshy = 6}, }, @@ -308,22 +312,22 @@ local oredefs = { }, shovel = { groupcaps = { - crumbly = {times = {[1] = 0.70, [2] = 0.35, [3] = 0.20}, uses = 200, maxlevel = 3}, + crumbly = {times = {[0] = 2.00, [1] = 1.00, [2] = 0.45, [3] = 0.25}, uses = 66, maxlevel = 4}, }, damage_groups = {fleshy = 5}, }, axe = { groupcaps = { - choppy = {times = {[1] = 1.75, [2] = 0.45, [3] = 0.45}, uses = 200, maxlevel = 3}, - fleshy = {times = {[2] = 0.95, [3] = 0.30}, uses = 200, maxlevel = 2}, + choppy = {times = {[0] = 3.00, [1] = 2.00, [2] = 0.80, [3] = 0.45}, uses = 66, maxlevel = 4}, + fleshy = {times = {[2] = 0.95, [3] = 0.30}, uses = 200, maxlevel = 2}, }, damage_groups = {fleshy = 8}, }, sword = { groupcaps = { - fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 200, maxlevel = 2}, - snappy = {times = {[1] = 1.70, [2] = 0.70, [3] = 0.25}, uses = 200, maxlevel = 3}, - choppy = {times = {[3] = 0.65}, uses = 200, maxlevel = 0}, + fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 66, maxlevel = 3}, + snappy = {times = {[0] = 3.00, [1] = 1.80, [2] = 0.80, [3] = 0.25}, uses = 66, maxlevel = 4}, + choppy = {times = {[3] = 0.65}, uses = 200, maxlevel = 0}, }, damage_groups = {fleshy = 10}, }, @@ -348,7 +352,7 @@ if default_tin then else oredefs.tin = { description = "Tin", - makes = {ore = true, block = true, lump = true, ingot = true, chest = false}, + makes = {lump = true, ingot = true, chest = false}, oredef = { clust_scarcity = moreores.tin_chunk_size ^ 3, clust_num_ores = moreores.tin_ore_per_chunk, @@ -356,6 +360,9 @@ else y_min = moreores.tin_min_depth, y_max = moreores.tin_max_depth, }, + mineral = {groups = {cracky = 2}}, + block = {groups = {cracky = 1, level = 2}}, + craftingot = {cooktime = 3}, tools = {}, } From b6972ad7352ad40494e3799a507f6f39c02d61fe Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Sun, 2 Jan 2022 13:16:04 +0100 Subject: [PATCH 3/7] adapt ore generation to default (3 layers and adapt depths) --- _config.txt | 54 +++++++++++++++++++++++++++++++++++++++-------------- init.lua | 44 ++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 81 insertions(+), 17 deletions(-) diff --git a/_config.txt b/_config.txt index 42e7b37..849df96 100644 --- a/_config.txt +++ b/_config.txt @@ -7,21 +7,47 @@ ------------------------------------------------------------------------------ -- Chunk sizes for ore generation (bigger = ore deposits are more scattered around) -moreores.tin_chunk_size = 7 -moreores.silver_chunk_size = 11 -moreores.mithril_chunk_size = 11 +moreores.tin_chunk_size = 10 +moreores.silver_chunk_size_high = 11 +moreores.silver_chunk_size = 13 +moreores.silver_chunk_size_deep = 11 +moreores.mithril_chunk_size_high = 19 +moreores.mithril_chunk_size = 21 +moreores.mithril_chunk_size_deep = 19 -- Amount of ore per chunk (higher = bigger ore deposits) -moreores.tin_ore_per_chunk = 3 -moreores.silver_ore_per_chunk = 4 -moreores.mithril_ore_per_chunk = 1 +moreores.tin_ore_per_chunk = 5 +moreores.silver_ore_per_chunk_high = 4 +moreores.silver_ore_per_chunk = 2 +moreores.silver_ore_per_chunk_deep = 4 +moreores.mithril_ore_per_chunk_high = 3 +moreores.mithril_ore_per_chunk = 2 +moreores.mithril_ore_per_chunk_deep = 4 --- Minimal depths of ore generation (Y coordinate, 0 being sea level by default) +-- Clust sizes for ore generation (bigger = ores in ore deposits are less bound together) +moreores.tin_clust_size = 3 +moreores.silver_clust_size_high = 3 +moreores.silver_clust_size = 3 +moreores.silver_clust_size_deep = 3 +moreores.mithril_clust_size_high = 3 +moreores.mithril_clust_size = 3 +moreores.mithril_clust_size_deep = 3 + +-- Maximal and minimal depths of ore generation (Y coordinate, 0 being sea level by default) +--Tin +moreores.tin_max_depth = -64 moreores.tin_min_depth = -31000 -moreores.silver_min_depth = -31000 -moreores.mithril_min_depth = -31000 - --- Maximal depths of ore generation (Y coordinate, 0 being sea level by default) -moreores.tin_max_depth = 8 -moreores.silver_max_depth = -2 -moreores.mithril_max_depth = -512 +--Silver +moreores.silver_max_depth_high = 31000 +moreores.silver_min_depth_high = 1025 +moreores.silver_max_depth = -64 --For v6 mapgen -32 fits better +moreores.silver_min_depth = -127 --For v6 mapgen -63 fits better +moreores.silver_max_depth_deep = -128 --For v6 mapgen -64 fits better +moreores.silver_min_depth_deep = -31000 +--Mithril +moreores.mithril_max_depth_high = 31000 +moreores.mithril_min_depth_high = 2049 +moreores.mithril_max_depth = -2048 --For v6 mapgen -256 fits better +moreores.mithril_min_depth = -4095 --For v6 mapgen -511 fits better +moreores.mithril_max_depth_deep = -4096 --For v6 mapgen -512 fits better +moreores.mithril_min_depth_deep = -31000 diff --git a/init.lua b/init.lua index ae08395..6a284b2 100644 --- a/init.lua +++ b/init.lua @@ -164,11 +164,21 @@ local function add_ore(modname, description, mineral_name, oredef) }) end + oredef.oredef_high.ore_type = "scatter" + oredef.oredef_high.ore = modname .. ":mineral_" .. mineral_name + oredef.oredef_high.wherein = "default:stone" + oredef.oredef.ore_type = "scatter" oredef.oredef.ore = modname .. ":mineral_" .. mineral_name oredef.oredef.wherein = "default:stone" - minetest.register_ore(oredef.oredef) + oredef.oredef_deep.ore_type = "scatter" + oredef.oredef_deep.ore = modname .. ":mineral_" .. mineral_name + oredef.oredef_deep.wherein = "default:stone" + + minetest.register_ore(oredef.oredef_high) + minetest.register_ore(oredef.oredef) + minetest.register_ore(oredef.oredef_deep) for tool_name, tooldef in pairs(oredef.tools) do local tdef = { @@ -243,13 +253,27 @@ local oredefs = { silver = { description = "Silver", makes = {lump = true, ingot = true, chest = true}, + oredef_high= { + clust_scarcity = moreores.silver_chunk_size_high ^ 3, + clust_num_ores = moreores.silver_ore_per_chunk_high, + clust_size = moreores.silver_clust_size_high, + y_min = moreores.silver_min_depth_high, + y_max = moreores.silver_max_depth_high, + }, oredef = { clust_scarcity = moreores.silver_chunk_size ^ 3, clust_num_ores = moreores.silver_ore_per_chunk, - clust_size = moreores.silver_chunk_size, + clust_size = moreores.silver_clust_size, y_min = moreores.silver_min_depth, y_max = moreores.silver_max_depth, }, + oredef_deep = { + clust_scarcity = moreores.silver_chunk_size_deep ^ 3, + clust_num_ores = moreores.silver_ore_per_chunk_deep, + clust_size = moreores.silver_clust_size_deep, + y_min = moreores.silver_min_depth_deep, + y_max = moreores.silver_max_depth_deep, + }, mineral = {groups = {cracky = 2}}, block = {groups = {cracky = 1, level = 2}}, craftingot = {cooktime = 2}, @@ -290,13 +314,27 @@ local oredefs = { mithril = { description = "Mithril", makes = {lump = true, ingot = true, chest = false}, + oredef_high = { + clust_scarcity = moreores.mithril_chunk_size_high ^ 3, + clust_num_ores = moreores.mithril_ore_per_chunk_high, + clust_size = moreores.mithril_clust_size_high, + y_min = moreores.mithril_min_depth_high, + y_max = moreores.mithril_max_depth_high, + }, oredef = { clust_scarcity = moreores.mithril_chunk_size ^ 3, clust_num_ores = moreores.mithril_ore_per_chunk, - clust_size = moreores.mithril_chunk_size, + clust_size = moreores.mithril_clust_size, y_min = moreores.mithril_min_depth, y_max = moreores.mithril_max_depth, }, + oredef_deep = { + clust_scarcity = moreores.mithril_chunk_size_deep ^ 3, + clust_num_ores = moreores.mithril_ore_per_chunk_deep, + clust_size = moreores.mithril_clust_size_deep, + y_min = moreores.mithril_min_depth_deep, + y_max = moreores.mithril_max_depth_deep, + }, mineral = {groups = {cracky = 1}}, block = {groups = {cracky = 0, level = 4}, on_blast = function() end}, craftingot = {cooktime = 10}, From ec169c3a2540cf3fa4c61a0f4bcd822f4560fc7c Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Sun, 2 Jan 2022 20:38:05 +0100 Subject: [PATCH 4/7] no group ranking 0, but level=5 and fine tuning digging times --- init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 6a284b2..e2527b4 100644 --- a/init.lua +++ b/init.lua @@ -336,12 +336,12 @@ local oredefs = { y_max = moreores.mithril_max_depth_deep, }, mineral = {groups = {cracky = 1}}, - block = {groups = {cracky = 0, level = 4}, on_blast = function() end}, + block = {groups = {cracky = 1, level = 5}, on_blast = function() end}, craftingot = {cooktime = 10}, tools = { pick = { groupcaps = { - cracky = {times = {[0] = 5.00, [1] = 1.90, [2] = 0.90, [3] = 0.45}, uses = 66, maxlevel = 4}, + cracky = {times = {[1] = 3.00, [2] = 1.40, [3] = 0.65}, uses = 34, maxlevel = 5}, }, damage_groups = {fleshy = 6}, }, @@ -350,21 +350,21 @@ local oredefs = { }, shovel = { groupcaps = { - crumbly = {times = {[0] = 2.00, [1] = 1.00, [2] = 0.45, [3] = 0.25}, uses = 66, maxlevel = 4}, + crumbly = {times = {[1] = 1.65, [2] = 0.70, [3] = 0.40}, uses = 34, maxlevel = 5}, }, damage_groups = {fleshy = 5}, }, axe = { groupcaps = { - choppy = {times = {[0] = 3.00, [1] = 2.00, [2] = 0.80, [3] = 0.45}, uses = 66, maxlevel = 4}, + choppy = {times = {[1] = 3.20, [2] = 1.20, [3] = 0.65}, uses = 34, maxlevel = 5}, fleshy = {times = {[2] = 0.95, [3] = 0.30}, uses = 200, maxlevel = 2}, }, damage_groups = {fleshy = 8}, }, sword = { groupcaps = { - fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 66, maxlevel = 3}, - snappy = {times = {[0] = 3.00, [1] = 1.80, [2] = 0.80, [3] = 0.25}, uses = 66, maxlevel = 4}, + fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 67, maxlevel = 3}, + snappy = {times = {[1] = 2.80, [2] = 1.20, [3] = 0.40}, uses = 34, maxlevel = 5}, choppy = {times = {[3] = 0.65}, uses = 200, maxlevel = 0}, }, damage_groups = {fleshy = 10}, From 2c4b265ae1a5d3fcb808a591b75be51dd1fae4f2 Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Mon, 3 Jan 2022 10:22:43 +0100 Subject: [PATCH 5/7] small space corrections --- _config.txt | 2 +- init.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.txt b/_config.txt index 849df96..0367895 100644 --- a/_config.txt +++ b/_config.txt @@ -38,7 +38,7 @@ moreores.mithril_clust_size_deep = 3 moreores.tin_max_depth = -64 moreores.tin_min_depth = -31000 --Silver -moreores.silver_max_depth_high = 31000 +moreores.silver_max_depth_high = 31000 moreores.silver_min_depth_high = 1025 moreores.silver_max_depth = -64 --For v6 mapgen -32 fits better moreores.silver_min_depth = -127 --For v6 mapgen -63 fits better diff --git a/init.lua b/init.lua index e2527b4..ea5a575 100644 --- a/init.lua +++ b/init.lua @@ -177,8 +177,8 @@ local function add_ore(modname, description, mineral_name, oredef) oredef.oredef_deep.wherein = "default:stone" minetest.register_ore(oredef.oredef_high) - minetest.register_ore(oredef.oredef) - minetest.register_ore(oredef.oredef_deep) + minetest.register_ore(oredef.oredef) + minetest.register_ore(oredef.oredef_deep) for tool_name, tooldef in pairs(oredef.tools) do local tdef = { From 0c9540998560b5c18f628b296ae24b38463fdd99 Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Mon, 3 Jan 2022 14:02:14 +0100 Subject: [PATCH 6/7] tin: fix 'clust_size' and adapt to default --- _config.txt | 41 ++++++++++++++++++++++++++++++++++------- init.lua | 16 +++++++++++++++- 2 files changed, 49 insertions(+), 8 deletions(-) diff --git a/_config.txt b/_config.txt index 0367895..c904a7e 100644 --- a/_config.txt +++ b/_config.txt @@ -7,44 +7,71 @@ ------------------------------------------------------------------------------ -- Chunk sizes for ore generation (bigger = ore deposits are more scattered around) -moreores.tin_chunk_size = 10 +-- Tin +moreores.tin_chunk_size_high = 10 +moreores.tin_chunk_size = 13 +moreores.tin_chunk_size_deep = 10 + +-- Silver moreores.silver_chunk_size_high = 11 moreores.silver_chunk_size = 13 moreores.silver_chunk_size_deep = 11 + +-- Mithril moreores.mithril_chunk_size_high = 19 moreores.mithril_chunk_size = 21 moreores.mithril_chunk_size_deep = 19 -- Amount of ore per chunk (higher = bigger ore deposits) -moreores.tin_ore_per_chunk = 5 +-- Tin +moreores.tin_ore_per_chunk_high = 5 +moreores.tin_ore_per_chunk = 4 +moreores.tin_ore_per_chunk_deep = 5 + +-- Silver moreores.silver_ore_per_chunk_high = 4 moreores.silver_ore_per_chunk = 2 moreores.silver_ore_per_chunk_deep = 4 + +-- Mithril moreores.mithril_ore_per_chunk_high = 3 moreores.mithril_ore_per_chunk = 2 moreores.mithril_ore_per_chunk_deep = 4 -- Clust sizes for ore generation (bigger = ores in ore deposits are less bound together) +-- Tin +moreores.tin_clust_size_high = 3 moreores.tin_clust_size = 3 +moreores.tin_clust_size_deep = 3 + +-- Silver moreores.silver_clust_size_high = 3 moreores.silver_clust_size = 3 moreores.silver_clust_size_deep = 3 + +-- Mithril moreores.mithril_clust_size_high = 3 moreores.mithril_clust_size = 3 moreores.mithril_clust_size_deep = 3 -- Maximal and minimal depths of ore generation (Y coordinate, 0 being sea level by default) ---Tin -moreores.tin_max_depth = -64 -moreores.tin_min_depth = -31000 ---Silver +-- Tin +moreores.tin_max_depth_high = 31000 +moreores.tin_min_depth_high = 1025 +moreores.tin_max_depth = -64 -- For v6 mapgen, -32 fits better +moreores.tin_min_depth = -127 +moreores.tin_max_depth_deep = -128 +moreores.tin_min_depth_deep = -31000 + +-- Silver moreores.silver_max_depth_high = 31000 moreores.silver_min_depth_high = 1025 moreores.silver_max_depth = -64 --For v6 mapgen -32 fits better moreores.silver_min_depth = -127 --For v6 mapgen -63 fits better moreores.silver_max_depth_deep = -128 --For v6 mapgen -64 fits better moreores.silver_min_depth_deep = -31000 ---Mithril + +-- Mithril moreores.mithril_max_depth_high = 31000 moreores.mithril_min_depth_high = 2049 moreores.mithril_max_depth = -2048 --For v6 mapgen -256 fits better diff --git a/init.lua b/init.lua index ea5a575..c6b42f3 100644 --- a/init.lua +++ b/init.lua @@ -391,13 +391,27 @@ else oredefs.tin = { description = "Tin", makes = {lump = true, ingot = true, chest = false}, + oredef_high = { + clust_scarcity = moreores.tin_chunk_size_high ^ 3, + clust_num_ores = moreores.tin_ore_per_chunk_high, + clust_size = moreores.tin_clust_size_high, + y_min = moreores.tin_min_depth_high, + y_max = moreores.tin_max_depth_high, + }, oredef = { clust_scarcity = moreores.tin_chunk_size ^ 3, clust_num_ores = moreores.tin_ore_per_chunk, - clust_size = moreores.tin_chunk_size, + clust_size = moreores.tin_clust_size, y_min = moreores.tin_min_depth, y_max = moreores.tin_max_depth, }, + oredef_deep = { + clust_scarcity = moreores.tin_chunk_size_deep ^ 3, + clust_num_ores = moreores.tin_ore_per_chunk_deep, + clust_size = moreores.tin_clust_size_deep, + y_min = moreores.tin_min_depth_deep, + y_max = moreores.tin_max_depth_deep, + }, mineral = {groups = {cracky = 2}}, block = {groups = {cracky = 1, level = 2}}, craftingot = {cooktime = 3}, From 8df45833ac26a27fc03d5eb613c9b2f64fa1c67c Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Mon, 3 Jan 2022 14:14:15 +0100 Subject: [PATCH 7/7] spacing and comma --- _config.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_config.txt b/_config.txt index c904a7e..0db26c8 100644 --- a/_config.txt +++ b/_config.txt @@ -66,15 +66,15 @@ moreores.tin_min_depth_deep = -31000 -- Silver moreores.silver_max_depth_high = 31000 moreores.silver_min_depth_high = 1025 -moreores.silver_max_depth = -64 --For v6 mapgen -32 fits better -moreores.silver_min_depth = -127 --For v6 mapgen -63 fits better -moreores.silver_max_depth_deep = -128 --For v6 mapgen -64 fits better +moreores.silver_max_depth = -64 -- For v6 mapgen, -32 fits better +moreores.silver_min_depth = -127 -- For v6 mapgen, -63 fits better +moreores.silver_max_depth_deep = -128 -- For v6 mapgen, -64 fits better moreores.silver_min_depth_deep = -31000 -- Mithril moreores.mithril_max_depth_high = 31000 moreores.mithril_min_depth_high = 2049 -moreores.mithril_max_depth = -2048 --For v6 mapgen -256 fits better -moreores.mithril_min_depth = -4095 --For v6 mapgen -511 fits better -moreores.mithril_max_depth_deep = -4096 --For v6 mapgen -512 fits better +moreores.mithril_max_depth = -2048 -- For v6 mapgen, -256 fits better +moreores.mithril_min_depth = -4095 -- For v6 mapgen, -511 fits better +moreores.mithril_max_depth_deep = -4096 -- For v6 mapgen, -512 fits better moreores.mithril_min_depth_deep = -31000