Angry¶
文档版本:1.21.50.25
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_anger
:boolean- If true, other entities of the same entity definition within the broadcastRange will also become angry.
broadcast_filters
:filters- 一个过滤器组。Conditions that make this entry in the list valid.
filters
:filters- 一个过滤器组。Filter out mob types that it should not attack while angry (other Piglins).
broadcast_range
:integer- Distance in blocks within which other entities of the same entity definition will become angry.
broadcast_targets
:array- A list of entity families to broadcast anger to.
broadcast_targets
<any array element>
:string- An entity family.
calm_event
:event_object- Event to run after the number of seconds specified in duration expires (when the entity stops being "angry")
angry_sound
:sound_event- The sound event to play when the mob is angry.
broadcast_anger_on_attack
:boolean- If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob attacks.
broadcast_anger_on_being_attacked
:boolean- If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob is attacked.
duration
:integer- The amount of time in seconds that the entity will be angry.
duration_delta
:integer- Variance in seconds added to the duration [-delta, delta].
sound_interval
:array- The range of time in seconds to randomly wait before playing the sound again.
sound_interval
0..0
:integer- The minimum interval.
1..1
:integer- The maximum interval.
sound_interval
:object- The range of time in seconds to randomly wait before playing the sound again.
sound_interval
range_min
:number- The minimum interval.
range_max
:number- The maximum interval.