diff --git a/minetestforfun_game/mods/default/sounds/default_snore.ogg b/minetestforfun_game/mods/default/sounds/default_snore.ogg new file mode 100644 index 00000000..a503dcb2 Binary files /dev/null and b/minetestforfun_game/mods/default/sounds/default_snore.ogg differ diff --git a/mods/moretrees/node_defs.lua b/mods/moretrees/node_defs.lua index c4871897..ec5d683c 100644 --- a/mods/moretrees/node_defs.lua +++ b/mods/moretrees/node_defs.lua @@ -175,6 +175,7 @@ for i in ipairs(moretrees.treelist) do groups = {snappy=3, flammable=2, leaves=1, moretrees_leaves=1}, sounds = default.node_sound_leaves_defaults(), + walkable = false, drop = { max_items = 1, items = { diff --git a/mods/snow/config.txt b/mods/snow/config.txt index b726e570..5e8431d0 100644 --- a/mods/snow/config.txt +++ b/mods/snow/config.txt @@ -15,4 +15,4 @@ legacy = false # Enables debug output. debug = false # Enables falling snow. -enable_snowfall = true +enable_snowfall = true \ No newline at end of file diff --git a/mods/sprint/esprint.lua b/mods/sprint/esprint.lua index c9cfc862..229a66e4 100644 --- a/mods/sprint/esprint.lua +++ b/mods/sprint/esprint.lua @@ -90,8 +90,8 @@ minetest.register_globalstep(function(dtime) if playerInfo["stamina"] <= 0 then playerInfo["stamina"] = 0 setSprinting(playerName, false) - minetest.chat_send_player(playerName, "Votre sprint s'arrete, plus d'endurance ! Your sprint stamina has run out !") playerInfo["timeOut"] = 1 + minetest.sound_play("default_snore",{object=player}) end end end diff --git a/mods/sprint/wsprint.lua b/mods/sprint/wsprint.lua index 17192354..e909dfcb 100644 --- a/mods/sprint/wsprint.lua +++ b/mods/sprint/wsprint.lua @@ -89,6 +89,7 @@ minetest.register_globalstep(function(dtime) if playerInfo["stamina"] <= 0 then playerInfo["stamina"] = 0 setState(playerName, 0) + minetest.sound_play("default_snore",{object=player}) end --Increase player's stamina if he/she is not sprinting and his/her stamina is less than SPRINT_STAMINA