summaryrefslogtreecommitdiff
path: root/moretrees/saplings.lua
blob: 8004612e8ad39d6cdb65fb601c42a4fcd0d00328 (plain)
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
-- sapling growth

for i in ipairs(moretrees.treelist) do
	local treename = moretrees.treelist[i][1]
	local tree_model = treename.."_model"
	local tree_biome = treename.."_biome"

	if treename ~= "birch" and treename ~= "spruce" and treename ~= "fir" and treename ~= "jungletree" then

		biome_lib:dbg(dump(moretrees[tree_biome].surface))
		biome_lib:grow_plants({
			grow_delay = moretrees.sapling_interval,
			grow_chance = moretrees.sapling_chance,
			grow_plant = "moretrees:"..treename.."_sapling",
			grow_nodes = moretrees[tree_biome].surface,
			grow_function = moretrees[tree_model],
		})

		biome_lib:grow_plants({
			grow_delay = 2,
			grow_chance = 30,
			grow_plant = "moretrees:"..treename.."_sapling_ongen",
			grow_nodes = moretrees[tree_biome].surface,
			grow_function = moretrees[tree_model],
		})

	end
end

biome_lib:grow_plants({
	grow_delay = moretrees.sapling_interval,
	grow_chance = moretrees.sapling_chance,
	grow_plant = "moretrees:birch_sapling",
	grow_nodes = moretrees.birch_biome.surface,
	grow_function = "moretrees.grow_birch"
})

biome_lib:grow_plants({
	grow_delay = 2,
	grow_chance = 30,
	grow_plant = "moretrees:birch_sapling_ongen",
	grow_nodes = moretrees.birch_biome.surface,
	grow_function = "moretrees.grow_birch"
})

biome_lib:grow_plants({
	grow_delay = moretrees.sapling_interval,
	grow_chance = moretrees.sapling_chance,
	grow_plant = "moretrees:spruce_sapling",
	grow_nodes = moretrees.spruce_biome.surface,
	grow_function = "moretrees.grow_spruce"
})

biome_lib:grow_plants({
	grow_delay = 2,
	grow_chance = 30,
	grow_plant = "moretrees:spruce_sapling_ongen",
	grow_nodes = moretrees.spruce_biome.surface,
	grow_function = "moretrees.grow_spruce"
})

biome_lib:grow_plants({
	grow_delay = moretrees.sapling_interval,
	grow_chance = moretrees.sapling_chance,
	grow_plant = "moretrees:fir_sapling",
	grow_nodes = moretrees.fir_biome.surface,
	grow_function = "moretrees.grow_fir"
})

biome_lib:grow_plants({
	grow_delay = 2,
	grow_chance = 30,
	grow_plant = "moretrees:fir_sapling_ongen",
	grow_nodes = moretrees.fir_biome.surface,
	grow_function = "moretrees.grow_fir"
})

biome_lib:grow_plants({
	grow_delay = moretrees.sapling_interval,
	grow_chance = moretrees.sapling_chance,
	grow_plant = "default:junglesapling",
	grow_nodes = moretrees.jungletree_biome.surface,
	grow_function = "moretrees.grow_jungletree"
})

biome_lib:grow_plants({
	grow_delay = 2,
	grow_chance = 30,
	grow_plant = "moretrees:jungletree_sapling_ongen",
	grow_nodes = moretrees.jungletree_biome.surface,
	grow_function = "moretrees.grow_jungletree"
})