0
0
Fork 0

Add sound for chorus fruit teleport

This commit is contained in:
Wuzzy 2018-01-23 04:18:19 +01:00
parent 064858ff59
commit 232dbca783
2 changed files with 3 additions and 1 deletions

View File

@ -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.