跳转至

Angry

文档版本:1.21.0.24

Defines the entity's 'angry' state using a timer.

架构

angry:
{
  boolean "broadcast_anger" : opt
  filters "broadcast_filters"
  filters "filters"
  integer "broadcast_range" : opt
  array "broadcast_targets" : opt
  {
    string "<any array element>" : opt
  }
  event_object "calm_event"
  sound_event "angry_sound"
  boolean "broadcast_anger_on_attack" : opt
  boolean "broadcast_anger_on_being_attacked" : opt
  integer "duration" : opt
  integer "duration_delta" : opt
  array "sound_interval" : opt
  {
    integer "0..0" : opt
    integer "1..1" : opt
  }
  object "sound_interval" : opt
  {
    number "range_min" : opt
    number "range_max" : opt
  }
}
broadcast_angerboolean
If true, other entities of the same entity definition within the broadcastRange will also become angry.
broadcast_filtersfilters
一个过滤器组。Conditions that make this entry in the list valid.
filtersfilters
一个过滤器组。Filter out mob types that it should not attack while angry (other Piglins).
broadcast_rangeinteger
Distance in blocks within which other entities of the same entity definition will become angry.
broadcast_targetsarray
A list of entity families to broadcast anger to.
broadcast_targets
<any array element>string
An entity family.
calm_eventevent_object
Event to run after the number of seconds specified in duration expires (when the entity stops being "angry")
event_object:
{
  filters "filters"
  string "event" : opt
  string "target" : opt
}
filtersfilters
一个过滤器组
eventstring
The event to fire.
targetstring
The target of the event.
angry_soundsound_event
The sound event to play when the mob is angry.
sound_event:
string
broadcast_anger_on_attackboolean
If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob attacks.
broadcast_anger_on_being_attackedboolean
If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob is attacked.
durationinteger
The amount of time in seconds that the entity will be angry.
duration_deltainteger
Variance in seconds added to the duration [-delta, delta].
sound_intervalarray
The range of time in seconds to randomly wait before playing the sound again.
sound_interval
0..0integer
The minimum interval.
1..1integer
The maximum interval.
sound_intervalobject
The range of time in seconds to randomly wait before playing the sound again.
sound_interval
range_minnumber
The minimum interval.
range_maxnumber
The maximum interval.