-
Notifications
You must be signed in to change notification settings - Fork 0
/
ethereal.lua
88 lines (78 loc) · 3.8 KB
/
ethereal.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
-- Lemon Tree
if regrowing_fruit.settings:get_bool('ethereal_lemon', false) then
local altered_schematic = regrowing_fruit.alter_tree_schematic(
regrowing_fruit.settings:get("ethereal_lemon_fruit_origin") or "ethereal:lemon",
regrowing_fruit.settings:get("ethereal_lemon_leaves_origin") or "ethereal:lemon_leaves",
regrowing_fruit.settings:get("ethereal_lemon_trunk_origin") or "default:tree",
ethereal["lemontree"],
false,
regrowing_fruit.get_options("ethereal_lemon")
);
-- overwrite placement var with new schematic
ethereal["lemontree"] = altered_schematic
end
-- Orange Tree
if regrowing_fruit.settings:get_bool('ethereal_orange', false) then
local altered_schematic = regrowing_fruit.alter_tree_schematic(
regrowing_fruit.settings:get("ethereal_orange_fruit_origin") or "ethereal:orange",
regrowing_fruit.settings:get("ethereal_orange_leaves_origin") or "ethereal:orange_leaves",
regrowing_fruit.settings:get("ethereal_orange_trunk_origin") or "default:tree",
ethereal["orangetree"],
false,
regrowing_fruit.get_options("ethereal_orange")
);
-- overwrite placement var with new schematic
ethereal["orangetree"] = altered_schematic
end
-- Banana Tree
if regrowing_fruit.settings:get_bool('ethereal_banana', false) then
local altered_schematic = regrowing_fruit.alter_tree_schematic(
regrowing_fruit.settings:get("ethereal_banana_fruit_origin") or "ethereal:banana",
regrowing_fruit.settings:get("ethereal_banana_leaves_origin") or "ethereal:bananaleaves",
regrowing_fruit.settings:get("ethereal_banana_trunk_origin") or "ethereal:banana_trunk",
ethereal["bananatree"],
true,
regrowing_fruit.get_options("ethereal_banana")
);
-- overwrite placement var with new schematic
ethereal["bananatree"] = altered_schematic
end
--Palm Tree
if regrowing_fruit.settings:get_bool('ethereal_coconut', false) then
local altered_schematic = regrowing_fruit.alter_tree_schematic(
regrowing_fruit.settings:get("ethereal_coconut_fruit_origin") or "ethereal:coconut",
regrowing_fruit.settings:get("ethereal_coconut_leaves_origin") or "ethereal:palmleaves",
regrowing_fruit.settings:get("ethereal_coconut_trunk_origin") or "ethereal:palm_trunk",
ethereal["palmtree"],
true,
regrowing_fruit.get_options("ethereal_coconut")
);
-- overwrite placement var with new schematic
ethereal["palmtree"] = altered_schematic
end
--Olive Tree
if regrowing_fruit.settings:get_bool('ethereal_olive', false) then
local altered_schematic = regrowing_fruit.alter_tree_schematic(
regrowing_fruit.settings:get("ethereal_olive_fruit_origin") or "ethereal:olive",
regrowing_fruit.settings:get("ethereal_olive_leaves_origin") or "ethereal:olive_leaves",
regrowing_fruit.settings:get("ethereal_olive_trunk_origin") or "ethereal:olive_trunk",
ethereal["olivetree"],
false,
regrowing_fruit.get_options("ethereal_olive")
);
-- overwrite placement var with new schematic
ethereal["olivetree"] = altered_schematic
end
-- Yellow Tree
if regrowing_fruit.settings:get_bool('ethereal_golden_apple', false) then
local altered_schematic = regrowing_fruit.alter_tree_schematic(
regrowing_fruit.settings:get("ethereal_golden_apple_fruit_origin") or "ethereal:golden_apple",
regrowing_fruit.settings:get("ethereal_golden_apple_leaves_origin") or "ethereal:yellowleaves",
regrowing_fruit.settings:get("ethereal_golden_apple_trunk_origin") or "ethereal:yellow_trunk",
ethereal["yellowtree"],
false,
regrowing_fruit.get_options("ethereal_golden_apple")
);
-- overwrite placement var with new schematic
ethereal["yellowtree"] = altered_schematic
end