diff --git a/inventory.lua b/inventory.lua index a8d2d80..903415b 100644 --- a/inventory.lua +++ b/inventory.lua @@ -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"} }) diff --git a/lcd.lua b/lcd.lua index 102ccd7..54e775e 100644 --- a/lcd.lua +++ b/lcd.lua @@ -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} } }) diff --git a/lightsensor.lua b/lightsensor.lua index 22fc9a5..c506be7 100644 --- a/lightsensor.lua +++ b/lightsensor.lua @@ -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}, } }) diff --git a/rtc.lua b/rtc.lua index 88e8483..1a8a382 100644 --- a/rtc.lua +++ b/rtc.lua @@ -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", ""} } })