blob: 1baccd17f1c1761025369627ef04b5a7a37e4eab (
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
|
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"
}
})
end
-- 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"}
}
})
|