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_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:integer- Specifies the amount to raise anger level with each provocation.
default_projectile_annoyingness:integer- Specifies the amount to raise anger level with each projectile hit.
max_anger:integer- The maximum anger level that can be reached. Applies to any nuisance.
nuisance_filter:entity_filters- Filter that is applied to determine if a mob can be a nuisance.
any_of:sub_filter
sub_filter:
{
string "test" : opt
string "subject" : opt
string "operator" : opt
string "value" : opt
}
test:string
subject:string
operator:string
value:string
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>test:string
subject:string
operator:string
value:string
all_of:sub_filter
none_of:sub_filter
on_increase_sounds:array- 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>remove_targets_below_angry_threshold:boolean- Defines if the entity should remove target if it falls below 'angry' threshold.