跳转至

Celebrate Hunt

文档版本:1.21.0.24

Specifies hunt celebration behavior.

架构

celebrate_hunt:
{
  boolean "broadcast" : opt
  filters "celebration_targets"
  sound_event "celebrate_sound"
  integer "duration" : opt
  number "radius" : opt
  array "sound_interval" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
  }
  number "sound_interval" : opt
  object "sound_interval" : opt
  {
    number "range_min" : opt
    number "range_max" : opt
  }
}
broadcastboolean
If true, celebration will be broadcasted to other entities in the radius.
celebration_targetsfilters
一个过滤器组。The list of conditions that target of hunt must satisfy to initiate celebration.
celebrate_soundsound_event
The sound event to play when the mob is celebrating.
sound_event:
string
durationinteger
Duration, in seconds, of celebration.
radiusnumber
If broadcast is enabled, specifies the radius in which it will notify other entities for celebration.
sound_intervalarray
The range of time in seconds to randomly wait before playing the sound again.
sound_interval
0..0number
1..1number
sound_intervalnumber
The range of time in seconds to randomly wait before playing the sound again.
sound_intervalobject
The range of time in seconds to randomly wait before playing the sound again.
sound_interval
range_minnumber
Minimum.
range_maxnumber
Maximum.