Edit

Entity Documentation - minecraft:knockback_resistance

Determines an entity's resistance to knockback from melee attacks. A value of 0.0 means no resistance, while 1.0 provides full immunity to knockback (like iron golems).

Note

In format version 1.26.20, value now accepts negative numbers down to a minimum of -2. Negative values amplify knockback applied to the entity instead of diminishing it.

Alternate Simple Representations

This item can also be represented as a Decimal number.

Knockback Resistance Properties

Name Default Value Type Description Example Values
max not set Decimal number Maximum potential knockback resistance for this entity. Ender Dragon: 100
value not set Decimal number The amount of knockback resistance, from 0.0 (none) to 1.0 (full immunity). Armor Stand: 1, Ender Dragon: 100

Samples

Armor Stand

"minecraft:knockback_resistance": {
  "value": 1
}

Breeze

"minecraft:knockback_resistance": {
  "value": 0
}

Ender Dragon

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