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

minecraft:apply_knockback_rules

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

Overview

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

FieldTypeDefaultDescription
presetsminecraft:apply_knockback_rules_instance[]noneA 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": []
  }
}

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