Rename mod: default to mcl_core
This commit is contained in:
parent
d0ecf0c66c
commit
02fe45bca2
393 changed files with 2205 additions and 2210 deletions
|
@ -15,7 +15,7 @@ minetest.register_node("mesecons_noteblock:noteblock", {
|
|||
minetest.add_node(pos, {name = node.name, param2 = param2})
|
||||
mesecon.noteblock_play(pos, param2)
|
||||
end,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector = { -- play sound when activated
|
||||
action_on = function (pos, node)
|
||||
mesecon.noteblock_play(pos, node.param2)
|
||||
|
@ -66,19 +66,19 @@ mesecon.noteblock_play = function (pos, param2)
|
|||
soundname="mesecons_noteblock_gsharp"
|
||||
end
|
||||
local block_below_name = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
|
||||
if block_below_name == "default:glass" then
|
||||
if block_below_name == "mcl_core:glass" then
|
||||
soundname="mesecons_noteblock_hihat"
|
||||
end
|
||||
if block_below_name == "default:stone" then
|
||||
if block_below_name == "mcl_core:stone" then
|
||||
soundname="mesecons_noteblock_kick"
|
||||
end
|
||||
if block_below_name == "default:chest" then
|
||||
if block_below_name == "mcl_core:chest" then
|
||||
soundname="mesecons_noteblock_snare"
|
||||
end
|
||||
if block_below_name == "default:tree" then
|
||||
if block_below_name == "mcl_core:tree" then
|
||||
soundname="mesecons_noteblock_crash"
|
||||
end
|
||||
if block_below_name == "default:wood" then
|
||||
if block_below_name == "mcl_core:wood" then
|
||||
soundname="mesecons_noteblock_litecrash"
|
||||
end
|
||||
minetest.sound_play(soundname,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue