跳转至

Sound Definitions

文档版本:1.21.0.24

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_versionformat_version
format_version:
string
sound_definitionsobject
UNDOCUMENTED: sound definitions.
sound_definitions
<any object property>object
<any object property>
__use_legacy_max_distanceboolean
Whenever or not use legacy distance checking.
categorystring
The category this sound belongs to, for the user to control the volume on.
soundsarray
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>
is3Dboolean
UNDOCUMENTED.
pitchnumber
The pitch of the audio, 1 is nomial.
volumenumber
The volume of the audio, 1 is nomial.
streamboolean
If marked true then minecraft will stream the audio.
namestring
The filepath to the sound, starts with `sounds/'.
weightinteger
UNDOCUMENTED.
max_distance['number', 'null']
UNDOCUMENTED.
min_distance['number', 'null']
UNDOCUMENTED.
__use_legacy_max_distancestring
UNDOCUMENTED: use legacy Maximum distance.