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