No ale nie kazdy na tym gra i nie kazdy wie o co ci chodzi
function nearestPlayer(loc: location) :: player:
set {_nearest} to first element of all players in world of {_loc}
loop all players in world of {_loc}:
if (distance between loop-player and {_loc}) < (distance between {_loc} and {_nearest}):
set {_nearest} to loop-player
return {_nearest}
on right click:
if player's tool is snow ball:
chance of 5%:
teleport player to nearestPlayer(player's location)