Anger Level¶
文档版本:1.21.50.25
Allows this entity to track anger towards a set of nuisances
架构¶
anger_level:
{
number "anger_decrement_interval" : opt
integer "angry_boost" : opt
integer "angry_threshold" : opt
number "default_annoyingness" : opt
number "default_projectile_annoyingness" : opt
integer "max_anger" : opt
filters "nuisance_filter"
array "on_increase_sounds" : opt
{
object "<any array element>" : opt
{
string "condition" : opt
string "sound" : opt
}
}
boolean "remove_targets_below_angry_threshold" : opt
}
anger_decrement_interval
:number- Anger level will decay over time. Defines how often anger towards all nuisances will be decreased by one
angry_boost
:integer- Anger boost applied to angry threshold when mob gets angry.
angry_threshold
:integer- Threshold that define when the mob is considered angry at a nuisance.
default_annoyingness
:number- The default amount of annoyingness for any given nuisance. Specifies how much to raise anger level on each provocation
default_projectile_annoyingness
:number- The default amount of annoyingness for projectile nuisance. Specifies how much to raise anger level on each provocation
max_anger
:integer- The maximum anger level that can be reached. Applies to any nuisance
nuisance_filter
:filters- 一个过滤器组。Filter that is applied to determine if a mob can be a nuisance.
on_increase_sounds
:array
on_increase_sounds
<any array element>
:object
<any array element>
condition
:string- The event that will trigger the sound
sound
:string- The sound to play
remove_targets_below_angry_threshold
:boolean- Defines if the mob should remove target if it falls below 'angry' threshold.