minecraft:behavior.knockback_roar for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
duration | number | 1 | Longest time in seconds the roar can last. |
attack_time | number | 0.5 | Seconds into the roar before the blast happens. |
knockback_damage | integer | 6 | Damage dealt by the blast. |
knockback_horizontal_strength | integer | 4 | How hard entities are pushed sideways. |
knockback_vertical_strength | integer | 4 | How hard entities are pushed upward. |
knockback_height_cap | number | 0.4 | The most an entity can be pushed upward. |
knockback_range | integer | 4 | Radius in blocks of the blast. |
cooldown_time | number | 0.1 | Seconds to wait before the goal can run again. |
knockback_filters | Filter 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_filters | Filter 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_end | ActorDefinitionTrigger | {"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. |
priority | integer | 0 | Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to … |
control_flags | Goal's control flags[] | none | Which 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
}
}