Files
spacesuit/repair.lua
2019-02-25 19:10:19 +01:00

24 lines
395 B
Lua

local has_vacuum = minetest.get_modpath("vacuum")
if has_vacuum then
function repair_recipe(partname)
minetest.register_craft({
type = "shapeless",
output = partname,
recipe = {
"vacuum:air_bottle",
partname
}
})
end
repair_recipe("spacesuit:helmet")
repair_recipe("spacesuit:chestplate")
repair_recipe("spacesuit:pants")
repair_recipe("spacesuit:boots")
end