From c644d12c8bffad25b24282d744f6b33b647a2848 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Sun, 30 Jun 2019 17:10:39 +0200 Subject: [PATCH] balanced solution --- init.lua | 1 + ores.lua | 36 ++++++++++++------------------------ stone.lua | 8 ++++++++ 3 files changed, 21 insertions(+), 24 deletions(-) create mode 100644 stone.lua diff --git a/init.lua b/init.lua index 916973f..67e4c3a 100644 --- a/init.lua +++ b/init.lua @@ -9,6 +9,7 @@ planetoids = { local MP = minetest.get_modpath("planetoids") +dofile(MP.."/stone.lua") dofile(MP.."/ores.lua") dofile(MP.."/mapgen_oreplanet.lua") dofile(MP.."/mapgen.lua") diff --git a/ores.lua b/ores.lua index 5ff9a9f..5c333a2 100644 --- a/ores.lua +++ b/ores.lua @@ -1,23 +1,13 @@ local has_technic_mod = minetest.get_modpath("technic") -minetest.register_ore({ - ore_type = "scatter", - ore = "default:stone_with_coal", - wherein = "default:stone", - clust_scarcity = 24 * 24 * 24, - clust_num_ores = 27, - clust_size = 6, - y_max = planetoids.maxy, - y_min = planetoids.miny, -}) minetest.register_ore({ ore_type = "scatter", ore = "default:stone_with_iron", wherein = "default:stone", clust_scarcity = 24 * 24 * 24, - clust_num_ores = 27, - clust_size = 6, + clust_num_ores = 62, + clust_size = 12, y_max = planetoids.maxy, y_min = planetoids.miny, }) @@ -66,17 +56,15 @@ minetest.register_ore({ y_min = planetoids.miny, }) -if has_technic_mod then - minetest.register_ore({ - ore_type = "scatter", - ore = "technic:chernobylite_block", - wherein = "default:stone", - clust_scarcity = 8 * 8 * 8, - clust_num_ores = 9, - clust_size = 3, - y_max = planetoids.maxy, - y_min = planetoids.miny, - }) +minetest.register_ore({ + ore_type = "scatter", + ore = "planetoids:radioactive_stone", + wherein = "default:stone", + clust_scarcity = 8 * 8 * 8, + clust_num_ores = 9, + clust_size = 3, + y_max = planetoids.maxy, + y_min = planetoids.miny, +}) -end diff --git a/stone.lua b/stone.lua new file mode 100644 index 0000000..ffe22a7 --- /dev/null +++ b/stone.lua @@ -0,0 +1,8 @@ + +minetest.register_node("planetoids:radioactive_stone", { + description = "Stone (radioactive)", + tiles = {"default_stone.png^[colorize:#005500:100"}, + groups = {cracky = 3, stone = 1, radioactive = 4}, + drop = 'default:cobble', + sounds = default.node_sound_stone_defaults(), +})