mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Add sound for chorus fruit teleport
This commit is contained in:
parent
064858ff59
commit
232dbca783
2 changed files with 3 additions and 1 deletions
|
@ -316,7 +316,9 @@ local random_teleport = function(player)
|
|||
end
|
||||
if streak >= 2 then
|
||||
-- JACKPOT! Now we can teleport.
|
||||
player:set_pos({x=tpos.x, y=tpos.y-1.5, z=tpos.z})
|
||||
local goal = {x=tpos.x, y=tpos.y-1.5, z=tpos.z}
|
||||
player:set_pos(goal)
|
||||
minetest.sound_play({name="mcl_end_teleport", gain=0.8}, {pos=goal, max_hear_distance=16})
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
|
BIN
mods/ITEMS/mcl_end/sounds/mcl_end_teleport.ogg
Normal file
BIN
mods/ITEMS/mcl_end/sounds/mcl_end_teleport.ogg
Normal file
Binary file not shown.
Loading…
Reference in a new issue