This commit is contained in:
Freeman 2023-10-08 12:47:12 +02:00
parent cf0a7d9c45
commit dd4038fa3e
4 changed files with 46 additions and 11 deletions

View File

@ -407,8 +407,14 @@ if minetest.global_exists("tubelib") then
})
end
local chest = "default:chest"
if minetest.get_modpath("mcl_chests") then
chest = "mcl_chests:chest"
end
minetest.register_craft({
type = "shapeless",
output = "digilines:chest",
recipe = {"default:chest", "digilines:wire_std_00000000"}
recipe = {chest, "digilines:wire_std_00000000"}
})

19
lcd.lua
View File

@ -341,14 +341,21 @@ minetest.register_entity(":digilines_lcd:text", {
on_activate = set_texture,
})
local steel_ingot = "default:steel_ingot"
local glass = "default:glass"
local lightstone = "mesecons_lightstone:lightstone_green_off"
if minetest.get_modpath("mcl_core") then
steel_ingot = "mcl_core:iron_ingot"
glass = "mcl_core:glass"
lightstone = "mesecons_lightstone:lightstone_off"
end
minetest.register_craft({
output = "digilines:lcd 2",
recipe = {
{"default:steel_ingot", "digilines:wire_std_00000000", "default:steel_ingot"},
{"mesecons_lightstone:lightstone_green_off",
"mesecons_lightstone:lightstone_green_off",
"mesecons_lightstone:lightstone_green_off"},
{"default:glass","default:glass","default:glass"}
{steel_ingot, "digilines:wire_std_00000000", steel_ingot},
{lightstone, lightstone, lightstone},
{glass, glass, glass}
}
})

View File

@ -65,10 +65,18 @@ minetest.register_node("digilines:lightsensor", {
end,
})
local steel_ingot = "default:steel_ingot"
local glass = "default:glass"
if minetest.get_modpath("mcl_core") then
steel_ingot = "mcl_core:iron_ingot"
glass = "mcl_core:glass"
end
minetest.register_craft({
output = "digilines:lightsensor",
recipe = {
{"default:glass","default:glass","default:glass"},
{"default:steel_ingot", "digilines:wire_std_00000000", "default:steel_ingot"},
{glass, glass, glass},
{steel_ingot, "digilines:wire_std_00000000", steel_ingot},
}
})

18
rtc.lua
View File

@ -61,11 +61,25 @@ minetest.register_node("digilines:rtc", {
end,
})
local steel_ingot = "default:steel_ingot"
local mese_crystal = "default:mese_crystal_fragment"
local dye_black = "dye:black"
if minetest.get_modpath("mcl_core") then
steel_ingot = "mcl_core:iron_ingot"
glass = "mcl_core:glass"
mese_crystal = "mesecons:redstone"
end
if minetest.get_modpath("mcl_dye") then
dye_black = "mcl_dye:black"
end
minetest.register_craft({
output = "digilines:rtc",
recipe = {
{"", "dye:black", ""},
{"default:steel_ingot", "default:mese_crystal_fragment", "default:steel_ingot"},
{"", dye_black, ""},
{steel_ingot, mese_crystal, steel_ingot},
{"", "digilines:wire_std_00000000", ""}
}
})