跳转至

Anger Level

文档版本:1.21.0.24

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_intervalnumber
Anger level will decay over time. Defines how often anger towards all nuisances will be decreased by one
angry_boostinteger
Anger boost applied to angry threshold when mob gets angry.
angry_thresholdinteger
Threshold that define when the mob is considered angry at a nuisance.
default_annoyingnessnumber
The default amount of annoyingness for any given nuisance. Specifies how much to raise anger level on each provocation
default_projectile_annoyingnessnumber
The default amount of annoyingness for projectile nuisance. Specifies how much to raise anger level on each provocation
max_angerinteger
The maximum anger level that can be reached. Applies to any nuisance
nuisance_filterfilters
一个过滤器组。Filter that is applied to determine if a mob can be a nuisance.
on_increase_soundsarray
on_increase_sounds
<any array element>object
<any array element>
conditionstring
The event that will trigger the sound
soundstring
The sound to play
remove_targets_below_angry_thresholdboolean
Defines if the mob should remove target if it falls below 'angry' threshold.