summaryrefslogtreecommitdiff
path: root/crafts.lua
blob: 708143d2cdeeeee3faff1843f9ff232afbae5c98 (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157

for i in ipairs(simple_trees) do
	minetest.register_craft({
		output = "moretrees:"..simple_trees[i].."_trunk_sideways 2",
		recipe = {
			{"moretrees:"..simple_trees[i].."_trunk", "moretrees:"..simple_trees[i].."_trunk"}
		}
	})

	minetest.register_craft({
		output = "moretrees:"..simple_trees[i].."_trunk 2",
		recipe = {
			{"moretrees:"..simple_trees[i].."_trunk_sideways"},
			{"moretrees:"..simple_trees[i].."_trunk_sideways"}
		}
	})

	minetest.register_craft({
		type = "shapeless",
		output = "moretrees:"..simple_trees[i].."_planks 4",
		recipe = {
			"moretrees:"..simple_trees[i].."_trunk"
		}
	})

	minetest.register_craft({
		type = "shapeless",
		output = "moretrees:"..simple_trees[i].."_planks 4",
		recipe = {
			"moretrees:"..simple_trees[i].."_trunk_sideways"
		}
	})
end

---- jungletrees

minetest.register_craft({
	output = "moretrees:jungletree_trunk_sideways 2",
	recipe = {
		{"default:jungletree", "default:jungletree"},
	}
})

minetest.register_craft({
	output = "default:jungletree 2",
	recipe = {
		{"moretrees:jungletree_trunk_sideways"},
		{"moretrees:jungletree_trunk_sideways"}
	}
})

minetest.register_craft({
	output = "moretrees:jungletree_planks 4",
	recipe = {
		{"default:jungletree"}
	}
})

minetest.register_craft({
	output = "moretrees:jungletree_planks 4",
	recipe = {
		{"moretrees:jungletree_trunk_sideways"}
	}
})

---- firs

minetest.register_craft({
	output = "moretrees:fir_trunk_sideways 2",
	recipe = {
		{"moretrees:fir_trunk", "moretrees:fir_trunk"},
	}
})

minetest.register_craft({
	output = "moretrees:fir_trunk 2",
	recipe = {
		{"moretrees:fir_trunk_sideways"},
		{"moretrees:fir_trunk_sideways"}
	}
})

minetest.register_craft({
	output = "default:wood 4",
	recipe = {
		{"moretrees:fir_trunk"}
	}
})

minetest.register_craft({
	output = "default:wood 4",
	recipe = {
		{"moretrees:fir_trunk_sideways"}
	}
})

---- spruces

minetest.register_craft({
	output = "moretrees:spruce_trunk_sideways 2",
	recipe = {
		{"moretrees:spruce_trunk", "moretrees:spruce_trunk"},
	}
})

minetest.register_craft({
	output = "moretrees:spruce_trunk 2",
	recipe = {
		{"moretrees:spruce_trunk_sideways"},
		{"moretrees:spruce_trunk_sideways"}
	}
})

minetest.register_craft({
	output = "moretrees:spruce_planks 4",
	recipe = {
		{"moretrees:spruce_trunk"}
	}
})

minetest.register_craft({
	output = "moretrees:spruce_planks 4",
	recipe = {
		{"moretrees:spruce_trunk_sideways"}
	}
})

---- birches

minetest.register_craft({
	output = "moretrees:birch_trunk_sideways 2",
	recipe = {
		{"moretrees:birch_trunk", "moretrees:spruce_trunk"},
	}
})

minetest.register_craft({
	output = "moretrees:birch_trunk 2",
	recipe = {
		{"moretrees:birch_trunk_sideways"},
		{"moretrees:birch_trunk_sideways"}
	}
})

minetest.register_craft({
	output = "moretrees:birch_planks 4",
	recipe = {
		{"moretrees:birch_trunk"}
	}
})

minetest.register_craft({
	output = "moretrees:birch_planks 4",
	recipe = {
		{"moretrees:birch_trunk_sideways"}
	}
})