forked from axcore/australia
-
Notifications
You must be signed in to change notification settings - Fork 3
/
biome_australian_alps.lua
executable file
·105 lines (90 loc) · 2.05 KB
/
biome_australian_alps.lua
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
-- mods/australia/biome_australian_alps.lua
local biome_name = "australian_alps"
local node_top = "default:snowblock"
minetest.register_biome({
name = biome_name,
node_dust = "default:snow",
node_top = node_top,
depth_top = 2,
node_filler = "default:dirt_with_snow",
depth_filler = 1,
--node_stone = "",
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
--node_river_water = "",
y_min = aus.snowline(),
y_max = 31000,
heat_point = 10,
humidity_point = 50,
})
--
-- Register ores
--
-- All mapgens except singlenode
-- Blob ore first to avoid other ores inside blobs
-- Bluestone (Basalt)
minetest.register_ore({
ore_type = "blob",
ore = "australia:bluestone",
wherein = {"default:stone"},
clust_scarcity = 16 * 16 * 16,
clust_size = 8,
biomes = {"australian_alps"},
y_min = aus.snowline(),
y_max = 31000,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = {x = 5, y = 5, z = 5},
seed = 677,
octaves = 1,
persist = 0.0
},
})
--
-- Logs
--
-- Snow Gum Log
minetest.register_decoration({
deco_type = "schematic",
place_on = node_top,
sidelen = 16,
noise_params = {
offset = 0.0018,
scale = 0.0011,
spread = {x = 250, y = 250, z = 250},
seed = 34,
octaves = 3,
persist = 0.66
},
biomes = {biome_name},
y_min = aus.snowline(),
y_max = aus.snowline()+61,
schematic = {
size = {x = 3, y = 3, z = 1},
data = {
{name = "air", prob = 0},
{name = "air", prob = 0},
{name = "air", prob = 0},
{name = "australia:snow_gum_tree", param2 = 12, prob = 191},
{name = "australia:snow_gum_tree", param2 = 12},
{name = "australia:snow_gum_tree", param2 = 12, prob = 127},
{name = "air", prob = 0},
{name = "flowers:mushroom_brown", prob = 63},
{name = "air", prob = 0},
},
},
flags = "place_center_x",
rotation = "random",
})
--
-- Trees
--
aus.register_schem_to_biome("snow_gum_tree", biome_name, {
place_on = {node_top},
y_min = aus.snowline(),
y_max = aus.snowline()+60,
fill_ratio_divisor = 2500,
})