forked from axcore/australia
-
Notifications
You must be signed in to change notification settings - Fork 3
/
biome_pilbara.lua
executable file
·109 lines (90 loc) · 1.84 KB
/
biome_pilbara.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
-- mods/australia/biome_pilbara.lua
local biome_name = "pilbara"
local node_top = "australia:red_gravel"
minetest.register_biome({
name = biome_name,
--node_dust = "",
node_top = node_top,
depth_top = 2,
node_filler = "australia:red_stone",
depth_filler = 2,
--node_stone = "",
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
node_river_water = "australia:muddy_river_water_source",
y_min = 4,
y_max = 35,
heat_point = 80,
humidity_point = 20,
})
--
-- Register ores
--
-- All mapgens except singlenode
-- Blob ore first to avoid other ores inside blobs
-- Iron
minetest.register_ore({
ore_type = "blob",
-- @@@ Josselin2
-- ore = "air",
ore = "default:stone_with_iron",
wherein = {"default:stone"},
clust_scarcity = 24 * 24 * 24,
clust_size = 8,
biomes = {"pilbara"},
y_min = -64,
y_max = 35,
noise_threshold = 1,
noise_params = {
offset = 0,
scale = 3,
spread = {x = 16, y = 16, z = 16},
seed = 895,
octaves = 3,
persist = 0.6
},
})
--
-- Decorations
--
-- Dry grasses
aus.biome_register_grass_decorations(
{
{0.07, -0.01, 2},
{0.09, -0.03, 1},
},
biome_name, node_top, "default:dry_grass_", 5, 31000
)
-- Mitchell Grass
minetest.register_decoration({
deco_type = "simple",
place_on = {node_top},
sidelen = 80,
fill_ratio = 0.05,
biomes = {biome_name},
y_min = 6,
y_max = 31000,
decoration = "australia:mitchell_grass",
})
-- Spinifex
minetest.register_decoration({
deco_type = "simple",
place_on = {node_top},
sidelen = 80,
fill_ratio = 0.02,
biomes = {biome_name},
y_min = 8,
y_max = 31000,
decoration = "australia:spinifex",
})
--
-- Trees
--
-- Desert Oak
aus.register_schem_to_biome("desert_oak_tree", biome_name, {
place_on = {node_top},
y_min = 10,
y_max = 35,
fill_ratio_divisor = 15000,
})