From 62227b7c88ea7176d7d8ad3826efbfd3056db078 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:30:07 -0500 Subject: [PATCH] add missed materials from basic materials and update mod.conf (#12) --- mod.conf | 2 +- src/materials.lua | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/mod.conf b/mod.conf index 79eb4ff..f7568a6 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,3 @@ name = xcompat description = Provides cross compatibility between mods and games for sounds and crafting materials. -optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees +optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees, mcl_core diff --git a/src/materials.lua b/src/materials.lua index 943b8b9..841f631 100644 --- a/src/materials.lua +++ b/src/materials.lua @@ -57,6 +57,20 @@ if minetest.get_modpath("moreores") then materials.silver_ingot = "moreores:silver_ingot" end +if minetest.get_modpath("technic") then + materials.lead_ingot = "technic:lead_ingot" + materials.carbon_steel_ingot = "technic:carbon_steel_ingot" + materials.stainless_steel_ingot = "technic:stainless_steel_ingot" +end + +if minetest.get_modpath("aloz") then + materials.aluminum_ingot = "aloz:aluminum_ingot" +end + +if minetest.get_modpath("techage") then + materials.aluminum_ingot = "techage:aluminum" +end + if minetest.get_modpath("mcl_core") then materials = { dirt = "mcl_core:dirt", @@ -233,10 +247,16 @@ elseif minetest.get_modpath("hades_core") then end if minetest.get_modpath("hades_extraores") then materials["silver_ingot"] = "hades_extraores:silver_ingot" + materials["aluminum_ingot"] = "hades_extraores:aluminum_ingot" end if minetest.get_modpath("hades_default") then materials.desert_sand = "hades_default:desert_sand" end + if minetest.get_modpath("hades_technic") then + materials.lead_ingot = "hades_technic:lead_ingot" + materials.carbon_steel_ingot = "hades_technic:carbon_steel_ingot" + materials.stainless_steel_ingot = "hades_technic:stainless_steel_ingot" + end end return materials \ No newline at end of file