1
0
mirror of https://github.com/mt-mods/basic_materials.git synced 2025-07-03 00:20:26 +02:00

7 Commits

Author SHA1 Message Date
e4b766cd5c formatting fixes 2022-03-02 16:56:03 +11:00
f7039e09f3 Merge branch 'master' into hades 2022-03-02 16:33:13 +11:00
aa60caa261 Better compatibility with Hades Revisited. (#11)
* add hades revisted crafts and update sound api for sounds (#10)

* add hades revisted crafts and update sound api for sounds

* fix https://github.com/mt-mods/basic_materials/issues/9

* fix https://github.com/mt-mods/basic_materials/issues/9 part 2

* Add hades_bucket to crafts. Fix some bugs.

* Fix dependencies and recipes. Disable silicon if hades_materials is aviable.

* Remove unused dependence.

* Clear original recipe for palstic base from hades_materials. Prevent dual plastic cook recipe.

* Use register_alias_force.

* Fix spaces vs tabs.

Co-authored-by: wsor4035 <24964441+wsor4035@users.noreply.github.com>
2022-03-01 19:03:35 -05:00
0837b7d766 refactor if statment 2022-02-27 11:30:27 -05:00
6e41b10e5f add missing optional dep 2022-02-27 11:28:43 -05:00
d14a1b4e52 if statement bugfix 2022-02-27 11:27:49 -05:00
29ade1253a add hades revisted crafts and update sound api for sounds 2022-02-27 11:24:35 -05:00
2 changed files with 19 additions and 25 deletions

View File

@ -132,6 +132,6 @@ minetest.register_craftitem("basic_materials:padlock", {
if minetest.get_modpath("hades_materials") then if minetest.get_modpath("hades_materials") then
minetest.register_alias_force("basic_materials:plastic_sheet", "hades_materials:plastic_sheeting") minetest.register_alias_force("basic_materials:plastic_sheet", "hades_materials:plastic_sheeting")
minetest.register_alias_force("basic_materials:paraffin", "hades_materials:plastic_base") minetest.register_alias_force("basic_materials:paraffin", "hades_materials:plastic_base")
minetest.register_alias_force("basic_materials:silicon", "hades_materials:silicon") minetest.register_alias_force("hades_extramaterials:silicon", "hades_materials:silicon")
end end

View File

@ -16,10 +16,6 @@ local materials = {
silicon = "mesecons_materials:silicon", silicon = "mesecons_materials:silicon",
} }
if minetest.get_modpath("moreores") then
materials.silver_ingot = "moreores:silver_ingot"
end
if minetest.get_modpath("mcl_core") then if minetest.get_modpath("mcl_core") then
materials = { materials = {
dirt = "mcl_core:dirt", dirt = "mcl_core:dirt",
@ -380,8 +376,7 @@ minetest.register_craft( {
}, },
}) })
if materials.silver_ingot then minetest.register_craft( {
minetest.register_craft( {
output = "basic_materials:silver_wire 2", output = "basic_materials:silver_wire 2",
type = "shapeless", type = "shapeless",
recipe = { recipe = {
@ -389,9 +384,9 @@ if materials.silver_ingot then
"basic_materials:empty_spool", "basic_materials:empty_spool",
"basic_materials:empty_spool", "basic_materials:empty_spool",
}, },
}) })
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",
output = "basic_materials:brass_ingot 3", output = "basic_materials:brass_ingot 3",
recipe = { recipe = {
@ -399,5 +394,4 @@ if materials.silver_ingot then
materials.copper_ingot, materials.copper_ingot,
materials.silver_ingot, materials.silver_ingot,
}, },
}) })
end