forked from coil0/replacer
-
Notifications
You must be signed in to change notification settings - Fork 3
/
crafts.lua
58 lines (52 loc) · 1.25 KB
/
crafts.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
local r = replacer
local rm = r.materials
if not r.hide_recipe_basic then
minetest.register_craft({
output = r.tool_name_basic,
recipe = {
{ rm.chest, '', rm.gold_ingot },
{ '', rm.mese_crystal_fragment, '' },
{ rm.steel_ingot, '', '' },
}
})
end
-- only if technic mod is installed
if r.has_technic_mod then
if not r.hide_recipe_technic_upgrade then
minetest.register_craft({
output = r.tool_name_technic,
recipe = {
{ r.tool_name_basic, 'technic:green_energy_crystal', '' },
{ '', '', '' },
{ '', '', '' },
}
})
end
if not r.hide_recipe_technic_direct then
-- direct upgrade craft
minetest.register_craft({
output = r.tool_name_technic,
recipe = {
{ rm.chest, 'technic:green_energy_crystal', rm.gold_ingot },
{ '', rm.mese_crystal_fragment, '' },
{ rm.steel_ingot, '', rm.chest },
}
})
end
elseif r.enable_recipe_technic_without_technic then
minetest.register_craft({
output = r.tool_name_technic,
recipe = {
{ rm.chest, rm.axe_diamond, rm.gold_ingot },
{ rm.axe_diamond, rm.mese_crystal_fragment, rm.axe_diamond },
{ rm.steel_ingot, rm.axe_diamond, rm.chest },
}
})
end
minetest.register_craft({
output = 'replacer:inspect',
recipe = {
{ rm.torch },
{ rm.stick },
}
})