localSound

fun localSound(sound: Sound, location: Location, volume: Float = 1.0f, pitch: Float = 1.0f)

Plays a sound at a specific location for the player only.

Parameters

sound

The sound to play.

location

The location from which the sound originates.

volume

The volume level.

pitch

The pitch level.