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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for