Entity Documentation - minecraft:knockback_resistance

minecraft:knockback_resistance compels an entity to resist being knocked backwards by a melee attack.

Parameters

Name Default Value Type Description
value not set Float or object with value and max The amount of knockback resistance that an entity has.

Example

"minecraft:knockback_resistance": {
        "value": 0.6
      }

Vanilla entities examples

ender_dragon

"minecraft:knockback_resistance": {
        "value": 100,
        "max": 100
      }

warden

"minecraft:knockback_resistance": {
        "value": 1.0
      }

Vanilla entities using minecraft:health