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
|
for i in ipairs(moretrees.treelist) do
treename = moretrees.treelist[i][1]
minetest.register_craft({
output = "moretrees:"..treename.."_trunk_sideways 2",
recipe = {
{"moretrees:"..treename.."_trunk", "moretrees:"..treename.."_trunk"}
}
})
minetest.register_craft({
output = "moretrees:"..treename.."_trunk 2",
recipe = {
{"moretrees:"..treename.."_trunk_sideways"},
{"moretrees:"..treename.."_trunk_sideways"}
}
})
minetest.register_craft({
type = "shapeless",
output = "moretrees:"..treename.."_planks 4",
recipe = {
"moretrees:"..treename.."_trunk"
}
})
minetest.register_craft({
type = "shapeless",
output = "moretrees:"..treename.."_planks 4",
recipe = {
"moretrees:"..treename.."_trunk_sideways"
}
})
minetest.register_craft({
type = "fuel",
recipe = "moretrees:"..treename.."_sapling",
burntime = 10,
})
end
minetest.register_craft({
type = "fuel",
recipe = "group:moretrees_leaves",
burntime = 1,
})
-- extra crafting in case user has old jungle trees.
minetest.register_craft({
output = "moretrees:jungletree_trunk_sideways 2",
recipe = {
{"default:jungletree", "default:jungletree"},
}
})
minetest.register_craft({
output = "moretrees:jungletree_planks 4",
recipe = {
{"default:jungletree"}
}
})
|