mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-13 22:00:33 +01:00
43 lines
2.0 KiB
Lua
43 lines
2.0 KiB
Lua
|
if minetest.get_modpath("default") then
|
||
|
minetest.register_alias("mesecons_gamecompat:chest", "default:chest")
|
||
|
minetest.register_alias("mesecons_gamecompat:chest_locked", "default:chest_locked")
|
||
|
minetest.register_alias("mesecons_gamecompat:coalblock", "default:coalblock")
|
||
|
minetest.register_alias("mesecons_gamecompat:cobble", "default:cobble")
|
||
|
minetest.register_alias("mesecons_gamecompat:glass", "default:glass")
|
||
|
minetest.register_alias("mesecons_gamecompat:lava_source", "default:lava_source")
|
||
|
minetest.register_alias("mesecons_gamecompat:mese", "default:mese")
|
||
|
minetest.register_alias("mesecons_gamecompat:mese_crystal", "default:mese_crystal")
|
||
|
minetest.register_alias("mesecons_gamecompat:mese_crystal_fragment", "default:mese_crystal_fragment")
|
||
|
minetest.register_alias("mesecons_gamecompat:obsidian_glass", "default:obsidian_glass")
|
||
|
minetest.register_alias("mesecons_gamecompat:stone", "default:stone")
|
||
|
minetest.register_alias("mesecons_gamecompat:steel_ingot", "default:steel_ingot")
|
||
|
minetest.register_alias("mesecons_gamecompat:steelblock", "default:steelblock")
|
||
|
minetest.register_alias("mesecons_gamecompat:torch", "default:torch")
|
||
|
|
||
|
mesecon.node_sound_defaults = default.node_sound_defaults()
|
||
|
mesecon.node_sound_glass_defaults = default.node_sound_glass_defaults()
|
||
|
mesecon.node_sound_leaves_defaults = default.node_sound_leaves_defaults()
|
||
|
mesecon.node_sound_stone_defaults = default.node_sound_stone_defaults()
|
||
|
mesecon.node_sound_wood_defaults = default.node_sound_wood_defaults()
|
||
|
|
||
|
mesecon.steel_block_texture = "default_steel_block.png"
|
||
|
end
|
||
|
|
||
|
local dye_colors = {
|
||
|
"red", "green", "blue", "grey", "dark_grey", "yellow",
|
||
|
"orange", "white", "pink", "magenta", "cyan", "violet",
|
||
|
}
|
||
|
if minetest.get_modpath("dye") then
|
||
|
for _, color in ipairs(dye_colors) do
|
||
|
minetest.register_alias("mesecons_gamecompat:dye_" .. color, "dye:" .. color)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
if minetest.get_modpath("fire") then
|
||
|
mesecon.sound_name_fire = "fire_fire"
|
||
|
end
|
||
|
|
||
|
if minetest.get_modpath("tnt") then
|
||
|
mesecon.sound_name_explode = "tnt_explode"
|
||
|
end
|