minecraft:apply_knockback_rules for you with a switch.Get GodCraftOverview
minecraft:apply_knockback_rules is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Sets how this entity pushes back the things it hits.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
presets | minecraft:apply_knockback_rules_instance[] | none | A list of rule sets that describe the knockback this entity applies. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:apply_knockback_rules": {
"presets": []
}
}