mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-07-03 00:40:20 +02:00
wire craft
This commit is contained in:
18
init.lua
18
init.lua
@ -64,12 +64,24 @@ function digilines.receptor_send(pos, rules, channel, msg)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local fiber = "mesecons_materials:fiber"
|
||||||
|
local insulated = "mesecons_insulated:insulated_off"
|
||||||
|
local gold_ingot = "default:gold_ingot"
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_core") then
|
||||||
|
gold_ingot = "mcl_core:gold_ingot"
|
||||||
|
-- MCL dont support mesecons insulated
|
||||||
|
if not minetest.get_modpath("mesecons_insulated") then
|
||||||
|
insulated = "mesecons:redstone"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'digilines:wire_std_00000000 2',
|
output = 'digilines:wire_std_00000000 2',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'mesecons_materials:fiber', 'mesecons_materials:fiber', 'mesecons_materials:fiber'},
|
{fiber, fiber, fiber},
|
||||||
{'mesecons_insulated:insulated_off', 'mesecons_insulated:insulated_off', 'default:gold_ingot'},
|
{insulated, insulated, gold_ingot},
|
||||||
{'mesecons_materials:fiber', 'mesecons_materials:fiber', 'mesecons_materials:fiber'},
|
{fiber, fiber, fiber},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user