Terraria Wiki

  • Discussions are now available on the Terraria Wiki.
  • Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
m (Cleanup.)
m (Small correction on what accessories give immunity to knockback.)
Tag: Visual edit
(29 intermediate revisions by 24 users not shown)
Line 1: Line 1:
'''Knockback''' is a basic mechanism in Terraria, whereby players and enemies are repelled in the opposite direction of an attack. Most weapons and environment objects that cause damage also cause knockback, to varying degrees. Some enemies are immune to knockback, particularly [[Boss]]es and other enemies that travel through blocks, like [[:Category:Worm AI NPCs|Worms]] and [[Man Eater]]s. Some enemies also have varying degrees of knockback resistance.
+
'''Knockback''' is a basic mechanism in ''[[Terraria]]'', whereby players and enemies are repelled in the opposite direction of an attack. Most weapons and environment objects that cause damage also cause knockback, to varying degrees. Some enemies are immune to knockback, particularly [[Boss]]es and other enemies that travel through blocks, like [[:Category:Worm AI NPCs|Worms]] and [[Man Eater]]s. Some enemies also have varying degrees of knockback resistance.
   
Equipping any [[Shield]] (with the exception of the [[Shield of Cthulhu]]) will grant the player knockback immunity. Grappling on any surface using any [[Hook]] will also grant the player knockback immunity.
+
Equipping any [[Shield]] (with the exception of the [[Shield of Cthulhu]] and the [[Squire's Shield]]) grants the player knockback immunity. Grappling on any surface using any [[Hook]] will also grant the player knockback immunity. {{eicons |1.4.1}} Wearing the full [[Gladiator armor]] set (dropped by [[Hoplite|Hoplites]] found in [[Marble Cave|Marble Caves]]) also gives the set bonus of knockback immunity.
   
The most player-inflicted knockback comes from the [[Slap Hand]], which has a knockback value of 20. This is followed immediately by the [[Tonbogiri]] with a knockback value of 13, the [[Golem Fist]] with a knockback value of 12, and the [[Thorns Potion]], which retaliates with 10 knockback when its effect triggers.
+
The most player-caused/inflicted knockback comes from the [[Slap Hand]], which has a knockback value of 20. This is followed immediately by the [[Shadow Jousting Lance]] with a knockback value of 14, then by the [[Hallowed Jousting Lance]] and [[Tonbogiri]] with a knockback value of 13, the regular [[Jousting Lance]] and [[Golem Fist]] with a knockback value of 12, and the [[Thorns Potion]], which retaliates with 10 knockback when its effect triggers.
   
 
Knockback is capped at 16 (22.4 if it is a [[Critical hit]]). This cap is applied after calculating the enemy's knockback resistance.
 
Knockback is capped at 16 (22.4 if it is a [[Critical hit]]). This cap is applied after calculating the enemy's knockback resistance.
   
Various [[modifier]]s, and the [[Titan Glove]] [[accessory]], can increase player-inflicted knockback. __NOTOC__
+
Various [[modifier]]s, and the [[Titan Glove]] [[accessory]] and its upgrades, can increase player-inflicted knockback. __NOTOC__
   
 
== Knockback values ==
 
== Knockback values ==
 
{| class="terraria" id="knockback-table"
{{#css:
 
#knockback-table td:last-child{ text-align:left; }
 
}}
 
{| class="terraria align-center" id="knockback-table"
 
 
! Value !! In-Game Text
 
! Value !! In-Game Text
 
|-
 
|-
| 0 || No knockback
+
| align=center | 0 || No knockback
 
|-
 
|-
| ≤ 1.5 || Extremely weak knockback
+
| align=center | ≤ 1.5 || Extremely weak knockback
 
|-
 
|-
| ≤ 3 || Very weak knockback
+
| align=center | ≤ 3 || Very weak knockback
 
|-
 
|-
| ≤ 4 || Weak knockback
+
| align=center | ≤ 4 || Weak knockback
 
|-
 
|-
| ≤ 6 || Average knockback
+
| align=center | ≤ 6 || Average knockback
 
|-
 
|-
| ≤ 7 || Strong knockback
+
| align=center | ≤ 7 || Strong knockback
 
|-
 
|-
| ≤ 9 || Very strong knockback
+
| align=center | ≤ 9 || Very strong knockback
 
|-
 
|-
| ≤ 11 || Extremely strong knockback
+
| align=center | ≤ 11 || Extremely strong knockback
 
|-
 
|-
| > 11 || Insane knockback
+
| align=center | > 11 || Insane knockback
 
|}
 
|}
   
 
== Formula ==
 
== Formula ==
 
First, calculating knockback resistance:
 
First, Calculating knockback resistance:
 
 
knockBack = knockBack * (1 - KB Resist)
 
knockBack = knockBack * (1 - KB Resist)
  +
Then multiplying knockback by 110% if the target is suffering from [[Cursed Inferno]]:
Then apply cap to it if needed:
 
if knockBack > 8.0 then knockBack = (knockBack - 8.0) * 0.9
+
if onFire2 then knockBack = knockBack * 1.1
  +
Then apply cap to it if needed:<ref>This is written properly, it follows the steps in order so that a slap hand against a target that is not alight with cursed inferno and doesn't crit ends up at 14.9168 knockback, having been reduced 4 times, barring other enemy specific modifiers.</ref>
if knockBack > 10.0 then knockBack = (knockBack - 10.0) * 0.8
 
if knockBack > 12.0 then knockBack = (knockBack - 12.0) * 0.7
+
if knockBack > 8.0 then knockBack = 8 + (knockBack - 8.0) * 0.9
if knockBack > 14.0 then knockBack = (knockBack - 14.0) * 0.6
+
if knockBack > 10.0 then knockBack = 10 + (knockBack - 10.0) * 0.8
 
if knockBack > 12.0 then knockBack = 12 + (knockBack - 12.0) * 0.7
  +
if knockBack > 14.0 then knockBack = 14 + (knockBack - 14.0) * 0.6
 
if knockBack > 16.0 then knockBack = 16
 
if knockBack > 16.0 then knockBack = 16
 
Then see if it is a Critical hit:
 
Then see if it is a Critical hit:
 
if isCrit then knockBack = knockBack * 1.4
 
if isCrit then knockBack = knockBack * 1.4
  +
Then apply knockback to velocity, with differing multipliers depending on whether the hit is more than 10% of the targets max health (15% in expert mode), and 1.5x as much vertical velocity if the target is a [[Snow Flinx]]. There are additional changes based on whether the enemy has the noGravity flag set.
Then apply knockback to velocity, something like:
 
velocity = velocity - knockBack
 
There are some additional detail variations on applying knockback to velocity.
 
   
 
== Immune enemies ==
 
== Immune enemies ==
 
* All [[Bosses]] and their minions except [[Brain of Cthulhu]] in its second phase, [[Golem]]'s Fists, and [[Servant of Cthulhu]].
 
* All [[Bosses]] and their minions except [[Brain of Cthulhu]] in its second phase, [[Golem]]'s Fists, and [[Servant of Cthulhu]].
* All [[:Category:Plant AI NPCs|Plants]] except [[Angry Trapper]].
+
* All [[:Category:Plant AI NPCs|Plants]] except [[Angry Trapper]] and [[Clinger]].
 
* All [[:Category:Worm AI NPCs|Worm AI enemies]].
 
* All [[:Category:Worm AI NPCs|Worm AI enemies]].
 
Other:
 
Other:
*[[Ancient Vision]]
+
* [[Ancient Vision]]
*[[Antlion]]
+
* [[Antlion]]
*[[Blazing Wheel]]
+
* [[Blazing Wheel]]
*[[Desert Spirit]]
+
* [[Desert Spirit]]
*[[Drakin]] (T2/T3)
+
* [[Drakin]] (T2/T3)
*[[Dungeon Guardian]]
+
* [[Dungeon Guardian]]
*[[Gray Grunt]]
+
* [[Gray Grunt]]
*[[Headless Horseman]]
+
* [[Headless Horseman]]
*[[Lihzahrd (NPC)|Lihzahrd]] (2nd form)
+
* [[Lihzahrd (NPC)|Lihzahrd]] (2nd form)
*[[Lunatic Devote]]
+
* [[Lunatic Devote]]
*[[Martian Officer]] (Bubble Shield)
+
* [[Martian Officer]] (Bubble Shield)
*[[Martian Probe]]
+
* [[Martian Probe]]
*[[Martian Walker]]
+
* [[Martian Walker]]
*[[Paladin]]
+
* [[Paladin]]
*[[Pirate Captain]]
+
* [[Pirate Captain]]
*[[Shadowflame Apparation]]
+
* [[Shadowflame Apparation]]
*[[Spike Ball]]
+
* [[Spike Ball]]
*[[Sroller]]
+
* [[Sroller]]
*[[The Possessed]] (On walls)
+
* [[The Possessed]] (On walls)
*[[Tesla Turret]]
+
* [[Tesla Turret]]
*[[Yeti]]
+
* [[Wandering Eye Fish]]
  +
* [[Yeti]]
  +
* [[Zombie Merman]]
   
 
== History ==
 
== History ==
{{history|version=desktop|Desktop 1.0.6|The [[Cursed Skull]] is no longer immune to knockback.}}
+
{{history|Desktop 1.0.6|The [[Cursed Skull]] is no longer immune to knockback.}}
   
 
{{Game mechanics}}
 
{{Game mechanics}}
   
 
[[de:Rückstoß]]
 
[[de:Rückstoß]]
  +
[[fr:Recul]]
 
[[ko:넉백]]
 
[[ko:넉백]]
 
[[zh:击退]]
 
[[zh:击退]]

Revision as of 02:25, 3 May 2021

Knockback is a basic mechanism in Terraria, whereby players and enemies are repelled in the opposite direction of an attack. Most weapons and environment objects that cause damage also cause knockback, to varying degrees. Some enemies are immune to knockback, particularly Bosses and other enemies that travel through blocks, like Worms and Man Eaters. Some enemies also have varying degrees of knockback resistance.

Equipping any Shield (with the exception of the Shield of Cthulhu and the Squire's Shield) grants the player knockback immunity. Grappling on any surface using any Hook will also grant the player knockback immunity. Wearing the full Gladiator armor set (dropped by Hoplites found in Marble Caves) also gives the set bonus of knockback immunity.

The most player-caused/inflicted knockback comes from the Slap Hand, which has a knockback value of 20. This is followed immediately by the Shadow Jousting Lance with a knockback value of 14, then by the Hallowed Jousting Lance and Tonbogiri with a knockback value of 13, the regular Jousting Lance and Golem Fist with a knockback value of 12, and the Thorns Potion, which retaliates with 10 knockback when its effect triggers.

Knockback is capped at 16 (22.4 if it is a Critical hit). This cap is applied after calculating the enemy's knockback resistance.

Various modifiers, and the Titan Glove accessory and its upgrades, can increase player-inflicted knockback.

Knockback values

Value In-Game Text
0 No knockback
≤ 1.5 Extremely weak knockback
≤ 3 Very weak knockback
≤ 4 Weak knockback
≤ 6 Average knockback
≤ 7 Strong knockback
≤ 9 Very strong knockback
≤ 11 Extremely strong knockback
> 11 Insane knockback

Formula

First, calculating knockback resistance:

knockBack = knockBack * (1 - KB Resist)

Then multiplying knockback by 110% if the target is suffering from Cursed Inferno:

if onFire2 then knockBack = knockBack * 1.1

Then apply cap to it if needed:[1]

if knockBack > 8.0 then knockBack = 8 + (knockBack - 8.0) * 0.9
if knockBack > 10.0 then knockBack = 10 + (knockBack - 10.0) * 0.8
if knockBack > 12.0 then knockBack = 12 + (knockBack - 12.0) * 0.7
if knockBack > 14.0 then knockBack = 14 + (knockBack - 14.0) * 0.6
if knockBack > 16.0 then knockBack = 16

Then see if it is a Critical hit:

if isCrit then knockBack = knockBack * 1.4

Then apply knockback to velocity, with differing multipliers depending on whether the hit is more than 10% of the targets max health (15% in expert mode), and 1.5x as much vertical velocity if the target is a Snow Flinx. There are additional changes based on whether the enemy has the noGravity flag set.

Immune enemies

Other:

History

  1. This is written properly, it follows the steps in order so that a slap hand against a target that is not alight with cursed inferno and doesn't crit ends up at 14.9168 knockback, having been reduced 4 times, barring other enemy specific modifiers.