mirror of
https://github.com/mt-mods/spacesuit.git
synced 2026-05-04 13:56:51 -06:00
This gives the empty heavy iron bottle back when crafting an air bottle and a spacesuit part to repair the spacesuit part.
27 lines
471 B
Lua
27 lines
471 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
|
|
},
|
|
replacements = {
|
|
{"vacuum:air_bottle", "vessels:steel_bottle"}
|
|
}
|
|
})
|
|
end
|
|
|
|
repair_recipe("spacesuit:helmet")
|
|
repair_recipe("spacesuit:chestplate")
|
|
repair_recipe("spacesuit:pants")
|
|
repair_recipe("spacesuit:boots")
|
|
|
|
|
|
end
|
|
|