From d5111e2e5791d1cda62e409bcfd69123c65d049a Mon Sep 17 00:00:00 2001 From: SFENCE Date: Fri, 12 Aug 2022 05:01:46 +0200 Subject: [PATCH] Stainless steel wire moved to basic_materials mod. --- crafting.lua | 33 ++++++++++++++------------------- craftitems.lua | 14 -------------- 2 files changed, 14 insertions(+), 33 deletions(-) diff --git a/crafting.lua b/crafting.lua index 2477219..4d2b763 100644 --- a/crafting.lua +++ b/crafting.lua @@ -2,6 +2,7 @@ local items = { empty_spool = "basic_materials:empty_spool", steel_gear = "basic_materials:gear_steel", + steel_wire = "basic_materials:steel_wire", steel_block = "default:steelblock", wheel_ingot = "default:steel_ingot", seat_block = "default:steelblock", @@ -22,6 +23,8 @@ if minetest.get_modpath("technic") then items.wheel_ingot = "technic:stainless_steel_ingot" items.seat_block = "technic:carbon_steel_block" items.seat_ingot = "technic:carbon_steel_ingot" + + items.steel_wire = "basic_materials:stainless_steel_wire" end if minetest.get_modpath("hades_technic") then @@ -29,32 +32,24 @@ if minetest.get_modpath("hades_technic") then items.wheel_ingot = "hades_technic:stainless_steel_ingot" items.seat_block = "hades_technic:carbon_steel_block" items.seat_ingot = "hades_technic:carbon_steel_ingot" -end - -if minetest.get_modpath("technic") or minetest.get_modpath("hades_technic") then - minetest.register_craft({ - output = "chair_lift:stainless_steel_wire 2", - recipe = { - {items.wheel_ingot,items.empty_spool}, - {items.empty_spool,""}, - }, - }) + + items.steel_wire = "basic_materials:stainless_steel_wire" end minetest.register_craft({ output = "chair_lift:steel_rope 2", recipe = { - {"chair_lift:stainless_steel_wire","chair_lift:stainless_steel_wire"}, - {"chair_lift:stainless_steel_wire","chair_lift:stainless_steel_wire"}, - {"chair_lift:stainless_steel_wire","chair_lift:stainless_steel_wire"}, + {items.steel_wire,items.steel_wire}, + {items.steel_wire,items.steel_wire}, + {items.steel_wire,items.steel_wire}, }, replacements = { - {"chair_lift:stainless_steel_wire",items.empty_spool}, - {"chair_lift:stainless_steel_wire",items.empty_spool}, - {"chair_lift:stainless_steel_wire",items.empty_spool}, - {"chair_lift:stainless_steel_wire",items.empty_spool}, - {"chair_lift:stainless_steel_wire",items.empty_spool}, - {"chair_lift:stainless_steel_wire",items.empty_spool}, + {items.steel_wire,items.empty_spool}, + {items.steel_wire,items.empty_spool}, + {items.steel_wire,items.empty_spool}, + {items.steel_wire,items.empty_spool}, + {items.steel_wire,items.empty_spool}, + {items.steel_wire,items.empty_spool}, }, }) diff --git a/craftitems.lua b/craftitems.lua index b9082f9..58d73a2 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -11,17 +11,3 @@ minetest.register_craftitem("chair_lift:rope_wheel", { inventory_image = "chair_lift_rope_wheel.png", }) -if minetest.get_modpath("technic") or minetest.get_modpath("hades_technic") then - minetest.register_craftitem("chair_lift:stainless_steel_wire", { - description = S("Spool of Stainless Steel Wire"), - inventory_image = "chair_lift_stainless_steel_wire.png", - }) -else - if minetest.get_modpath("basic_materials") then - minetest.register_alias("chair_lift:stainless_steel_wire", "basic_materials:steel_wire") - end - if minetest.get_modpath("hades_extramaterials") then - minetest.register_alias("chair_lift:stainless_steel_wire", "basic_materials:hades_steel_wire") - end -end -