Sound Definitions¶
文档版本:1.21.50.25
The collection of sound definitions this resourcepack has defined.
架构¶
sound_definition:
{
format_version "format_version"
object "sound_definitions" : opt
{
object "<any object property>" : opt
{
boolean "__use_legacy_max_distance" : opt
string "category" : opt
array "sounds" : opt
{
string "<any array element>" : opt
object "<any array element>" : opt
{
boolean "is3D" : opt
number "pitch" : opt
number "volume" : opt
boolean "stream" : opt
string "name" : opt
integer "weight" : opt
}
}
['number', 'null'] "max_distance" : opt
['number', 'null'] "min_distance" : opt
}
}
string "__use_legacy_max_distance" : opt
}
format_version:format_version
sound_definitions:object- UNDOCUMENTED: sound definitions.
sound_definitions<any object property>:object
<any object property>__use_legacy_max_distance:boolean- Whenever or not use legacy distance checking.
category:string- The category this sound belongs to, for the user to control the volume on.
sounds:array- The collection of sounds minecraft can choice from.
sounds<any array element>:string- The filepath to the sound, starts with `sounds/'.
<any array element>:object- A collection of sounds to choice from.
<any array element>is3D:boolean- UNDOCUMENTED.
pitch:number- The pitch of the audio, 1 is nomial.
volume:number- The volume of the audio, 1 is nomial.
stream:boolean- If marked true then minecraft will stream the audio.
name:string- The filepath to the sound, starts with `sounds/'.
weight:integer- UNDOCUMENTED.
max_distance:['number', 'null']- UNDOCUMENTED.
min_distance:['number', 'null']- UNDOCUMENTED.
__use_legacy_max_distance:string- UNDOCUMENTED: use legacy Maximum distance.