1
0
Fork 0

Place hopper placement sound

This commit is contained in:
Wuzzy 2017-01-17 18:42:22 +01:00
parent 9199ab2647
commit 6a2bffb078
2 changed files with 3 additions and 2 deletions

View File

@ -506,6 +506,7 @@ minetest.register_craftitem("mcl_hoppers:hopper_item", {
placed = true placed = true
end end
if placed == true then if placed == true then
minetest.sound_play(default.node_sound_metal_defaults().place, { pos = pos2 })
if not minetest.setting_getbool("creative_mode") then if not minetest.setting_getbool("creative_mode") then
itemstack:take_item() itemstack:take_item()
end end

View File

@ -131,8 +131,8 @@ mesecon:register_mvps_stopper("default:sign")
mesecon:register_mvps_stopper("default:obsidian") mesecon:register_mvps_stopper("default:obsidian")
mesecon:register_mvps_stopper("default:bedrock") mesecon:register_mvps_stopper("default:bedrock")
mesecon:register_mvps_stopper("default:barrier") mesecon:register_mvps_stopper("default:barrier")
mesecon:register_mvps_stopper("hopper:hopper") mesecon:register_mvps_stopper("mcl_hoppers:hopper")
mesecon:register_mvps_stopper("hopper:hopper_side") mesecon:register_mvps_stopper("mcl_hoppers:hopper_side")
mesecon:register_mvps_stopper("mcl_jukebox:jukebox") mesecon:register_mvps_stopper("mcl_jukebox:jukebox")
mesecon:register_mvps_stopper("mesecons_commandblock:commandblock_off") mesecon:register_mvps_stopper("mesecons_commandblock:commandblock_off")
mesecon:register_mvps_stopper("mesecons_commandblock:commandblock_on") mesecon:register_mvps_stopper("mesecons_commandblock:commandblock_on")