diff --git a/shop.lua b/shop.lua index 86def6a..817baa3 100644 --- a/shop.lua +++ b/shop.lua @@ -100,6 +100,12 @@ local function get_stonks(pos, player) local owner = meta:get_string("owner") local stonks = meta:get_int("stonks") if name == owner and stonks > 0 then + core.sound_play("cash", { + to_player = name, + gain = 1.0, + fade = 0.0, + pitch = 1.0, + }) emeraldbank.add_emeralds(player, stonks) meta:set_int("stonks", 0) core.chat_send_player(name, S("You've earned @1 Emeralds with this shop.", stonks) ) diff --git a/sounds/cash.ogg b/sounds/cash.ogg new file mode 100644 index 0000000..894506a Binary files /dev/null and b/sounds/cash.ogg differ diff --git a/sounds/license.txt b/sounds/license.txt new file mode 100644 index 0000000..1d131d2 --- /dev/null +++ b/sounds/license.txt @@ -0,0 +1,9 @@ + +EmeraldBank Mod Souds License + +Sounds from https://freesound.org + +- cash.ogg: + + File original name: cash_register.wav + License: CC-0 (Public Domain)