mirror of
https://github.com/mt-mods/spacesuit.git
synced 2026-05-04 13:56:51 -06:00
spacesuit repair with air bottles
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
default
|
default
|
||||||
3d_armor
|
3d_armor
|
||||||
|
vacuum?
|
||||||
|
|||||||
@@ -10,5 +10,6 @@ dofile(MP.."/suit.lua")
|
|||||||
dofile(MP.."/crafts.lua")
|
dofile(MP.."/crafts.lua")
|
||||||
dofile(MP.."/hud.lua")
|
dofile(MP.."/hud.lua")
|
||||||
dofile(MP.."/drowning.lua")
|
dofile(MP.."/drowning.lua")
|
||||||
|
dofile(MP.."/repair.lua")
|
||||||
|
|
||||||
print("[OK] Spacesuit")
|
print("[OK] Spacesuit")
|
||||||
|
|||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
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
|
||||||
|
|
||||||
Reference in New Issue
Block a user