]> git.lizzy.rs Git - Crafter.git/blob - mods/main/ore.lua
7021bf5a822165feea9095c74b7d8436638092ea
[Crafter.git] / mods / main / ore.lua
1 --[[
2 depth = initial level found
3 ]]--
4
5         
6 -- Dirt
7 minetest.register_ore({
8         ore_type          = "blob",
9         ore              = "main:dirt",
10         wherein    = {"main:stone"},
11         clust_scarcity  = 16 * 16 * 16,
12         clust_size      = 5,
13         y_max        = 31000,
14         y_min        = -31,
15         noise_threshold = 0.0,
16         noise_params    = {
17                 offset = 0.5,
18                 scale = 0.2,
19                 spread = {x = 5, y = 5, z = 5},
20                 seed = 17676,
21                 octaves = 1,
22                 persist = 0.0
23         },
24 })
25
26 -- Gravel
27 minetest.register_ore({
28         ore_type          = "blob",
29         ore              = "main:gravel",
30         wherein    = {"main:stone"},
31         clust_scarcity  = 16 * 16 * 16,
32         clust_size      = 5,
33         y_max        = 31000,
34         y_min        = -31000,
35         noise_threshold = 0.0,
36         noise_params    = {
37                 offset = 0.5,
38                 scale = 0.2,
39                 spread = {x = 5, y = 5, z = 5},
40                 seed = 766,
41                 octaves = 1,
42                 persist = 0.0
43         },
44 })
45
46
47 minetest.register_ore({
48         ore_type          = "blob",
49         ore              = "main:lava",
50         wherein    = {"main:stone"},
51         clust_scarcity  = 48 * 48 * 48,
52         clust_size      = 15,
53         y_max        = -128,
54         y_min        = -10032,
55         noise_threshold = 0.0,
56         noise_params    = {
57                 offset = 0.5,
58                 scale = 0.2,
59                 spread = {x = 5, y = 5, z = 5},
60                 seed = 766,
61                 octaves = 1,
62                 persist = 0.0
63         },
64 })
65
66 -- Scatter ores
67
68 -- Coal
69 minetest.register_ore({
70         ore_type         = "scatter",
71         ore             = "main:coalore",
72         wherein   = "main:stone",
73         clust_scarcity = 8 * 8 * 8,
74         clust_num_ores = 9,
75         clust_size     = 3,
76         y_max       = 31000,
77         y_min       = 1025,
78 })
79
80 minetest.register_ore({
81         ore_type         = "scatter",
82         ore             = "main:coalore",
83         wherein   = "main:stone",
84         clust_scarcity = 8 * 8 * 8,
85         clust_num_ores = 8,
86         clust_size     = 3,
87         y_max       = 64,
88         y_min       = -127,
89 })
90
91 minetest.register_ore({
92         ore_type         = "scatter",
93         ore             = "main:coalore",
94         wherein   = "main:stone",
95         clust_scarcity = 12 * 12 * 12,
96         clust_num_ores = 30,
97         clust_size     = 5,
98         y_max       = -128,
99         y_min       = -10032,
100 })
101
102 -- Iron
103
104 minetest.register_ore({
105         ore_type         = "scatter",
106         ore             = "main:ironore",
107         wherein   = "main:stone",
108         clust_scarcity = 9 * 9 * 9,
109         clust_num_ores = 12,
110         clust_size     = 3,
111         y_max       = 31000,
112         y_min       = 1025,
113 })
114
115 minetest.register_ore({
116         ore_type         = "scatter",
117         ore             = "main:ironore",
118         wherein   = "main:stone",
119         clust_scarcity = 7 * 7 * 7,
120         clust_num_ores = 5,
121         clust_size     = 3,
122         y_max       = 64,
123         y_min       = -127,
124 })
125
126 minetest.register_ore({
127         ore_type         = "scatter",
128         ore             = "main:ironore",
129         wherein   = "main:stone",
130         clust_scarcity = 7 * 7 * 7,
131         clust_num_ores = 5,
132         clust_size     = 3,
133         y_max       = -128,
134         y_min       = -255,
135 })
136
137 minetest.register_ore({
138         ore_type         = "scatter",
139         ore             = "main:ironore",
140         wherein   = "main:stone",
141         clust_scarcity = 12 * 12 * 12,
142         clust_num_ores = 29,
143         clust_size     = 5,
144         y_max       = -128,
145         y_min       = -10032,
146 })
147
148 -- Gold
149
150 minetest.register_ore({
151         ore_type         = "scatter",
152         ore             = "main:goldore",
153         wherein   = "main:stone",
154         clust_scarcity = 13 * 13 * 13,
155         clust_num_ores = 5,
156         clust_size     = 3,
157         y_max       = 31000,
158         y_min       = 1025,
159 })
160
161 minetest.register_ore({
162         ore_type         = "scatter",
163         ore             = "main:goldore",
164         wherein   = "main:stone",
165         clust_scarcity = 15 * 15 * 15,
166         clust_num_ores = 3,
167         clust_size     = 2,
168         y_max       = -128,
169         y_min       = -511,
170 })
171
172 minetest.register_ore({
173         ore_type         = "scatter",
174         ore             = "main:goldore",
175         wherein   = "main:stone",
176         clust_scarcity = 13 * 13 * 13,
177         clust_num_ores = 5,
178         clust_size     = 3,
179         y_max       = -128,
180         y_min       = -10032,
181 })
182
183 -- Mese crystal
184
185 minetest.register_ore({
186         ore_type         = "scatter",
187         ore             = "main:diamondore",
188         wherein   = "main:stone",
189         clust_scarcity = 14 * 14 * 14,
190         clust_num_ores = 5,
191         clust_size     = 3,
192         y_max       = 31000,
193         y_min       = 1025,
194 })
195
196 minetest.register_ore({
197         ore_type         = "scatter",
198         ore             = "main:diamondore",
199         wherein   = "main:stone",
200         clust_scarcity = 18 * 18 * 18,
201         clust_num_ores = 3,
202         clust_size     = 2,
203         y_max       = -128,
204         y_min       = -1023,
205 })
206
207 minetest.register_ore({
208         ore_type         = "scatter",
209         ore             = "main:diamondore",
210         wherein   = "main:stone",
211         clust_scarcity = 14 * 14 * 14,
212         clust_num_ores = 5,
213         clust_size     = 3,
214         y_max       = -128,
215         y_min       = -10032,
216 })
217
218 -- Diamond
219
220 minetest.register_ore({
221         ore_type         = "scatter",
222         ore             = "main:diamondore",
223         wherein   = "main:stone",
224         clust_scarcity = 15 * 15 * 15,
225         clust_num_ores = 4,
226         clust_size     = 3,
227         y_max       = 31000,
228         y_min       = 1025,
229 })
230
231 minetest.register_ore({
232         ore_type         = "scatter",
233         ore             = "main:diamondore",
234         wherein   = "main:stone",
235         clust_scarcity = 17 * 17 * 17,
236         clust_num_ores = 4,
237         clust_size     = 3,
238         y_max       = -256,
239         y_min       = -2047,
240 })
241
242 minetest.register_ore({
243         ore_type         = "scatter",
244         ore             = "main:diamondore",
245         wherein   = "main:stone",
246         clust_scarcity = 15 * 15 * 15,
247         clust_num_ores = 4,
248         clust_size     = 3,
249         y_max       = -256,
250         y_min       = -10032,
251 })
252