跳转至

minecraft:anger_level

文档版本:1.21.0.24

Allows this entity to track anger towards a set of nuisances.

架构

minecraft:anger_level:
{
  number "anger_decrement_interval" : opt
  integer "angry_boost" : opt
  integer "angry_threshold" : opt
  integer "default_annoyingness" : opt
  integer "default_projectile_annoyingness" : opt
  integer "max_anger" : opt
  entity_filters "nuisance_filter"
  array "on_increase_sounds" : opt
  {
    object "<any array element>" : opt
    {
      expression_node_no_version "condition"
      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_annoyingnessinteger
Specifies the amount to raise anger level with each provocation.
default_projectile_annoyingnessinteger
Specifies the amount to raise anger level with each projectile hit.
max_angerinteger
The maximum anger level that can be reached. Applies to any nuisance.
nuisance_filterentity_filters
Filter that is applied to determine if a mob can be a nuisance.
entity_filters:
{
  sub_filter "any_of"
  sub_filter "all_of"
  sub_filter "none_of"
}
any_ofsub_filter
sub_filter:
{
  string "test" : opt
  string "subject" : opt
  string "operator" : opt
  string "value" : opt
}
teststring
subjectstring
operatorstring
valuestring
sub_filter:
array
{
  object "<any array element>" : opt
  {
    string "test" : opt
    string "subject" : opt
    string "operator" : opt
    string "value" : opt
  }
}
<any array element>object
<any array element>
teststring
subjectstring
operatorstring
valuestring
all_ofsub_filter
none_ofsub_filter
on_increase_soundsarray
Sounds to play when the entity is getting provoked. Evaluated in order; the first matching condition wins.
on_increase_sounds
<any array element>object
<any array element>
conditionexpression_node_no_version
expression_node_no_version:
string
expression_node_no_version:
boolean
expression_node_no_version:
number
soundstring
remove_targets_below_angry_thresholdboolean
Defines if the entity should remove target if it falls below 'angry' threshold.