Add activate and disable sounds

master
Wuzzy 2016-09-01 22:12:04 +02:00
parent 75126af8f7
commit 7f511b847c
3 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,11 @@ easyvend.version = 1.02
dofile(minetest.get_modpath("easyvend") .. "/easyvend.lua")
local sounds = default.node_sound_wood_defaults({
place = { name = "easyvend_activate", gain = 1 },
dug = { name = "easyvend_disable", gain = 1 },
})
minetest.register_node("easyvend:vendor", {
description = "Vending Machine",
tile_images ={"easyvend_side.png", "easyvend_side.png", "easyvend_side.png",
@ -33,6 +38,8 @@ minetest.register_node("easyvend:vendor", {
after_place_node = easyvend.after_place_node,
can_dig = easyvend.can_dig,
on_receive_fields = easyvend.on_receive_fields,
sounds = sounds,
allow_metadata_inventory_put = easyvend.allow_metadata_inventory_put,
allow_metadata_inventory_take = easyvend.allow_metadata_inventory_take,
allow_metadata_inventory_move = easyvend.allow_metadata_inventory_move,
@ -49,6 +56,8 @@ minetest.register_node("easyvend:depositor", {
after_place_node = easyvend.after_place_node,
can_dig = easyvend.can_dig,
on_receive_fields = easyvend.on_receive_fields,
sounds = sounds,
allow_metadata_inventory_put = easyvend.allow_metadata_inventory_put,
allow_metadata_inventory_take = easyvend.allow_metadata_inventory_take,
allow_metadata_inventory_move = easyvend.allow_metadata_inventory_move,

Binary file not shown.

BIN
sounds/easyvend_disable.ogg Normal file

Binary file not shown.