forked from minetest-mods/mesecons
MineClonia compat (#677)
This commit is contained in:
parent
368b294c70
commit
9ff3ab1007
|
@ -27,6 +27,8 @@ read_globals = {
|
|||
"table.insert_all",
|
||||
"vector",
|
||||
"VoxelArea",
|
||||
"mcl_dyes",
|
||||
"mcl_sounds",
|
||||
}
|
||||
|
||||
globals = {"mesecon"}
|
||||
|
|
43
mesecons_gamecompat/compat_mcl.lua
Normal file
43
mesecons_gamecompat/compat_mcl.lua
Normal file
|
@ -0,0 +1,43 @@
|
|||
|
||||
--Aliases
|
||||
|
||||
minetest.register_alias("mesecons_gamecompat:chest", "mcl_chests:chest")
|
||||
minetest.register_alias("mesecons_gamecompat:chest_locked", "mcl_chests:chest")
|
||||
minetest.register_alias("mesecons_gamecompat:coalblock", "mcl_core:coalblock")
|
||||
minetest.register_alias("mesecons_gamecompat:cobble", "mcl_core:cobble")
|
||||
minetest.register_alias("mesecons_gamecompat:glass", "mcl_core:glass")
|
||||
minetest.register_alias("mesecons_gamecompat:lava_source", "mcl_core:lava_source")
|
||||
minetest.register_alias("mesecons_gamecompat:mese", "mesecons:redstoneblock")
|
||||
minetest.register_alias("mesecons_gamecompat:mese_crystal", "mesecoms:redstone")
|
||||
minetest.register_alias("mesecons_gamecompat:mese_crystal_fragment", "mesecons:redstone")
|
||||
minetest.register_alias("mesecons_gamecompat:obsidian_glass", "mcl_core:glass")
|
||||
minetest.register_alias("mesecons_gamecompat:stone", "mcl_core:stone")
|
||||
minetest.register_alias("mesecons_gamecompat:steel_ingot", "mcl_core:iron_ingot")
|
||||
minetest.register_alias("mesecons_gamecompat:steelblock", "mcl_core:steelblock")
|
||||
minetest.register_alias("mesecons_gamecompat:torch", "mcl_torches:torch")
|
||||
|
||||
if minetest.get_modpath("mcl_dyes") then
|
||||
for color, def in ipairs(mcl_dyes.colors) do
|
||||
minetest.register_alias("mesecons_gamecompat:dye_" .. def.mcl2, "mcl_dyes:" .. color)
|
||||
end
|
||||
end
|
||||
|
||||
-- Sounds
|
||||
|
||||
mesecon.node_sound.default = mcl_sounds.node_sound_defaults()
|
||||
mesecon.node_sound.glass = mcl_sounds.node_sound_glass_defaults()
|
||||
mesecon.node_sound.leaves = mcl_sounds.node_sound_leaves_defaults()
|
||||
mesecon.node_sound.stone = mcl_sounds.node_sound_stone_defaults()
|
||||
mesecon.node_sound.wood = mcl_sounds.node_sound_wood_defaults()
|
||||
|
||||
if minetest.get_modpath("mcl_fire") then
|
||||
mesecon.sound_name.fire = "fire_fire"
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_tnt") then
|
||||
mesecon.sound_name.explode = "tnt_explode"
|
||||
end
|
||||
|
||||
-- Textures
|
||||
|
||||
mesecon.texture.steel_block = "default_steel_block.png"
|
|
@ -13,3 +13,8 @@ if minetest.get_modpath("default") then
|
|||
minetest.log("info", "Mesecons: detected Minetest Game for game compatibility")
|
||||
dofile(minetest.get_modpath("mesecons_gamecompat").."/compat_mtg.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_core") then
|
||||
minetest.log("info", "Mesecons: detected MineClonia Game for game compatibility")
|
||||
dofile(minetest.get_modpath("mesecons_gamecompat").."/compat_mcl.lua")
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
name = mesecons_gamecompat
|
||||
depends = mesecons
|
||||
optional_depends = fire, default, dye, mesecons_mvps, tnt
|
||||
optional_depends = fire, default, dye, mesecons_mvps, tnt, mcl_fire, mcl_core, mcl_dye, mcl_tnt
|
||||
|
|
Loading…
Reference in New Issue
Block a user