Tim
2015-02-05 41a10a86d5d2257778b2e422b8a560ed8ea2cbba
commit | author | age
390ade 1 local uranium_params = {offset = 0, scale = 1, spread = {x = 100, y = 100, z = 100}, seed = 420, octaves = 3, persist = 0.7}
N 2 local uranium_threshhold = 0.55
3
4 local chromium_params = {offset = 0, scale = 1, spread = {x = 100, y = 100, z = 100}, seed = 421, octaves = 3, persist = 0.7}
5 local chromium_threshhold = 0.55
6
7 local zinc_params = {offset = 0, scale = 1, spread = {x = 100, y = 100, z = 100}, seed = 422, octaves = 3, persist = 0.7}
8 local zinc_threshhold = 0.5
9
279776 10 minetest.register_ore({
390ade 11     ore_type         = "scatter",
N 12     ore              = "technic:mineral_uranium",
13     wherein          = "default:stone",
14     clust_scarcity   = 8*8*8,
15     clust_num_ores   = 4,
16     clust_size       = 3,
17     height_min       = -300,
18     height_max       = -80,
19     noise_params     = uranium_params,
20     noise_threshhold = uranium_threshhold,
279776 21 })
ee0765 22
279776 23 minetest.register_ore({
390ade 24     ore_type         = "scatter",
N 25     ore              = "technic:mineral_chromium",
26     wherein          = "default:stone",
27     clust_scarcity   = 8*8*8,
28     clust_num_ores   = 2,
29     clust_size       = 3,
30     height_min       = -200,
31     height_max       = -100,
32     noise_params     = chromium_params,
33     noise_threshhold = chromium_threshhold,
279776 34 })
ee0765 35
279776 36 minetest.register_ore({
390ade 37     ore_type         = "scatter",
N 38     ore              = "technic:mineral_chromium",
39     wherein          = "default:stone",
40     clust_scarcity   = 6*6*6,
41     clust_num_ores   = 2,
42     clust_size       = 3,
43     height_min       = -31000,
44     height_max       = -200,
45     flags            = "absheight",
46     noise_params     = chromium_params,
47     noise_threshhold = chromium_threshhold,
48 })
49
50 minetest.register_ore({
51     ore_type         = "scatter",
52     ore              = "technic:mineral_zinc",
53     wherein          = "default:stone",
54     clust_scarcity   = 8*8*8,
55     clust_num_ores   = 4,
56     clust_size       = 3,
57     height_min       = -32,
58     height_max       = 2,
59     noise_params     = zinc_params,
60     noise_threshhold = zinc_threshhold,
61 })
62
63 minetest.register_ore({
64     ore_type         = "scatter",
65     ore              = "technic:mineral_zinc",
66     wherein          = "default:stone",
67     clust_scarcity   = 6*6*6,
68     clust_num_ores   = 4,
69     clust_size       = 3,
70     height_min       = -31000,
71     height_max       = -32,
72     flags            = "absheight",
73     noise_params     = zinc_params,
74     noise_threshhold = zinc_threshhold,
279776 75 })
ee0765 76
S 77 if technic.config:get_bool("enable_marble_generation") then
279776 78 minetest.register_ore({
R 79     ore_type       = "sheet",
80     ore            = "technic:marble",
81     wherein        = "default:stone",
82     clust_scarcity = 1,
83     clust_num_ores = 1,
84     clust_size     = 3,
0ca19d 85     height_min     = -31000,
279776 86     height_max     = -50,
0ca19d 87     noise_threshhold = 0.4,
279776 88     noise_params = {offset=0, scale=15, spread={x=150, y=150, z=150}, seed=23, octaves=3, persist=0.70}
R 89 })
003286 90 end
ee0765 91
S 92 if technic.config:get_bool("enable_granite_generation") then
279776 93 minetest.register_ore({
R 94     ore_type       = "sheet",
95     ore            = "technic:granite",
96     wherein        = "default:stone",
97     clust_scarcity = 1,
98     clust_num_ores = 1,
99     clust_size     = 4,
0ca19d 100     height_min     = -31000,
R 101     height_max     = -150,
102     noise_threshhold = 0.4,
279776 103     noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70}
R 104 })
003286 105 end
279776 106