forked from axcore/australia
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbiome_kimberley.lua
executable file
·98 lines (82 loc) · 1.74 KB
/
biome_kimberley.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
-- mods/australia/biome_kimberley.lua
local biome_name = "kimberley"
local node_top = "australia:red_dirt"
minetest.register_biome({
name = biome_name,
--node_dust = "",
node_top = node_top,
depth_top = 2,
node_filler = "default:sandstone",
depth_filler = 3,
--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 = 75,
})
--
-- Register ores
--
-- All mapgens except singlenode
-- Blob ore first to avoid other ores inside blobs
minetest.register_ore({
ore_type = "scatter",
ore = "default:stone_with_diamond",
wherein = "default:stone",
clust_scarcity = 40 * 40 * 40,
clust_num_ores = 12,
clust_size = 4,
biomes = {"kimberley"},
y_min = -64,
y_max = 35,
})
--
-- Decorations
--
-- Grasses
aus.biome_register_grass_decorations(
{
{0.015, 0.045, 2},
{0.03, 0.03, 1},
},
biome_name, node_top, "default:grass_", 4, 30
)
-- 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_", 7, 35
)
--
-- Trees
--
-- Boab Tree
aus.register_schem_to_biome("boab_tree", biome_name, {
place_on = {node_top},
y_min = 9,
y_max = 35,
fill_ratio_divisor = 10000,
})
-- Darwin Woollybutt
aus.register_schem_to_biome("darwin_woollybutt_tree", "kimberley", {
place_on = {node_top},
y_min = 12,
y_max = 35,
fill_ratio_divisor = 15000,
})
-- Swamp Bloodwood
aus.register_schem_to_biome("swamp_bloodwood_tree", biome_name, {
place_on = {node_top},
y_min = 7,
y_max = 35,
fill_ratio_divisor = 10000
})