forked from LizzyFleckenstein03/Memeclone
Tweak emerald ore and stone monster egg spawn
This commit is contained in:
parent
0d736c58e8
commit
b09e757a03
|
@ -404,28 +404,44 @@ minetest.register_ore({
|
||||||
-- Emerald
|
-- Emerald
|
||||||
--
|
--
|
||||||
|
|
||||||
-- Common spawn
|
if mg_name == "v6" then
|
||||||
minetest.register_ore({
|
-- Generate everywhere in v6, but rarely.
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "mcl_core:stone_with_emerald",
|
-- Common spawn
|
||||||
wherein = stonelike,
|
minetest.register_ore({
|
||||||
clust_scarcity = 14340,
|
ore_type = "scatter",
|
||||||
clust_num_ores = 1,
|
ore = "mcl_core:stone_with_emerald",
|
||||||
clust_size = 1,
|
wherein = stonelike,
|
||||||
y_min = mcl_vars.mg_overworld_min,
|
clust_scarcity = 14340,
|
||||||
y_max = mcl_util.layer_to_y(29),
|
clust_num_ores = 1,
|
||||||
})
|
clust_size = 1,
|
||||||
-- Rare spawn
|
y_min = mcl_vars.mg_overworld_min,
|
||||||
minetest.register_ore({
|
y_max = mcl_util.layer_to_y(29),
|
||||||
ore_type = "scatter",
|
})
|
||||||
ore = "mcl_core:stone_with_emerald",
|
-- Rare spawn
|
||||||
wherein = stonelike,
|
minetest.register_ore({
|
||||||
clust_scarcity = 21510,
|
ore_type = "scatter",
|
||||||
clust_num_ores = 1,
|
ore = "mcl_core:stone_with_emerald",
|
||||||
clust_size = 1,
|
wherein = stonelike,
|
||||||
y_min = mcl_util.layer_to_y(30),
|
clust_scarcity = 21510,
|
||||||
y_max = mcl_util.layer_to_y(32),
|
clust_num_ores = 1,
|
||||||
})
|
clust_size = 1,
|
||||||
|
y_min = mcl_util.layer_to_y(30),
|
||||||
|
y_max = mcl_util.layer_to_y(32),
|
||||||
|
})
|
||||||
|
else
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "mcl_core:stone_with_emerald",
|
||||||
|
wherein = stonelike,
|
||||||
|
clust_scarcity = 16384,
|
||||||
|
clust_num_ores = 1,
|
||||||
|
clust_size = 1,
|
||||||
|
y_min = mcl_util.layer_to_y(4),
|
||||||
|
y_max = mcl_util.layer_to_y(32),
|
||||||
|
--biomes = { "ExtremeHills", "ExtremeHills_beach", "ExtremeHills_ocean" },
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Lapis Lazuli
|
-- Lapis Lazuli
|
||||||
|
@ -612,12 +628,13 @@ minetest.register_ore({
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Rarely replace stone with stone monster eggs
|
-- Rarely replace stone with stone monster eggs.
|
||||||
|
-- In v6 this can happen anywhere, in other mapgens only in Extreme Hills.
|
||||||
local monster_egg_scarcity
|
local monster_egg_scarcity
|
||||||
if mg_name == "v6" then
|
if mg_name == "v6" then
|
||||||
monster_egg_scarcity = 28 * 28 * 28
|
monster_egg_scarcity = 28 * 28 * 28
|
||||||
else
|
else
|
||||||
monster_egg_scarcity = 22 * 22 * 22
|
monster_egg_scarcity = 26 * 26 * 26
|
||||||
end
|
end
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
|
@ -627,8 +644,8 @@ minetest.register_ore({
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
y_min = mcl_vars.mg_overworld_min,
|
y_min = mcl_vars.mg_overworld_min,
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
y_max = mcl_util.layer_to_y(61),
|
||||||
-- TODO: Limit by biome
|
--biomes = { "ExtremeHills", "ExtremeHills_beach", "ExtremeHills_ocean" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue