2016-05-17 23:40:05 +03:00
|
|
|
|
2024-08-16 13:05:33 +03:00
|
|
|
-- stratum ore helper
|
2016-05-17 23:40:05 +03:00
|
|
|
|
2024-08-16 13:05:33 +03:00
|
|
|
local function add_stratum(y_min, y_max, node)
|
2021-06-14 19:46:09 +03:00
|
|
|
|
|
|
|
minetest.register_ore({
|
2022-09-30 19:26:44 +03:00
|
|
|
ore_type = "stratum",
|
|
|
|
ore = node,
|
|
|
|
wherein = {"bakedclay:orange"},
|
|
|
|
clust_scarcity = 1,
|
|
|
|
y_max = y_max,
|
|
|
|
y_min = y_min,
|
2021-06-14 19:46:09 +03:00
|
|
|
biomes = {"mesa"}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2024-10-04 14:21:42 +03:00
|
|
|
-- add baked clay layers (mesa biome is between 20 and 71)
|
|
|
|
|
|
|
|
for n = 0, 5 do
|
|
|
|
|
|
|
|
add_stratum(20 + (n * 9), 21 + (n * 9), "bakedclay:brown")
|
|
|
|
add_stratum(22 + (n * 9), 23 + (n * 9), "bakedclay:grey")
|
|
|
|
add_stratum(25 + (n * 9), 26 + (n * 9), "bakedclay:red")
|
|
|
|
end
|
2016-05-17 23:40:05 +03:00
|
|
|
|
2024-08-16 13:05:33 +03:00
|
|
|
-- scatter ore helper
|
2016-05-17 23:40:05 +03:00
|
|
|
|
2024-08-16 13:05:33 +03:00
|
|
|
local function add_ore(a, b, c, d, e, f, g)
|
2016-05-17 23:40:05 +03:00
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = a,
|
|
|
|
wherein = b,
|
|
|
|
clust_scarcity = c,
|
|
|
|
clust_num_ores = d,
|
|
|
|
clust_size = e,
|
|
|
|
y_min = f,
|
2021-06-14 19:46:09 +03:00
|
|
|
y_max = g
|
2016-05-17 23:40:05 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Coal
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
add_ore("default:stone_with_coal", "default:desert_stone", 24*24*24, 27, 6, -31000, -16)
|
|
|
|
|
|
|
|
-- Iron
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
add_ore("default:stone_with_iron", "default:desert_stone", 9*9*9, 5, 3, -63, -16)
|
|
|
|
add_ore("default:stone_with_iron", "default:desert_stone", 24*24*24, 27, 6, -31000, -64)
|
|
|
|
|
|
|
|
--Mese
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
add_ore("default:stone_with_mese", "default:desert_stone", 14*14*14, 5, 3, -31000, -256)
|
|
|
|
|
|
|
|
-- Gold
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
add_ore("default:stone_with_gold", "default:desert_stone", 15*15*15, 3, 2, -255, -64)
|
|
|
|
add_ore("default:stone_with_gold", "default:desert_stone", 13*13*13, 5, 3, -31000, -256)
|
|
|
|
|
|
|
|
-- Diamond
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
add_ore("default:stone_with_diamond", "default:desert_stone", 17*17*17, 4, 3, -255, -128)
|
|
|
|
add_ore("default:stone_with_diamond", "default:desert_stone", 15*15*15, 4, 3, -31000, -256)
|
|
|
|
|
|
|
|
-- Copper
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
add_ore("default:stone_with_copper", "default:desert_stone", 9*9*9, 5, 3, -31000, -64)
|
|
|
|
|
|
|
|
-- Coral Sand
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2016-05-21 10:56:25 +03:00
|
|
|
add_ore("ethereal:sandy", "default:sand", 10*10*10, 24, 4, -100, -10)
|
2019-11-05 23:45:04 +03:00
|
|
|
|
|
|
|
-- Etherium
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2019-11-05 23:45:04 +03:00
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "ethereal:etherium_ore",
|
|
|
|
wherein = "default:desert_stone",
|
2021-06-14 19:46:09 +03:00
|
|
|
clust_scarcity = 10 * 10 * 10,
|
2019-11-05 23:45:04 +03:00
|
|
|
clust_num_ores = 1,
|
|
|
|
clust_size = 1,
|
|
|
|
y_min = 5,
|
|
|
|
y_max = 40,
|
2021-06-14 19:46:09 +03:00
|
|
|
biomes = {"caves"}
|
2019-11-05 23:45:04 +03:00
|
|
|
})
|
2021-04-18 10:29:42 +03:00
|
|
|
|
|
|
|
-- Etherium in floatlands
|
2024-08-16 13:05:33 +03:00
|
|
|
|
2021-04-18 10:29:42 +03:00
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "ethereal:stone_with_etherium_ore",
|
|
|
|
wherein = "default:stone",
|
2021-06-14 19:46:09 +03:00
|
|
|
clust_scarcity = 9 * 9 * 9,
|
2021-04-18 10:29:42 +03:00
|
|
|
clust_num_ores = 6,
|
|
|
|
clust_size = 2,
|
|
|
|
y_min = 1025,
|
|
|
|
y_max = 31000
|
|
|
|
})
|