Crafter/mods/main/ore.lua
2020-04-16 23:20:56 -04:00

235 lines
4.2 KiB
Lua

--[[
depth = initial level found
]]--
-- Dirt
--[[
minetest.register_ore({
ore_type = "blob",
ore = "main:dirt",
wherein = {"main:stone"},
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_max = 31000,
y_min = -31,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = {x = 5, y = 5, z = 5},
seed = 17676,
octaves = 1,
persist = 0.0
},
})
-- Gravel
minetest.register_ore({
ore_type = "blob",
ore = "main:gravel",
wherein = {"main:stone"},
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_max = 31000,
y_min = -31000,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = {x = 5, y = 5, z = 5},
seed = 766,
octaves = 1,
persist = 0.0
},
})
]]--
-- Scatter ores
-- Coal
minetest.register_ore({
ore_type = "scatter",
ore = "main:coalore",
wherein = "main:stone",
clust_scarcity = 8 * 8 * 8,
clust_num_ores = 9,
clust_size = 3,
y_max = 31000,
y_min = 1025,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:coalore",
wherein = "main:stone",
clust_scarcity = 8 * 8 * 8,
clust_num_ores = 8,
clust_size = 3,
y_max = 64,
y_min = -127,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:coalore",
wherein = "main:stone",
clust_scarcity = 12 * 12 * 12,
clust_num_ores = 30,
clust_size = 5,
y_max = -128,
y_min = -31000,
})
-- Iron
minetest.register_ore({
ore_type = "scatter",
ore = "main:ironore",
wherein = "main:stone",
clust_scarcity = 9 * 9 * 9,
clust_num_ores = 12,
clust_size = 3,
y_max = 31000,
y_min = 1025,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:ironore",
wherein = "main:stone",
clust_scarcity = 7 * 7 * 7,
clust_num_ores = 5,
clust_size = 3,
y_max = 64,
y_min = -127,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:ironore",
wherein = "main:stone",
clust_scarcity = 7 * 7 * 7,
clust_num_ores = 5,
clust_size = 3,
y_max = -128,
y_min = -255,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:ironore",
wherein = "main:stone",
clust_scarcity = 12 * 12 * 12,
clust_num_ores = 29,
clust_size = 5,
y_max = -128,
y_min = -9999,
})
-- Gold
minetest.register_ore({
ore_type = "scatter",
ore = "main:goldore",
wherein = "main:stone",
clust_scarcity = 13 * 13 * 13,
clust_num_ores = 5,
clust_size = 3,
y_max = 31000,
y_min = 1025,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:goldore",
wherein = "main:stone",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 3,
clust_size = 2,
y_max = -128,
y_min = -511,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:goldore",
wherein = "main:stone",
clust_scarcity = 13 * 13 * 13,
clust_num_ores = 5,
clust_size = 3,
y_max = -128,
y_min = -9999,
})
-- Mese crystal
minetest.register_ore({
ore_type = "scatter",
ore = "main:diamondore",
wherein = "main:stone",
clust_scarcity = 14 * 14 * 14,
clust_num_ores = 5,
clust_size = 3,
y_max = 31000,
y_min = 1025,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:diamondore",
wherein = "main:stone",
clust_scarcity = 18 * 18 * 18,
clust_num_ores = 3,
clust_size = 2,
y_max = -128,
y_min = -1023,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:diamondore",
wherein = "main:stone",
clust_scarcity = 14 * 14 * 14,
clust_num_ores = 5,
clust_size = 3,
y_max = -128,
y_min = -9999,
})
-- Diamond
minetest.register_ore({
ore_type = "scatter",
ore = "main:diamondore",
wherein = "main:stone",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 4,
clust_size = 3,
y_max = 31000,
y_min = 1025,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:diamondore",
wherein = "main:stone",
clust_scarcity = 17 * 17 * 17,
clust_num_ores = 4,
clust_size = 3,
y_max = -256,
y_min = -2047,
})
minetest.register_ore({
ore_type = "scatter",
ore = "main:diamondore",
wherein = "main:stone",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 4,
clust_size = 3,
y_max = -256,
y_min = -9999,
})