mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 11:17:30 +01:00
Add sound for chorus fruit teleport
This commit is contained in:
parent
064858ff59
commit
232dbca783
@ -316,7 +316,9 @@ local random_teleport = function(player)
|
|||||||
end
|
end
|
||||||
if streak >= 2 then
|
if streak >= 2 then
|
||||||
-- JACKPOT! Now we can teleport.
|
-- 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
|
return true
|
||||||
end
|
end
|
||||||
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 New Issue
Block a user