跳转至

Ambient Sound Interval

文档版本:1.21.50.25

Sets the entity's delay between playing its ambient sound.

架构

ambient_sound_interval:
{
  string "event_name" : opt
  array "event_names" : opt
  {
    object "<any array element>" : opt
    {
      string "condition" : opt
      string "event_name" : opt
    }
  }
  number "range" : opt
  number "value" : opt
}
event_namestring
Level sound event to be played as the ambient sound.
event_namesarray
List of dynamic level sound events, with conditions for choosing between them. Evaluated in order, first one wins. If none evaluate to true, 'event_name' will take precedence.
event_names
<any array element>object
<any array element>
conditionstring
The condition that must be satisfied to select the given ambient sound.
event_namestring
Level sound event to be played as the ambient sound.
rangenumber
Maximum time in seconds to randomly add to the ambient sound delay time.
valuenumber
Minimum time in seconds before the entity plays its ambient sound again.