summaryrefslogtreecommitdiff
path: root/technic_worldgen/oregen.lua
blob: c48e35837d6a57783464809368c40c88f02afca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
minetest.register_ore({
	ore_type       = "scatter",
	ore            = "technic:mineral_uranium",
	wherein        = "default:stone",
	clust_scarcity = 10*10*10,
	clust_num_ores = 4,
	clust_size     = 3,
	height_min     = -300,
	height_max     = -80,
})

minetest.register_ore({
	ore_type       = "scatter",
	ore            = "technic:mineral_chromium",
	wherein        = "default:stone",
	clust_scarcity = 10*10*10,
	clust_num_ores = 2,
	clust_size     = 3,
	height_min     = -31000,
	height_max     = -100,
})

minetest.register_ore({
	ore_type       = "scatter",
	ore            = "technic:mineral_zinc",
	wherein        = "default:stone",
	clust_scarcity = 9*9*9,
	clust_num_ores = 4,
	clust_size     = 3,
	height_min     = -31000,
	height_max     = 2,
})

if technic.config:get_bool("enable_marble_generation") then
minetest.register_ore({
	ore_type       = "sheet",
	ore            = "technic:marble",
	wherein        = "default:stone",
	clust_scarcity = 1,
	clust_num_ores = 1,
	clust_size     = 3,
	height_min     = -31000,
	height_max     = -50,
	noise_threshhold = 0.4,
	noise_params = {offset=0, scale=15, spread={x=150, y=150, z=150}, seed=23, octaves=3, persist=0.70}
})
end

if technic.config:get_bool("enable_granite_generation") then
minetest.register_ore({
	ore_type       = "sheet",
	ore            = "technic:granite",
	wherein        = "default:stone",
	clust_scarcity = 1,
	clust_num_ores = 1,
	clust_size     = 4,
	height_min     = -31000,
	height_max     = -150,
	noise_threshhold = 0.4,
	noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70}
})
end