diff --git a/README.md b/README.md index 68617f2..695eb82 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ You can also add Mese to multiple sides in such a way to go in diagonal directions! However, Mese on opposing sides cancel each other. Thanks to oscar14 for the Gold-Mese-Transport idea! -If the default mod is not installed, another mod will need to use meseport's API to set what nodes it uses. +If Mineclone2 is installed, this mod will instead use gold blocks and Redstone blocks for teleportation. + +If neither of these mods are is not installed, another mod will need to use meseport's API to set what nodes it uses. ## API diff --git a/init.lua b/init.lua index 7ea3450..4e81685 100644 --- a/init.lua +++ b/init.lua @@ -50,4 +50,12 @@ end if minetest.get_modpath("default") then meseport.nodepowers["default:mese"] = 100 meseport.register_actionblock("default:goldblock") +end + +if minetest.get_modpath("mcl_core") + and minetest.get_modpath("mesecons_torch") + and minetest.registered_nodes["mesecons_torch:redstoneblock"] then + + meseport.register_actionblock("mcl_core:goldblock") + meseport.nodepowers["mesecons_torch:redstoneblock"] = 100 end \ No newline at end of file diff --git a/mod.conf b/mod.conf index f50f0c2..d528fd7 100644 --- a/mod.conf +++ b/mod.conf @@ -1,2 +1,2 @@ name = meseport -optional_depends = default \ No newline at end of file +optional_depends = default, mcl_core, mesecons_torch \ No newline at end of file