1. Wiki
  2. /Entities
  3. /minecraft:behavior.knockback_roar

minecraft:behavior.knockback_roar

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

Overview

minecraft:behavior.knockback_roar is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that makes the mob roar and blast nearby entities away while hurting them, like a ravager after being stunned.

Fields

FieldTypeDefaultDescription
durationnumber1Longest time in seconds the roar can last.
attack_timenumber0.5Seconds into the roar before the blast happens.
knockback_damageinteger6Damage dealt by the blast.
knockback_horizontal_strengthinteger4How hard entities are pushed sideways.
knockback_vertical_strengthinteger4How hard entities are pushed upward.
knockback_height_capnumber0.4The most an entity can be pushed upward.
knockback_rangeinteger4Radius in blocks of the blast.
cooldown_timenumber0.1Seconds to wait before the goal can run again.
knockback_filtersFilter Group{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Which entities get pushed.
damage_filtersFilter Group{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Which entities get hurt.
on_roar_endActorDefinitionTrigger{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Event that fires when the roar ends.
priorityinteger0Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to …
control_flagsGoal's control flags[]noneWhich body parts this goal takes over (move, look, jump), so goals using the same parts cannot run together.

Example

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

BP/entities/<name>.json
{
  "minecraft:behavior.knockback_roar": {
    "duration": 1,
    "attack_time": 0.5,
    "knockback_damage": 6,
    "knockback_horizontal_strength": 4,
    "knockback_vertical_strength": 4,
    "knockback_height_cap": 0.4,
    "knockback_range": 4,
    "cooldown_time": 0.1
  }
}

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