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

minecraft:angry

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

Overview

minecraft:angry is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Puts the entity in an angry mood for a set time, and can spread that anger to nearby mobs of the same kind, like zombified piglins.

Fields

FieldTypeDefaultDescription
angry_soundStringnoneSound event played every so often while the mob is angry.
broadcast_angerBoolean"false"If true, nearby mobs of the same type get angry too.
broadcast_anger_on_attackBoolean"false"If true, nearby mobs of the same type get angry each time this mob attacks.
broadcast_anger_on_being_attackedBoolean"false"If true, nearby mobs of the same type get angry when this mob is hit.
broadcast_anger_when_dyingBoolean"true"Set to false so the mob does not spread its anger when it dies.
broadcast_filtersMinecraft FilternoneConditions that nearby mobs must pass to receive the anger.
broadcast_rangeInteger"20"How many blocks away the anger can spread.
broadcast_targetsListnoneFamilies of mobs that can be made angry by this one.
calm_eventStringnoneEvent that fires when the anger timer runs out.
durationInteger"25"How many seconds the anger lasts.
duration_deltaInteger"0"A random number of seconds, up to this much, added to or taken from the duration.
filtersMinecraft FilternoneMobs that pass this filter are not attacked while angry, useful for sparing allies.
sound_intervalRange [a, b]"0"Random wait range in seconds between angry sounds.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:angry": {
    "angry_sound": "",
    "broadcast_anger": "false",
    "broadcast_anger_on_attack": "false",
    "broadcast_anger_on_being_attacked": "false",
    "broadcast_anger_when_dying": "true",
    "broadcast_filters": {},
    "broadcast_range": "20",
    "broadcast_targets": {}
  }
}

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