balanced solution

master
Thomas Rudin 2019-06-30 17:10:39 +02:00
parent e4ccab6161
commit c644d12c8b
3 changed files with 21 additions and 24 deletions

View File

@ -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")

View File

@ -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

8
stone.lua Normal file
View File

@ -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(),
})