From 93751a90140a5833fb52b36e5373a64fffb5fafd Mon Sep 17 00:00:00 2001 From: blut Date: Mon, 3 Feb 2025 14:17:15 +0100 Subject: [PATCH] mesecons_gamecompat: Add redstone <--> mesecon wire crafting recipes --- mesecons_gamecompat/{compat_mcl.lua => compat_mcla.lua} | 9 +++++++++ mesecons_gamecompat/init.lua | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) rename mesecons_gamecompat/{compat_mcl.lua => compat_mcla.lua} (90%) diff --git a/mesecons_gamecompat/compat_mcl.lua b/mesecons_gamecompat/compat_mcla.lua similarity index 90% rename from mesecons_gamecompat/compat_mcl.lua rename to mesecons_gamecompat/compat_mcla.lua index 10e1a8a..0d1b315 100644 --- a/mesecons_gamecompat/compat_mcl.lua +++ b/mesecons_gamecompat/compat_mcla.lua @@ -41,3 +41,12 @@ end -- Textures mesecon.texture.steel_block = "default_steel_block.png" + +core.register_craft({ + output = "mesecons:wire_00000000_off", + recipe = {{"mcl_redstone:redstone"}} +}) +core.register_craft({ + output = "mcl_redstone:redstone", + recipe = {{"mesecons:wire_00000000_off"}} +}) diff --git a/mesecons_gamecompat/init.lua b/mesecons_gamecompat/init.lua index 2af155d..c8734ba 100644 --- a/mesecons_gamecompat/init.lua +++ b/mesecons_gamecompat/init.lua @@ -14,9 +14,9 @@ if minetest.get_modpath("default") then dofile(minetest.get_modpath("mesecons_gamecompat").."/compat_mtg.lua") end -if minetest.get_modpath("mcl_core") then +if minetest.get_modpath("mcl_redstone") then minetest.log("info", "Mesecons: detected MineClonia Game for game compatibility") - dofile(minetest.get_modpath("mesecons_gamecompat").."/compat_mcl.lua") + dofile(minetest.get_modpath("mesecons_gamecompat").."/compat_mcla.lua") end if minetest.get_modpath("doors") then