-
Notifications
You must be signed in to change notification settings - Fork 0
/
crafting.lua
58 lines (50 loc) · 1.08 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
local handle, core, shaft
if minetest.get_modpath("default") then
handle = "default:stick"
core = "default:diamond"
shaft = "default:steel_ingot"
end
if minetest.get_modpath("mcl_core") then
handle = "mcl_core:stick"
core = "mcl_core:diamond"
shaft = "mcl_core:iron_ingot"
end
if minetest.get_modpath("basic_materials") then
core = "basic_materials:ic"
shaft = "basic_materials:steel_bar"
end
if minetest.get_modpath("technic") then
core = "technic:control_logic_unit"
minetest.register_craft({
output = "omnidriver:omnidriver",
recipe = {
{"technic:sonic_screwdriver"}
}
})
end
if minetest.get_modpath("screwdriver") and core then
minetest.register_craft({
output = "omnidriver:omnidriver",
recipe = {
{"screwdriver:screwdriver", core},
}
})
end
if handle and shaft and core then
minetest.register_craft({
output = "omnidriver:omnidriver",
recipe = {
{shaft, "", ""},
{"", core, ""},
{"", "", handle}
}
})
minetest.register_craft({
output = "omnidriver:omnidriver",
recipe = {
{"", "", shaft},
{"", core, ""},
{handle, "", ""}
}
})
end