mineclone2 compatibility

This commit is contained in:
FaceDeer 2020-10-19 23:22:41 -06:00
parent 5b7e1c6b42
commit d960bfb04e
3 changed files with 12 additions and 2 deletions

View File

@ -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 directions! However, Mese on opposing sides cancel each other. Thanks to
oscar14 for the Gold-Mese-Transport idea! 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 ## API

View File

@ -51,3 +51,11 @@ if minetest.get_modpath("default") then
meseport.nodepowers["default:mese"] = 100 meseport.nodepowers["default:mese"] = 100
meseport.register_actionblock("default:goldblock") meseport.register_actionblock("default:goldblock")
end 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

View File

@ -1,2 +1,2 @@
name = meseport name = meseport
optional_depends = default optional_depends = default, mcl_core, mesecons_torch