Buy Me a Coffee at ko-fi.com

Plays the specified sound at the specified position with the given volume and pitch multipliers
The sound id is either an identifier or the custom sound name
Volume in Minecraft refers to how far away people can hear the sound from, not the actual loudness of it
If you don't give values for volume and pitch, the default values are 1

overload 1:
SoundAPI.playSound(sound: String, pos: Vector3): Sound
typings.-1808118735typings.2002444080typings.80074991
Method PropertyFluent DescriptionRepresentation
sound accepts
pos accepts
Return Value
overload 2:
SoundAPI.playSound(sound: String, posX: Number, posY: Number, posZ: Number): Sound
typings.-1808118735typings.-1950496919typings.-1950496919typings.-1950496919typings.80074991
Method PropertyFluent DescriptionRepresentation
sound accepts
posX accepts
posY accepts
posZ accepts
Return Value
overload 3:
SoundAPI.playSound(sound: String, pos: Vector3, volume: Number, pitch: Number, loop: Boolean): Sound
typings.-1808118735typings.2002444080typings.-1950496919typings.-1950496919typings.1729365000typings.80074991
Method PropertyFluent DescriptionRepresentation
sound accepts
pos accepts
volume accepts
pitch accepts
loop accepts
Return Value
overload 4:
SoundAPI.playSound(sound: String, posX: Number, posY: Number, posZ: Number, volume: Number, pitch: Number, loop: Boolean): Sound
typings.-1808118735typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.1729365000typings.80074991
Method PropertyFluent DescriptionRepresentation
sound accepts
posX accepts
posY accepts
posZ accepts
volume accepts
pitch accepts
loop accepts
Return Value