75 lines
1.8 KiB
Lua
75 lines
1.8 KiB
Lua
|
|
-- Baked Clay
|
|
|
|
minetest.register_ore({
|
|
ore_type = "blob",
|
|
ore = "bakedclay:red",
|
|
wherein = {"bakedclay:orange"},
|
|
clust_scarcity = 4 * 4 * 4,
|
|
clust_num_ores = 8,
|
|
clust_size = 6,
|
|
y_min = -10,
|
|
y_max = 71,
|
|
noise_params = {
|
|
offset = 0.35,
|
|
scale = 0.2,
|
|
spread = {x = 5, y = 5, z = 5},
|
|
seed = -316,
|
|
octaves = 1,
|
|
persist = 0.5
|
|
},
|
|
})
|
|
|
|
minetest.register_ore({
|
|
ore_type = "blob",
|
|
ore = "bakedclay:grey",
|
|
wherein = {"bakedclay:orange"},
|
|
clust_scarcity = 4 * 4 * 4,
|
|
clust_num_ores = 8,
|
|
clust_size = 6,
|
|
y_min = -10,
|
|
y_max = 71,
|
|
noise_params = {
|
|
offset = 0.35,
|
|
scale = 0.2,
|
|
spread = {x = 5, y = 5, z = 5},
|
|
seed = -613,
|
|
octaves = 1,
|
|
persist = 0.5
|
|
},
|
|
})
|
|
|
|
local add_ore = function(a, b, c, d, e, f, g)
|
|
|
|
minetest.register_ore({
|
|
ore_type = "scatter",
|
|
ore = a,
|
|
wherein = b,
|
|
clust_scarcity = c,
|
|
clust_num_ores = d,
|
|
clust_size = e,
|
|
y_min = f,
|
|
y_max = g,
|
|
})
|
|
end
|
|
|
|
-- Coal
|
|
add_ore("default:stone_with_coal", "default:desert_stone", 24*24*24, 27, 6, -31000, -16)
|
|
|
|
-- Zersium
|
|
add_ore("default:stone_with_zersium", "default:desert_stone", 9*9*9, 5, 3, -63, -16)
|
|
add_ore("default:stone_with_zersium", "default:desert_stone", 24*24*24, 27, 6, -31000, -64)
|
|
|
|
--Tin
|
|
add_ore("default:stone_with_tin", "default:desert_stone", 9*9*9, 5, 3, -31000, -64)
|
|
|
|
-- Gold
|
|
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)
|
|
|
|
-- Beskar
|
|
add_ore("default:stone_with_beskar", "default:desert_stone", 17*17*17, 4, 3, -255, -128)
|
|
add_ore("default:stone_with_beskar", "default:desert_stone", 15*15*15, 4, 3, -31000, -256)
|
|
|
|
-- Copper
|
|
add_ore("default:stone_with_copper", "default:desert_stone", 9*9*9, 5, 3, -31000, -64) |