2023-11-04 18:00:17 +01:00
|
|
|
-- crafting/shared.lua
|
2017-02-24 23:14:41 +01:00
|
|
|
|
|
|
|
local me = microexpansion
|
|
|
|
|
2023-11-04 18:00:17 +01:00
|
|
|
-- custom items that are used by multiple devices
|
2024-01-24 09:53:14 +01:00
|
|
|
local steel_infused_obsidian_ingot_recipe, machine_casing_recipe
|
2017-02-24 23:14:41 +01:00
|
|
|
|
2023-12-19 20:12:29 +01:00
|
|
|
if minetest.get_modpath("mcl_core") then
|
2024-01-24 09:53:14 +01:00
|
|
|
steel_infused_obsidian_ingot_recipe = {
|
|
|
|
{ 2, {
|
|
|
|
{ "mcl_core:iron_ingot", "mcl_core:obsidian", "mcl_core:iron_ingot" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
machine_casing_recipe = {
|
|
|
|
{ 1, {
|
|
|
|
{"mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot"},
|
|
|
|
{"mcl_core:iron_ingot", "mcl_copper:copper_ingot", "mcl_core:iron_ingot"},
|
|
|
|
{"mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot"},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2023-12-19 20:12:29 +01:00
|
|
|
else
|
2024-01-24 09:53:14 +01:00
|
|
|
steel_infused_obsidian_ingot_recipe = {
|
|
|
|
{ 2, {
|
|
|
|
{ "default:steel_ingot", "default:obsidian_shard", "default:steel_ingot" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2017-02-24 23:15:02 +01:00
|
|
|
|
2024-01-24 09:53:14 +01:00
|
|
|
machine_casing_recipe = {
|
|
|
|
{ 1, {
|
|
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "default:copper_ingot", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2023-12-19 20:12:29 +01:00
|
|
|
end
|
|
|
|
-- [register item] Steel Infused Obsidian Ingot
|
|
|
|
me.register_item("steel_infused_obsidian_ingot", {
|
2024-01-24 09:53:14 +01:00
|
|
|
description = "Steel Infused Obsidian Ingot",
|
|
|
|
recipe = steel_infused_obsidian_ingot_recipe,
|
2023-12-19 20:12:29 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
-- [register item] Machine Casing
|
|
|
|
me.register_item("machine_casing", {
|
2024-01-24 09:53:14 +01:00
|
|
|
description = "Machine Casing",
|
|
|
|
recipe = machine_casing_recipe,
|
2017-02-24 23:15:02 +01:00
|
|
|
})
|