Minecraft:Knockback (mechanic)
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Knockback represents the pushback from attacks or natural causes.
Attack knockback
When receiving damage from players, Minecraft:mobs, Minecraft:explosions, and most Minecraft:projectiles, entities are also knocked back. The direction of knockback is determined by the direction of the incoming attack.
Versus grounded entities
Knockback dealt to grounded entities knocks them into the air and away from the attack.
Versus airborne entities
Knockback dealt to airborne entities differs between Template:JE and Template:BE. Template:IN, knockback against airbone entities only knocks them away from the attack and does not knock them further into the air. Template:IN, knockback against airborne entities is identical to knockback against grounded entities.
Versus entities in vehicles
Entities inside Minecraft:minecarts or Minecraft:boats, as well as entities that are riding mountable entities like Minecraft:horses and Minecraft:camels, never receive any knockback when attacked.
Versus entities during attack invulnerability time
Knockback dealt to entities during attack invulnerability time, the 0.5 seconds (500ms) of invulnerability received after taking Minecraft:damage, differs between Template:JE and Template:BE.
- Template:IN, knockback against invulnerable entities is completely negated, except for when attacking with a Minecraft:sword or Minecraft:spear that has the Minecraft:Knockback enchantment.
- Template:IN, knockback against invulnerable entities is applied in the same way as non-invulnerable entities, which results in high CPS (clicks per second) dealing massive knockback.<ref>Template:Bug</ref> Note that certain Minecraft:featured servers available on Bedrock Edition opt to fix this bug, however the bug is present in a fully vanilla multiplayer setting.
Knockback sources
Natural damage
Most natural damage sources, damage sources that are received indirectly, cause a stutter in movement but do not deal any horizontal knockback. Natural damage sources that cause a movement stutter include damage from burning, drowning, lightning, falling, suffocation, entity cramming, starvation, and Minecraft:status effects like Minecraft:Poison, Wither, and Minecraft:Instant Damage. Block-inflicted damage from Minecraft:fire, Minecraft:cactus, Minecraft:lava, Minecraft:magma blocks, Minecraft:campfires, and Minecraft:sweet berry bushes also cause the same movement-stuttering knockback.
Other indirect damage sources deal knockback in the traditional manner rather than causing a movement stutter. This includes the breath attack of the Minecraft:ender dragon, the beam attack of Minecraft:guardians and Minecraft:elder guardians, the sonic boom attack of Minecraft:wardens, the roar attack of Minecraft:ravagers, Minecraft:evoker fangs, damage from the Minecraft:Thorns enchantment, and the effect cloud from Minecraft:lingering potions of Harming.
Knockback received from players or mobs using a sword enchanted with Minecraft:Knockback is greater than normal.
Damageless attacks
Attacks that deal Template:Hp or less fail to deal knockback. The Minecraft:Weakness status effect can cause attacks that deal Template:Hp, causing them to deal no knockback.
Snowballs and eggs
Thrown Minecraft:eggs and Minecraft:snowballs cause knockback to mobs even if they do not deal any damage. Template:IN, thrown eggs and snowballs also apply knockback to players.
Sprint-knockback attack
Doing a Minecraft:melee attack while Minecraft:sprinting causes a sprint-knockback attack to be performed, inflicting extra knockback. Template:IN, sprint-knockback attacks play a unique sound when performed, and they require an attack cooldown charge of at least 84.8%. Minecraft:Spears are the only item type that cannot do sprint-knockback attacks.
In Template:JE, sprint-knockback attacks cannot be performed at the same time as critical hits or sweep attacks. If a sprint-knockback attack is performed at the same time as a critical hit, the sprint-knockback attack takes priority. They can however be performed at the same time as Minecraft:smash attacks and Minecraft:crushing blows.
The extra inflicted knockback stacks with the Minecraft:Knockback enchantment. Like the Knockback enchantment, sprint-knockback attacks do not increase knockback against entities that are immune to knockback, such as Minecraft:iron golems or shielding Minecraft:players. The only exceptions to this are Minecraft:armor stand and Minecraft:boats, which ordinarily do not take knockback when hit but do when hit by a sprint-knockback attack.
Knockback resistance
Attributes
Knockback resistance
Knockback resistance reduces knockback by multiplying the velocity value that a mob receives from an attack's knockback. If the velocity the mob would have without any knockback resistance is <math>v</math>, and the mob has a knockback resistance of <math>r%</math>, then the mob's actual velocity is determined by the formula <math>A = v \times \left(1 - \frac{r}{100} \right)</math>. Each piece of Minecraft:netherite armor adds 10% knockback resistance to its wearer, giving 40% knockback resistance with a full set.
Explosion knockback resistance
Template:Exclusive Explosion knockback resistance reduces knockback from explosions and fireworks. It is received through the Minecraft:Blast Protection enchantment, and uses the formula Template:Cd. The effect stacks with multiple armor pieces, with two pieces of Blast Protection IV armor resulting in 100% explosion knockback resistance. It also reduces the knockback affect of Minecraft:wind charges and the Minecraft:Wind Burst enchantment.
Natural knockback resistance
Template:Main Certain mobs have natural knockback resistance that causes them to resist knockback from attacks. Minecraft:Iron golems, Minecraft:shulkers, Minecraft:agents, Minecraft:NPCs, Minecraft:wardens, and Minecraft:ender dragons have 100% knockback resistance, while other mobs have varying levels of knockback resistance.
| Mob | Knockback resistance |
|---|---|
| Template:EntityLink | 100% (are invulnerable) |
| Template:EntityLink | 0%–5% (determined on spawn) |
| Template:EntityLink | 60% |
| Template:EntityLink | 0%–5% (determined on spawn) |
| Template:EntityLink | 85% |
| Template:EntityLink | 100% |
| Template:EntityLink | 100% (are invulnerable) |
| Template:EntityLink | 60%Template:Only |
| Template:EntityLink | 70%Template:Only 75%Template:Only |
| Template:EntityLink | 85% |
| Template:EntityLink | 100% |
| Template:EntityLink | 100% |
| Template:EntityLink | 60% |
| Template:EntityLink | 0%–5% (determined on spawn) |
| Template:EntityLink | 0%–5% (determined on spawn) |
| Template:EntityLink | 0%–5% (determined on spawn) |