diff --git a/README.md b/README.md index 7c648b3..cc5a358 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,9 @@ This mod is a continuation of NPX Team's Not So Simple Mobs. Notes from the orig * License for the code: `LGPLv2.1 or later` * see [LICENSE.txt](LICENSE.txt) and [license_notes.md](license_notes.md) for info on the license update * Copyright NPX Team and contributors -* License for all the models, textures and sounds: `CC-BY-SA 4.0`, attribution "NPX Team" +* License for all the models, textures and sounds, except those mentioned further: `CC-BY-SA 4.0`, attribution "NPX Team" +* License for individual artistic contributions: + * `sounds/nssm_energy_powerup.ogg` - Tai Kedzierski, CC-BY-SA 4.0 ## Dependencies diff --git a/materials/energy_globes.lua b/materials/energy_globes.lua index b1342c3..946d6d5 100644 --- a/materials/energy_globes.lua +++ b/materials/energy_globes.lua @@ -47,6 +47,13 @@ local function set_player_boost(user, duration, power) local remaining = stack_boost(user:get_player_name(), duration) minetest.chat_send_player(user:get_player_name(), "You have "..(math.floor(remaining*10)/10).."s of boost") + + local userpos = user:get_pos() + minetest.sound_play("nssm_energy_powerup", { + pos = userpos, + max_hear_distance = 20, + gain = 1, + }) end minetest.register_globalstep(function(dtime) diff --git a/sounds/nssm_energy_powerup.ogg b/sounds/nssm_energy_powerup.ogg new file mode 100644 index 0000000..3fc5702 Binary files /dev/null and b/sounds/nssm_energy_powerup.ogg differ