premium banner
Adds Parry, Stun, and Critical Hits inspired by Valheim combat.

Description

Implements the following combat mechanics, inspired by the game Valheim:

(Text in bold are able to be configured live in-game with the command /stunningcombat)

Perfect Block Parry

Blocking any melee or projectile attack 0.2 seconds before it lands will result in a Parry. This prevents all damage and does not drain stamina like a normal block would. Both NPCs and Players can parry! This also charges your Signature Energy by 20%.

Stun Effect

Parrying an attack applies Knockback and Stuns the attacker for 1.5 seconds. This applies to both NPCs and Players.

Stun effect on Skeleton

Critical Damage

Any damage to Stunned targets deal 1.5x Critical Damage.

Counter-Attacks

Mod developers can implement Counter-Attacks for their weapons after a Perfect Block Parry, like the Bones' Rapiers mod. By default, the Counter-Attack window is 0.6s. Want to implement a Counter-Attack into your mod? Follow the documentation here and/or reach out to me on discord!

Misc

Sound effects play on Perfect Block Parries as well as when Critical Damage is done to Stunned targets.
Particles show upon a Perfect Block Parry and on Stunned targets.

In-Game Live Config Menu

As an operator (run /op self in singleplayer), run the command /stunningcombat to open the in-game config menu that updates live as you change any values.

Config Menu