minecraft.wiki-mirror/wiki_backup/Knockback.txt
2024-12-24 06:17:34 -05:00

86 lines
4.2 KiB
Text

{{about|the enchantment|the game mechanic|Knockback (mechanic)}}
{{Infobox enchantment
| maxlevel = II
| primaryitems = {{ItemSprite|sword|link=Sword}}
| secondaryitems = {{ItemSprite|Axe|link=Axe}}{{upcoming|java Combat Tests}}
| weight = 5
}}
'''Knockback''' is an [[enchantment]] to a [[sword]] that increases the sword's [[Damage#Knockback|knockback]].
== Obtaining ==
Knockback can be obtained from [[enchantment tables]], drops from mobs that have spawned in a [[raid]],{{only|bedrock}} books obtained by [[fishing]], [[monster room]] chests, librarian [[villager]]s, and non-village [[structure]] loot.
== Usage ==
Any weapon enchanted with knockback upon hitting an entity creates an additional knockback-like effect, along with regular knockback. This knockback-like effect horizontally pushes the entity in the direction the player is looking, rather then directly away from the player. This horizontal push starts at 1.552 blocks and increases by 2.586 blocks with each level of knockback. Knockback also changes the amount entities are pushed vertically by a weapon swing from 0.8125 blocks to 1 block and unlike the horizontal push it also applies to entities damaged by [[Sword|sword's]] sweeping attack and takes neither the direction the player is looking at nor the player's position relative to the entity into account, it always pushes the entity along the Y coordinate.
When using commands to increase the knockback value beyond two, the limit on the amount of knockback that a player can take is much less than the amount of knockback that any other entity can take.
In ''[[Java Edition]]'', players can hit [[Armor Stand|armor stands]] back with a knockback enchantment, but not in [[Bedrock Edition]].
[[Sprinting]] while using the sword enchanted with knockback has the same effect as having a sword with 1 level higher knockback, while sprinting using a weapon without knockback enchantment has the same effect as having it enchanted with knockback I.
As with regular knockback, entity isn't pushed at all if all the damage of an attack is negated by [[Damage|damage immunity]].
By default in Minecraft, if the attacking players are sprinting, they deal more knockback to the damaged ones. This is the reason of PvP movement-related actions like W-tapping (sprint reset). Damaged players start receiving less knockback while they are in the air.
On a combat situation where two players are moving, the horizontal knockback received is multiplied by 0.6 (reduced by 40%) if the attacker send an attack packet and is moving forward. It does not stack.
Sword enchanted with knockback wielded by a mob works as it would if player was wielding it.
== Resistant mobs ==
* [[Iron golem]]s are unaffected by knockback from normal attacks, but are affected by knockback from enchantments.
* [[Squid]]s and [[glow squid]]s are resistant to knockback when outside of water.
* [[Warden]]s and [[shulker]]s are completely unaffected by knockback.
* [[Agent]]s and [[NPC]]s are invulnerable and completely unaffected by knockback.
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|generatetranslationkeys=y
|nameid=knockback
|displayname=Knockback
|translationtype=enchantment
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=1
|generatetranslationkeys=y
|nameid=knockback
|displayname=Knockback
|id=12
|translationtype=enchantment
|foot=1}}
== History ==
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 3|Added Knockback, which can be applied to [[sword]]s.}}
|{{HistoryLine||1.9|dev=15w45a|The Knockback is now correctly impacted by [[knockback resistance]].}}
|{{HistoryLine|java upcoming}}
|{{HistoryLine||Combat Tests|dev=Combat Test 4|Knockback can now be applied to [[axe]]s.}}
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.12.1|dev=build 1|Added Knockback.}}
|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU7|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added Knockback.}}
}}
== Issues ==
{{issue list}}
== See also ==
*[[Punch]], which applies knockback to [[arrow]]s shot with a [[bow]].
== Navigation ==
{{Navbox enchantments}}
[[de:Rückstoß]]
[[es:Empuje]]
[[fr:Recul]]
[[ja:ノックバック]]
[[pt:Repulsão]]
[[th:ตีกระดอน]]
[[zh:击退]]