forked from vlapsley/australia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiome_simpson_desert.lua
executable file
·85 lines (74 loc) · 1.86 KB
/
biome_simpson_desert.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
-- mods/australia/biome_simpson_desert.lua
minetest.register_biome({
name = "simpson_desert",
--node_dust = "",
node_top = "australia:red_sand",
depth_top = 3,
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 = 36,
y_max = 31000,
heat_point = 85,
humidity_point = 10,
})
--
-- Register ores
--
-- All mapgens except singlenode
-- Blob ore first to avoid other ores inside blobs
--
-- Trees
--
-- Coolabah Tree
aus.schematics.coolabah_tree = {}
local max_r = 5
local ht = 7
local fruit = nil
local limbs = nil
local tree = "australia:coolabah_tree"
local leaves = "australia:coolabah_leaves"
for r = 4,max_r do
local schem = aus.generate_tree_schematic(3, {x=r, y=ht, z=r}, tree, leaves, fruit, limbs)
push(aus.schematics.coolabah_tree, schem)
minetest.register_decoration({
deco_type = "schematic",
sidelen = 80,
place_on = {"australia:red_sand"},
y_min = 36,
y_max = 150,
fill_ratio = (max_r-r+1)/20000,
biomes = {"simpson_desert"},
schematic = schem,
flags = "place_center_x, place_center_z",
rotation = "random",
})
end
-- Desert Quandong
aus.schematics.quandong_tree = {}
local max_r = 4
local ht = 4
local fruit = "australia:quandong"
local limbs = false
local tree = "australia:quandong_tree"
local leaves = "australia:quandong_leaves"
for r = 3,max_r do
local schem = aus.generate_tree_schematic(2, {x=r, y=ht, z=r}, tree, leaves, fruit, limbs)
push(aus.schematics.quandong_tree, schem)
minetest.register_decoration({
deco_type = "schematic",
sidelen = 80,
place_on = {"australia:red_sand"},
y_min = 36,
y_max = 130,
fill_ratio = (max_r-r+1)/15000,
biomes = {"simpson_desert"},
schematic = schem,
flags = "place_center_x, place_center_z",
rotation = "random",
})
end