Add ore
This commit is contained in:
parent
936e75e1f5
commit
b3d6165fc1
@ -15,6 +15,7 @@ for id,ore in pairs(ores) do
|
||||
tiles = {"stone.png^"..ore.."ore.png"},
|
||||
groups = {stone = id, hard = id, pickaxe = 1, hand = 4},
|
||||
sounds = main.stoneSound(),
|
||||
--light_source = 14,--debugging ore spawn
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -3,19 +3,112 @@ depth = initial level found
|
||||
]]--
|
||||
|
||||
|
||||
local gold_depth = 64
|
||||
local incriment = 50
|
||||
local loops = 31000/incriment
|
||||
--coal
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:coalore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
y_max = 32,
|
||||
y_min = -64,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:coalore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 7,
|
||||
clust_size = 3,
|
||||
y_max = -64,
|
||||
y_min = -128,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:coalore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 9,
|
||||
clust_size = 5,
|
||||
y_max = -128,
|
||||
y_min = -31000,
|
||||
})
|
||||
|
||||
for i = 1,loops do
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:coalore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
y_max = 31000,
|
||||
y_min = -31000,
|
||||
})
|
||||
end
|
||||
|
||||
--iron
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:ironore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
y_max = 32,
|
||||
y_min = -64,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:ironore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 7,
|
||||
clust_size = 3,
|
||||
y_max = -32,
|
||||
y_min = -128,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:ironore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 9,
|
||||
clust_size = 5,
|
||||
y_max = -128,
|
||||
y_min = -31000,
|
||||
})
|
||||
|
||||
|
||||
--gold
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:goldore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 7,
|
||||
clust_size = 3,
|
||||
y_max = -128,
|
||||
y_min = -256,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:goldore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 9,
|
||||
clust_size = 5,
|
||||
y_max = -256,
|
||||
y_min = -31000,
|
||||
})
|
||||
|
||||
--diamond
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:diamondore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 7,
|
||||
clust_size = 3,
|
||||
y_max = -256,
|
||||
y_min = -328,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:diamondore",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 9,
|
||||
clust_size = 5,
|
||||
y_max = -328,
|
||||
y_min = -31000,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user