minecraft:ravager_blocked for you with a switch.Get GodCraftOverview
minecraft:ravager_blocked is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Decides what a ravager does when a shield blocks its melee attack.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
knockback_strength | Decimal | "3.0" | How hard the blocking entity is pushed back. |
reaction_choices | List | "[ ]" | Possible reactions with weights; heavier weights are picked more often. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:ravager_blocked": {
"knockback_strength": "3.0",
"reaction_choices": "[ ]"
}
}