forked from axcore/australia
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbiome_mangroves.lua
executable file
·118 lines (99 loc) · 2.28 KB
/
biome_mangroves.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
-- mods/australia/biome_mangroves.lua
local biome_name = "mangroves"
local node_top = "australia:mangrove_mud"
minetest.register_biome({
name = biome_name,
--node_dust = "",
node_top = node_top,
depth_top = 3,
node_filler = "default:clay",
depth_filler = 1,
--node_stone = "",
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
node_river_water = "australia:muddy_river_water_source",
y_min = -2,
y_max = 3,
heat_point = 80,
humidity_point = 80,
})
--
-- Register ores
--
-- All mapgens except singlenode
-- Blob ore first to avoid other ores inside blobs
--
-- Decorations
--
-- Mangrove Fern
minetest.register_decoration({
deco_type = "simple",
place_on = {node_top,
"default:dirt",
"default:dirt_with_grass"},
sidelen = 80,
fill_ratio = 0.2,
biomes = {biome_name},
y_min = 2,
y_max = 3,
decoration = "australia:mangrove_fern",
})
-- Mangrove Lily
minetest.register_decoration({
deco_type = "simple",
place_on = {node_top,
"default:dirt",
"default:dirt_with_grass"},
sidelen = 80,
fill_ratio = 0.1,
biomes = {biome_name},
y_min = 2,
y_max = 3,
decoration = "australia:mangrove_lily",
})
-- Mangrove Palm
minetest.register_decoration({
deco_type = "schematic",
place_on = {node_top,
"default:dirt"},
sidelen = 80,
fill_ratio = 0.3,
biomes = {biome_name},
y_min = 1,
y_max = 3,
schematic = {
size = { x = 1, y = 4, z = 1},
data = {
{ name = "ignore", param1 = 0, param2 = 0 },
{ name = "australia:mangrove_palm_trunk", param1 = 255, param2 = 0 },
{ name = "australia:mangrove_palm_leaf_bot", param1 = 255, param2 = 0 },
{ name = "australia:mangrove_palm_leaf_top", param1 = 255, param2 = 0 },
},
},
flags = "force_placement",
})
--
-- Trees
--
-- Grey Mangrove
aus.register_schem_to_biome("grey_mangrove_tree", biome_name, {
place_on = {node_top, "default:dirt", "default:sand"},
y_min = -2,
y_max = 3,
const_fill_ratio = 0.003
})
-- Mangrove Apple
aus.register_schem_to_biome("mangrove_apple_tree", biome_name, {
place_on = {node_top, "default:dirt", "default:sand"},
y_min = 0,
y_max = 3,
fill_ratio_divisor = 5000,
})
-- Stilted Mangrove
aus.register_schem_to_biome("stilted_mangrove_tree", biome_name, {
place_on = {node_top, "default:dirt", "default:sand"},
y_min = -2,
y_max = 3,
const_fill_ratio = 0.003
})