-
Notifications
You must be signed in to change notification settings - Fork 7
/
spacesuit.lua
47 lines (44 loc) · 1.04 KB
/
spacesuit.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
-- spacesuit repair recipes
local function repair_recipe(partname)
minetest.register_craft({
type = "shapeless",
output = partname,
recipe = {
"vacuum:air_bottle",
partname
},
replacements = {
{"vacuum:air_bottle", "vessels:steel_bottle"}
}
})
end
repair_recipe("spacesuit:helmet")
repair_recipe("spacesuit:chestplate")
repair_recipe("spacesuit:pants")
repair_recipe("spacesuit:boots")
if minetest.get_modpath("unified_inventory") then
unified_inventory.register_craft({
type = "filling",
output = "spacesuit:helmet 1 1",
items = {"spacesuit:helmet 1 60000"},
width = 0,
})
unified_inventory.register_craft({
type = "filling",
output = "spacesuit:chestplate 1 1",
items = {"spacesuit:chestplate 1 60000"},
width = 0,
})
unified_inventory.register_craft({
type = "filling",
output = "spacesuit:pants 1 1",
items = {"spacesuit:pants 1 60000"},
width = 0,
})
unified_inventory.register_craft({
type = "filling",
output = "spacesuit:boots 1 1",
items = {"spacesuit:boots 1 60000"},
width = 0,
})
end