1 -- mods/default/mapgen.lua
4 -- Aliases for map generator outputs
6 minetest
.register_alias("mapgen_air", "air")
7 minetest
.register_alias("mapgen_stone", "default:stone")
8 minetest
.register_alias("mapgen_dirt", "default:ash")
9 minetest
.register_alias("mapgen_dirt_with_grass", "default:ash")
10 minetest
.register_alias("mapgen_sand", "default:ash")
11 minetest
.register_alias("mapgen_water_source", "default:lava_source")
12 minetest
.register_alias("mapgen_river_water_source", "default:lava_source")
13 minetest
.register_alias("mapgen_lava_source", "default:lava_source")
14 minetest
.register_alias("mapgen_gravel", "default:lava_source")
15 minetest
.register_alias("mapgen_desert_stone", "default:stone")
16 minetest
.register_alias("mapgen_desert_sand", "default:ash")
17 minetest
.register_alias("mapgen_dirt_with_snow", "default:ash")
18 minetest
.register_alias("mapgen_snowblock", "default:ash")
19 minetest
.register_alias("mapgen_snow", "default:ash")
20 minetest
.register_alias("mapgen_ice", "default:stone")
21 minetest
.register_alias("mapgen_sandstone", "default:tuff")
25 minetest
.register_alias("mapgen_tree", "air")
26 minetest
.register_alias("mapgen_leaves", "air")
27 minetest
.register_alias("mapgen_apple", "air")
28 minetest
.register_alias("mapgen_jungletree", "air")
29 minetest
.register_alias("mapgen_jungleleaves", "air")
30 minetest
.register_alias("mapgen_junglegrass", "air")
31 minetest
.register_alias("mapgen_pine_tree", "air")
32 minetest
.register_alias("mapgen_pine_needles", "air")
36 minetest
.register_alias("mapgen_cobble", "default:cobble")
37 minetest
.register_alias("mapgen_stair_cobble", "stairs:stair_cobble")
38 minetest
.register_alias("mapgen_mossycobble", "default:stone")
39 minetest
.register_alias("mapgen_sandstonebrick", "default:stone")
40 minetest
.register_alias("mapgen_stair_sandstonebrick", "stairs:stair_stone")
41 minetest
.register_alias("mapgen_stair_sandstone_block", "stairs:stair_stone")
42 minetest
.register_alias("mapgen_stair_desert_stone", "stairs:stair_stone")
44 if minetest
.get_mapgen_setting("mg_name") ~= "singlenode" then
45 minetest
.set_mapgen_setting("mg_name", "v6")
46 minetest
.set_mapgen_setting("mg_flags", "nodungeons, notrees, caves, nodecorations, nobiomes")
47 minetest
.set_mapgen_setting("mgv6_spflags", "nomudflow, nosnowbiomes, notrees, nojungles")
48 minetest
.set_mapgen_setting("water_level", "-5")
55 minetest
.register_ore({
57 ore
= "default:stone_with_emerald",
58 wherein
= "default:stone",
59 clust_scarcity
= 24*24*24,
66 minetest
.register_ore({
68 ore
= "default:stone_with_emerald",
69 wherein
= "default:stone",
70 clust_scarcity
=16*16*16,
78 minetest
.register_ore({
80 ore
= "default:stone_with_sapphire",
81 wherein
= "default:stone",
82 clust_scarcity
= 24*24*24,
89 minetest
.register_ore({
91 ore
= "default:stone_with_sapphire",
92 wherein
= "default:stone",
93 clust_scarcity
=16*16*16,
101 minetest
.register_ore({
102 ore_type
= "scatter",
103 ore
= "default:stone_with_diamond",
104 wherein
= "default:stone",
105 clust_scarcity
= 24*24*24,
112 minetest
.register_ore({
113 ore_type
= "scatter",
114 ore
= "default:stone_with_diamond",
115 wherein
= "default:stone",
116 clust_scarcity
=16*16*16,
124 minetest
.register_ore({
125 ore_type
= "scatter",
126 ore
= "default:stone_with_ruby",
127 wherein
= "default:stone",
128 clust_scarcity
= 24*24*24,
135 minetest
.register_ore({
136 ore_type
= "scatter",
137 ore
= "default:stone_with_ruby",
138 wherein
= "default:stone",
139 clust_scarcity
=16*16*16,
147 minetest
.register_ore({
148 ore_type
= "scatter",
149 ore
= "default:stone_with_coal",
150 wherein
= "default:stone",
151 clust_scarcity
= 8*8*8,
160 minetest
.register_ore({
161 ore_type
= "scatter",
162 ore
= "default:stone_with_coal",
163 wherein
= "default:stone",
164 clust_scarcity
= 12*12*12,
172 minetest
.register_ore({
173 ore_type
= "scatter",
174 ore
= "default:stone_with_coal",
175 wherein
= "default:stone",
176 clust_scarcity
= 24*24*24,
185 minetest
.register_ore({
186 ore_type
= "scatter",
187 ore
= "default:stone_with_iron",
188 wherein
= "default:stone",
189 clust_scarcity
= 12*12*12,
197 minetest
.register_ore({
198 ore_type
= "scatter",
199 ore
= "default:stone_with_iron",
200 wherein
= "default:stone",
201 clust_scarcity
= 9*9*9,
209 minetest
.register_ore({
210 ore_type
= "scatter",
211 ore
= "default:stone_with_iron",
212 wherein
= "default:stone",
213 clust_scarcity
= 7*7*7,
222 minetest
.register_ore({
223 ore_type
= "scatter",
224 ore
= "default:stone_with_iron",
225 wherein
= "default:stone",
226 clust_scarcity
= 24*24*24,
235 minetest
.register_ore({
236 ore_type
= "scatter",
237 ore
= "default:stone_with_mese",
238 wherein
= "default:stone",
239 clust_scarcity
= 18*18*18,
248 minetest
.register_ore({
249 ore_type
= "scatter",
250 ore
= "default:stone_with_mese",
251 wherein
= "default:stone",
252 clust_scarcity
= 14*14*14,
261 minetest
.register_ore({
262 ore_type
= "scatter",
263 ore
= "default:mese",
264 wherein
= "default:stone",
265 clust_scarcity
= 36*36*36,
274 minetest
.register_ore({
275 ore_type
= "scatter",
276 ore
= "default:stone_with_gold",
277 wherein
= "default:stone",
278 clust_scarcity
= 15*15*15,
286 minetest
.register_ore({
287 ore_type
= "scatter",
288 ore
= "default:stone_with_gold",
289 wherein
= "default:stone",
290 clust_scarcity
= 13*13*13,
298 minetest
.register_ore({
299 ore_type
= "scatter",
300 ore
= "default:stone_with_diamond",
301 wherein
= "default:stone",
302 clust_scarcity
= 15*15*15,
310 minetest
.register_ore({
311 ore_type
= "scatter",
312 ore
= "default:stone_with_emerald",
313 wherein
= "default:stone",
314 clust_scarcity
= 15*15*15,
322 minetest
.register_ore({
323 ore_type
= "scatter",
324 ore
= "default:stone_with_sapphire",
325 wherein
= "default:stone",
326 clust_scarcity
= 15*15*15,
334 minetest
.register_ore({
335 ore_type
= "scatter",
336 ore
= "default:stone_with_ruby",
337 wherein
= "default:stone",
338 clust_scarcity
= 15*15*15,
346 minetest
.register_ore({
347 ore_type
= "scatter",
348 ore
= "default:stone_with_copper",
349 wherein
= "default:stone",
350 clust_scarcity
= 12*12*12,
358 minetest
.register_ore({
359 ore_type
= "scatter",
360 ore
= "default:stone_with_copper",
361 wherein
= "default:stone",
362 clust_scarcity
= 9*9*9,
370 minetest
.register_ore({
371 ore_type
= "scatter",
372 ore
= "default:stone_with_copper",
373 wherein
= "default:stone",
374 clust_scarcity
= 9*9*9,
382 minetest
.register_ore({
383 ore_type
= "scatter",
384 ore
= "default:stone_with_tin",
385 wherein
= "default:stone",
386 clust_scarcity
= 12*12*12,
394 minetest
.register_ore({
395 ore_type
= "scatter",
396 ore
= "default:stone_with_tin",
397 wherein
= "default:stone",
398 clust_scarcity
= 9*9*9,
406 minetest
.register_ore({
407 ore_type
= "scatter",
408 ore
= "default:stone_with_tin",
409 wherein
= "default:stone",
410 clust_scarcity
= 9*9*9,
418 -- if minetest.settings:get("mg_name") == "indev" then
419 -- Floatlands and high mountains springs
421 minetest
.register_ore({
423 ore
= "default:lava_source",
424 wherein
= {"default:stone"},
425 clust_scarcity
= 25* 25 * 25,
429 noise_threshold
= 0.0,
433 spread
= {x
= 5, y
= 5, z
= 5},
441 minetest
.register_ore({
442 ore_type
= "scatter",
444 wherein
= "default:stone",
445 clust_scarcity
= 20*20*20,
446 clust_num_ores
= 5*5*3,
453 minetest
.register_ore({
454 ore_type
= "scatter",
455 ore
= "default:tuff",
457 wherein
= "default:stone",
458 clust_scarcity
= 25*25*25,
459 clust_num_ores
= 10000,
465 minetest
.register_ore({
466 ore_type
= "scatter",
467 ore
= "default:chondrite",
469 wherein
= "default:stone",
470 clust_scarcity
= 10*10*10,
478 minetest
.register_ore({
479 ore_type
= "scatter",
480 ore
= "default:chondrite",
482 wherein
= "default:stone",
483 clust_scarcity
= 20*20*20,
484 clust_num_ores
= 550,
491 minetest
.register_ore({
492 ore_type
= "scatter",
493 ore
= "default:chondrite",
495 wherein
= "default:stone",
496 clust_scarcity
= 20*20*20,
497 clust_num_ores
= 650,
504 minetest
.register_ore({
505 ore_type
= "scatter",
506 ore
= "default:essexite",
508 wherein
= "default:stone",
509 clust_scarcity
= 10*10*10,
516 minetest
.register_ore({
517 ore_type
= "scatter",
518 ore
= "default:essexite",
520 wherein
= "default:stone",
521 clust_scarcity
= 10*10*10,
522 clust_num_ores
= 500,
529 minetest
.register_ore({
530 ore_type
= "scatter",
531 ore
= "default:essexite",
533 wherein
= "default:stone",
534 clust_scarcity
= 20*10*20,
535 clust_num_ores
= 950,
542 minetest
.register_ore({
543 ore_type
= "scatter",
544 ore
= "default:gravel",
546 wherein
= "default:stone",
547 clust_scarcity
= 20*5*20,
548 clust_num_ores
= 150,
554 minetest
.register_ore({
555 ore_type
= "scatter",
556 ore
= "default:gravel",
558 wherein
= "default:stone",
559 clust_scarcity
= 20*5*20,
560 clust_num_ores
= 350,
566 minetest
.register_ore({
567 ore_type
= "scatter",
568 ore
= "default:gravel",
570 wherein
= "default:stone",
571 clust_scarcity
= 20*10*20,
572 clust_num_ores
= 500,
578 -- Underground springs
579 minetest
.register_ore({
580 ore_type
= "scatter",
581 ore
= "default:water_source",
583 wherein
= "default:stone",
584 clust_scarcity
= 25*25*25,
591 minetest
.register_ore({
593 ore
= "default:lava_source",
594 wherein
= {"default:stone"},
595 clust_scarcity
= 25* 25 * 25,
599 noise_threshold
= 0.2,
603 spread
= {x
= 500, y
= 500, z
= 500},
612 minetest
.register_decoration({
613 deco_type
= "simple",
614 place_on
= {"default:stone"},
619 spread
= {x
= 5, y
= 5, z
= 5},
626 decoration
= "default:stone",
631 minetest
.register_decoration({
632 deco_type
= "simple",
633 place_on
= {"default:stone"},
638 spread
= {x
= 5, y
= 5, z
= 5},
645 decoration
= "default:ash",