1. Wiki
  2. /Entities
  3. /minecraft:anger_level

minecraft:anger_level

Don't want to write this by hand? GodCraft sets minecraft:anger_level for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
anger_decrement_intervalnumber1How often, in seconds, every anger score goes down by one.
angry_boostinteger20Extra anger added once the mob crosses the angry threshold.
angry_thresholdinteger80The anger score at which the mob counts as angry at something.
default_annoyingnessinteger0How much anger is added each time something provokes the mob.Range: 0 to …
max_angerinteger100The highest anger score the mob can reach toward anything.
nuisance_filterFilter 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_soundsSoundDefinition[]noneSounds played as the mob gets provoked. The first entry whose condition passes is used.
default_projectile_annoyingnessinteger0How much anger a projectile adds when it provokes the mob.Range: 0 to …
remove_targets_below_angry_thresholdbooleantrueIf 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
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more