minecraft:anger_level for you with a switch.Get GodCraftOverview
minecraft:anger_level is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Keeps a separate anger score for each thing that bothers the entity. The Warden uses it to decide who to chase.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
anger_decrement_interval | number | 1 | How often, in seconds, every anger score goes down by one. |
angry_boost | integer | 20 | Extra anger added once the mob crosses the angry threshold. |
angry_threshold | integer | 80 | The anger score at which the mob counts as angry at something. |
default_annoyingness | integer | 0 | How much anger is added each time something provokes the mob.Range: 0 to … |
max_anger | integer | 100 | The highest anger score the mob can reach toward anything. |
nuisance_filter | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Conditions that decide which entities can annoy the mob. |
on_increase_sounds | SoundDefinition[] | none | Sounds played as the mob gets provoked. The first entry whose condition passes is used. |
default_projectile_annoyingness | integer | 0 | How much anger a projectile adds when it provokes the mob.Range: 0 to … |
remove_targets_below_angry_threshold | boolean | true | If true, the mob drops its target once anger falls under the angry threshold. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:anger_level": {
"anger_decrement_interval": 1,
"angry_boost": 20,
"angry_threshold": 80,
"default_annoyingness": 0,
"max_anger": 100,
"nuisance_filter": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
},
"on_increase_sounds": [],
"default_projectile_annoyingness": 0
}
}