fix bell sound

This commit is contained in:
cora 2022-05-20 13:44:17 +02:00
parent fe164e5f41
commit bf1a939564
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@ mcl_bells = {}
local has_mcl_wip = minetest.get_modpath("mcl_wip")
function mcl_bells.ring_once(pos)
minetest.sound_play( "mcl_bells_bell_stroke", { pos = pos, gain = 1.5, max_hear_distance = 300,});
end
minetest.register_node("mcl_bells:bell", {
description = S("Bell"),
inventory_image = "bell.png",
@ -18,11 +22,11 @@ minetest.register_node("mcl_bells:bell", {
},
},
is_ground_content = false,
stack_max = 64,
groups = {pickaxey=2, deco_block=1 },
sounds = mcl_sounds.node_sound_metal_defaults(),
_mcl_blast_resistance = 6,
_mcl_hardness = 5,
on_rightclick = mcl_bells.ring_once,
})
if has_mcl_wip then