From bbb88e6387201ffa6d3231fe9ed9d1b619ace7a9 Mon Sep 17 00:00:00 2001 From: Paramat Date: Fri, 20 Apr 2018 20:13:16 +0100 Subject: [PATCH] Rebalance bronze and steel tools, swap ore depths Reduce bronze tool capabilities to be between stone and steel. Swap depths of iron ore and tin / copper ores for corresponding progression. --- mods/default/mapgen.lua | 80 ++++++++++++++-------------- mods/default/tools.lua | 114 ++++++++++++++++++++-------------------- 2 files changed, 97 insertions(+), 97 deletions(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 96bfd2d..6892743 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -556,41 +556,6 @@ function default.register_ores() y_min = -31000, }) - -- Iron - - minetest.register_ore({ - ore_type = "scatter", - ore = "default:stone_with_iron", - wherein = "default:stone", - clust_scarcity = 9 * 9 * 9, - clust_num_ores = 12, - clust_size = 3, - y_max = 31000, - y_min = 1025, - }) - - minetest.register_ore({ - ore_type = "scatter", - ore = "default:stone_with_iron", - wherein = "default:stone", - clust_scarcity = 7 * 7 * 7, - clust_num_ores = 5, - clust_size = 3, - y_max = -64, - y_min = -127, - }) - - minetest.register_ore({ - ore_type = "scatter", - ore = "default:stone_with_iron", - wherein = "default:stone", - clust_scarcity = 12 * 12 * 12, - clust_num_ores = 29, - clust_size = 5, - y_max = -128, - y_min = -31000, - }) - -- Tin minetest.register_ore({ @@ -611,8 +576,8 @@ function default.register_ores() clust_scarcity = 13 * 13 * 13, clust_num_ores = 4, clust_size = 3, - y_max = -128, - y_min = -255, + y_max = -64, + y_min = -127, }) minetest.register_ore({ @@ -622,7 +587,7 @@ function default.register_ores() clust_scarcity = 10 * 10 * 10, clust_num_ores = 5, clust_size = 3, - y_max = -256, + y_max = -128, y_min = -31000, }) @@ -646,8 +611,8 @@ function default.register_ores() clust_scarcity = 12 * 12 * 12, clust_num_ores = 4, clust_size = 3, - y_max = -128, - y_min = -255, + y_max = -64, + y_min = -127, }) minetest.register_ore({ @@ -657,6 +622,41 @@ function default.register_ores() clust_scarcity = 9 * 9 * 9, clust_num_ores = 5, clust_size = 3, + y_max = -128, + y_min = -31000, + }) + + -- Iron + + minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_iron", + wherein = "default:stone", + clust_scarcity = 9 * 9 * 9, + clust_num_ores = 12, + clust_size = 3, + y_max = 31000, + y_min = 1025, + }) + + minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_iron", + wherein = "default:stone", + clust_scarcity = 7 * 7 * 7, + clust_num_ores = 5, + clust_size = 3, + y_max = -128, + y_min = -255, + }) + + minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_iron", + wherein = "default:stone", + clust_scarcity = 12 * 12 * 12, + clust_num_ores = 29, + clust_size = 5, y_max = -256, y_min = -31000, }) diff --git a/mods/default/tools.lua b/mods/default/tools.lua index 067613d..9f503ed 100644 --- a/mods/default/tools.lua +++ b/mods/default/tools.lua @@ -50,6 +50,20 @@ minetest.register_tool("default:pick_stone", { sound = {breaks = "default_tool_breaks"}, }) +minetest.register_tool("default:pick_bronze", { + description = "Bronze Pickaxe", + inventory_image = "default_tool_bronzepick.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=1, + groupcaps={ + cracky = {times={[1]=4.50, [2]=1.80, [3]=0.90}, uses=20, maxlevel=2}, + }, + damage_groups = {fleshy=4}, + }, + sound = {breaks = "default_tool_breaks"}, +}) + minetest.register_tool("default:pick_steel", { description = "Steel Pickaxe", inventory_image = "default_tool_steelpick.png", @@ -64,20 +78,6 @@ minetest.register_tool("default:pick_steel", { sound = {breaks = "default_tool_breaks"}, }) -minetest.register_tool("default:pick_bronze", { - description = "Bronze Pickaxe", - inventory_image = "default_tool_bronzepick.png", - tool_capabilities = { - full_punch_interval = 1.0, - max_drop_level=1, - groupcaps={ - cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=30, maxlevel=2}, - }, - damage_groups = {fleshy=4}, - }, - sound = {breaks = "default_tool_breaks"}, -}) - minetest.register_tool("default:pick_mese", { description = "Mese Pickaxe", inventory_image = "default_tool_mesepick.png", @@ -141,6 +141,21 @@ minetest.register_tool("default:shovel_stone", { sound = {breaks = "default_tool_breaks"}, }) +minetest.register_tool("default:shovel_bronze", { + description = "Bronze Shovel", + inventory_image = "default_tool_bronzeshovel.png", + wield_image = "default_tool_bronzeshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.1, + max_drop_level=1, + groupcaps={ + crumbly = {times={[1]=1.65, [2]=1.05, [3]=0.45}, uses=25, maxlevel=2}, + }, + damage_groups = {fleshy=3}, + }, + sound = {breaks = "default_tool_breaks"}, +}) + minetest.register_tool("default:shovel_steel", { description = "Steel Shovel", inventory_image = "default_tool_steelshovel.png", @@ -156,21 +171,6 @@ minetest.register_tool("default:shovel_steel", { sound = {breaks = "default_tool_breaks"}, }) -minetest.register_tool("default:shovel_bronze", { - description = "Bronze Shovel", - inventory_image = "default_tool_bronzeshovel.png", - wield_image = "default_tool_bronzeshovel.png^[transformR90", - tool_capabilities = { - full_punch_interval = 1.1, - max_drop_level=1, - groupcaps={ - crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=40, maxlevel=2}, - }, - damage_groups = {fleshy=3}, - }, - sound = {breaks = "default_tool_breaks"}, -}) - minetest.register_tool("default:shovel_mese", { description = "Mese Shovel", inventory_image = "default_tool_meseshovel.png", @@ -234,6 +234,20 @@ minetest.register_tool("default:axe_stone", { sound = {breaks = "default_tool_breaks"}, }) +minetest.register_tool("default:axe_bronze", { + description = "Bronze Axe", + inventory_image = "default_tool_bronzeaxe.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=1, + groupcaps={ + choppy={times={[1]=2.75, [2]=1.70, [3]=1.15}, uses=20, maxlevel=2}, + }, + damage_groups = {fleshy=4}, + }, + sound = {breaks = "default_tool_breaks"}, +}) + minetest.register_tool("default:axe_steel", { description = "Steel Axe", inventory_image = "default_tool_steelaxe.png", @@ -248,20 +262,6 @@ minetest.register_tool("default:axe_steel", { sound = {breaks = "default_tool_breaks"}, }) -minetest.register_tool("default:axe_bronze", { - description = "Bronze Axe", - inventory_image = "default_tool_bronzeaxe.png", - tool_capabilities = { - full_punch_interval = 1.0, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=30, maxlevel=2}, - }, - damage_groups = {fleshy=4}, - }, - sound = {breaks = "default_tool_breaks"}, -}) - minetest.register_tool("default:axe_mese", { description = "Mese Axe", inventory_image = "default_tool_meseaxe.png", @@ -323,6 +323,20 @@ minetest.register_tool("default:sword_stone", { sound = {breaks = "default_tool_breaks"}, }) +minetest.register_tool("default:sword_bronze", { + description = "Bronze Sword", + inventory_image = "default_tool_bronzesword.png", + tool_capabilities = { + full_punch_interval = 0.8, + max_drop_level=1, + groupcaps={ + snappy={times={[1]=2.75, [2]=1.30, [3]=0.375}, uses=25, maxlevel=2}, + }, + damage_groups = {fleshy=6}, + }, + sound = {breaks = "default_tool_breaks"}, +}) + minetest.register_tool("default:sword_steel", { description = "Steel Sword", inventory_image = "default_tool_steelsword.png", @@ -337,20 +351,6 @@ minetest.register_tool("default:sword_steel", { sound = {breaks = "default_tool_breaks"}, }) -minetest.register_tool("default:sword_bronze", { - description = "Bronze Sword", - inventory_image = "default_tool_bronzesword.png", - tool_capabilities = { - full_punch_interval = 0.8, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=40, maxlevel=2}, - }, - damage_groups = {fleshy=6}, - }, - sound = {breaks = "default_tool_breaks"}, -}) - minetest.register_tool("default:sword_mese", { description = "Mese Sword", inventory_image = "default_tool_mesesword.png",