sounds

The global instance of SoundAPI
field signature:
sounds
Method Property Fluent Description Representation
Field Type a SoundAPI

SoundAPI.stopSound

Stops the playing sounds from this avatar
If an id is specified,
it only stops the sounds from that id
overload 1:
sounds:stopSound()
Method Property Fluent Description Representation
Return Value nil
overload 2:
sounds:stopSound(id)
Method Property Fluent Description Representation
id accepts a String
Return Value nil

SoundAPI.playSound

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:
sounds:playSound(sound, pos)
Method Property Fluent Description Representation
sound accepts a String
pos accepts a Vector3
Return Value nil
overload 2:
sounds:playSound(sound, posX, posY, posZ)
Method Property Fluent Description Representation
sound accepts a String
posX accepts a Number
posY accepts a Number
posZ accepts a Number
Return Value nil
overload 3:
sounds:playSound(sound, pos, volume, pitch, loop)
Method Property Fluent Description Representation
sound accepts a String
pos accepts a Vector3
volume accepts a Number
pitch accepts a Number
loop accepts a Boolean
Return Value nil
overload 4:
sounds:playSound(sound, posX, posY, posZ, volume, pitch, loop)
Method Property Fluent Description Representation
sound accepts a String
posX accepts a Number
posY accepts a Number
posZ accepts a Number
volume accepts a Number
pitch accepts a Number
loop accepts a Boolean
Return Value nil

SoundAPI.addSound

figura.docs.sounds.add_sound
overload 1:
sounds:addSound(name, byte array)
Method Property Fluent Description Representation
name accepts a String
byte array accepts a table
Return Value nil
overload 2:
sounds:addSound(name, base64 text)
Method Property Fluent Description Representation
name accepts a String
base64 text accepts a String
Return Value nil
a a