forked from vlapsley/australia
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcrafting.lua
executable file
·97 lines (80 loc) · 2 KB
/
crafting.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
85
86
87
88
89
90
91
92
93
94
95
96
97
-- mods/australia/crafting.lua
minetest.register_craft({
output = 'australia:red_stonebrick 4',
recipe = {
{'australia:red_stone', 'australia:red_stone'},
{'australia:red_stone', 'australia:red_stone'},
}
})
minetest.register_craft({
output = 'australia:bluestone_brick 4',
recipe = {
{'australia:bluestone', 'australia:bluestone'},
{'australia:bluestone', 'australia:bluestone'},
}
})
-- Fences
for i in ipairs(aus.treelist) do
local treename = aus.treelist[i][1]
minetest.register_craft({
output = "australia:fence_"..treename.."_wood 4",
recipe = {
{"australia:"..treename.."_wood", "group:stick", "australia:"..treename.."_wood"},
{"australia:"..treename.."_wood", "group:stick", "australia:"..treename.."_wood"},
}
})
end
minetest.register_craft({
type = "shapeless",
output = "australia:fiddlehead 3",
recipe = {"australia:fern_01"},
replacements = {
{"australia:fern_01", "australia:ferntuber"}
},
})
minetest.register_craft({
type = "shapeless",
output = "australia:fiddlehead 3",
recipe = {"australia:tree_fern_leaves"},
replacements = {
{"australia:tree_fern_leaves", "australia:sapling_tree_fern"}
},
})
-- Wood planks
for i in ipairs(aus.treelist) do
local treename = aus.treelist[i][1]
minetest.register_craft({
output = "australia:"..treename.."_wood 4",
recipe = {
{"australia:"..treename.."_tree"}
}
})
end
--
-- Cooking recipes
--
minetest.register_craft({
type = "cooking",
output = "australia:bluestone",
recipe = "australia:bluestone_cobble",
})
minetest.register_craft({
type = "cooking",
output = "australia:red_stone",
recipe = "australia:red_cobble",
})
minetest.register_craft({
type = "cooking",
output = "australia:ferntuber_roasted",
recipe = "australia:ferntuber",
cooktime = 3,
})
minetest.register_craft({
type = "cooking",
output = "australia:fiddlehead_roasted",
recipe = "australia:fiddlehead",
cooktime = 1,
})
--
-- Fuels
--