player.playSound(SoundTypes.UI_TOAST_CHALLENGE_COMPLETE, player.getPosition(), 2, 1,2);
How to disable sound distance?
player.playSound(SoundTypes.UI_TOAST_CHALLENGE_COMPLETE, player.getPosition(), 2, 1,2);
How to disable sound distance?
What do you mean ‘disable’ distance?
if you’re concerned about ‘only’ the one player hearing the sound, and no one else around them, that is what the player.playsound is for. World.playsound will play a sound at a point for all clients to be able to hear, player.playsound will only make that sound appear for that player’s client.