forked from MineClone5/MineClone5
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
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue