mirror of
https://github.com/mt-mods/basic_materials.git
synced 2025-01-26 18:00:17 +01:00
add silver-spool recipes only if silver is present
This commit is contained in:
parent
8631a2670b
commit
800f740161
14
crafts.lua
14
crafts.lua
@ -16,6 +16,10 @@ 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",
|
||||||
@ -376,7 +380,8 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
if materials.silver_ingot then
|
||||||
|
minetest.register_craft( {
|
||||||
output = "basic_materials:silver_wire 2",
|
output = "basic_materials:silver_wire 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -384,9 +389,9 @@ minetest.register_craft( {
|
|||||||
"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 = {
|
||||||
@ -394,4 +399,5 @@ minetest.register_craft( {
|
|||||||
materials.copper_ingot,
|
materials.copper_ingot,
|
||||||
materials.silver_ingot,
|
materials.silver_ingot,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user