forked from axcore/australia
-
Notifications
You must be signed in to change notification settings - Fork 3
/
biome_jarrah_karri_forests.lua
executable file
·150 lines (128 loc) · 2.77 KB
/
biome_jarrah_karri_forests.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
-- mods/australia/biome_jarrah_karri_forests.lua
local biome_name = "jarrah_karri_forests"
local node_top = "default:dirt_with_grass"
minetest.register_biome({
name = biome_name,
--node_dust = "",
node_top = node_top,
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 3,
node_stone = "default:sandstone",
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
node_river_water = "australia:muddy_river_water_source",
y_min = 4,
y_max = 35,
heat_point = 20,
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", "default:sandstone"},
clust_scarcity = 16 * 16 * 16,
clust_size = 8,
biomes = {"jarrah_karri_forests"},
y_min = 4,
y_max = 35,
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
},
})
--
-- Decorations
--
-- Grasses
aus.biome_register_grass_decorations(
{
{0.015, 0.045, 2},
{0.03, 0.03, 1},
},
biome_name, node_top, "default:grass_", 5, 31000
)
-- Dry grasses
aus.biome_register_grass_decorations(
{
{0.01, 0.05, 5},
{0.03, 0.03, 4},
{0.05, 0.01, 3},
{0.07, -0.01, 2},
{0.09, -0.03, 1},
},
biome_name, node_top, "default:dry_grass_", 5, 31000
)
-- Couch Honeypot
minetest.register_decoration({
deco_type = "simple",
place_on = {node_top},
sidelen = 80,
fill_ratio = 0.02,
biomes = {biome_name},
decoration = "australia:couch_honeypot",
})
--
-- Trees
--
-- Bull Banksia
aus.register_schem_to_biome("bull_banksia_tree", biome_name, {
place_on = {node_top},
y_min = 8,
y_max = 35,
fill_ratio_divisor = 12000,
})
-- Coolabah Tree
aus.register_schem_to_biome("coolabah_tree", biome_name, {
place_on = {node_top},
y_min = 8,
y_max = 35,
fill_ratio_divisor = 20000,
})
-- Jarrah
aus.register_schem_to_biome("jarrah_tree", biome_name, {
place_on = {node_top},
y_min = 12,
y_max = 35,
fill_ratio_divisor = 8000,
})
-- Karri
aus.register_schem_to_biome("karri_tree", biome_name, {
place_on = {node_top},
y_min = 12,
y_max = 35,
fill_ratio_divisor = 10000,
})
-- Marri
aus.register_schem_to_biome("marri_tree", biome_name, {
place_on = {node_top},
y_min = 12,
y_max = 35,
fill_ratio_divisor = 10000,
})
-- Rottnest Island Pine
aus.register_schem_to_biome("rottnest_island_pine_tree", biome_name, {
place_on = {node_top},
y_min = 6,
y_max = 20,
fill_ratio_divisor = 10000,
})
-- Swamp Paperbark
aus.register_schem_to_biome("swamp_paperbark_tree", biome_name, {
place_on = {node_top},
y_min = 7,
y_max = 25,
fill_ratio_divisor = 15000,
})