ParryAndDodgeConfig

v1.1.2·Updated 2026-09-20

Configure Valheim's timed-block/parry window and dodge invincibility duration. Parry timing is configurable from 10 ms to 2 seconds; dodge i-frames can be overridden independently or left vanilla.

About this mod Author’s original text

ParryAndDodgeConfig

A small client-side BepInEx/Harmony mod for Valheim 1.0 that lets you configure the timed-block/parry window and, independently, the duration of dodge invincibility frames.

Features

  • Configure the parry window from 10 ms to 2 seconds.
  • Configure dodge invincibility independently from the parry window.
  • Dodge i-frames can be set from 1 ms to 2 seconds.
  • Dodge i-frame override is disabled by default, preserving Valheim's vanilla behavior.
  • The dodge override starts when Valheim actually enters its dodge-invulnerable state, not when the dodge button is pressed.
  • The dodge override changes only the invulnerability flag; it does not change dodge movement, animation, stamina cost, dodge distance, perfect-dodge rewards, or damage.
  • Does not modify Valheim's game files.

Configuration

After launching Valheim once with the mod installed:

BepInEx/config/com.rafal.configurableparrywindow.cfg

Example:

[Parry]

WindowSeconds = 0.40

[Dodge]

InvincibilityDurationSeconds = 0.20

Parry window

| Window | Setting |

|---|---:|

| 100 ms | 0.10 |

| 200 ms | 0.20 |

| 250 ms (vanilla) | 0.25 |

| 300 ms | 0.30 |

| 400 ms | 0.40 |

| 500 ms | 0.50 |

| 1 second | 1.00 |

Dodge invincibility

| Setting | Result |

|---|---|

| 0 | Use Valheim's vanilla dodge invincibility behavior |

| 0.10 | 100 ms of dodge invulnerability |

| 0.20 | 200 ms |

| 0.25 | 250 ms |

| 0.30 | 300 ms |

| 0.40 | 400 ms |

| 0.50 | 500 ms |

| 1.00 | 1 second |

The dodge setting is independent of the parry setting.

For example, this is valid:

[Parry]

WindowSeconds = 0.30

[Dodge]

InvincibilityDurationSeconds = 0.18

Restart Valheim after changing the configuration.

Important note about Valheim 1.0

Valheim 1.0 changed dodge invulnerability so that the vanilla state is driven by the dodge animation rather than being a simple permanent fixed-duration timer. This mod therefore does not replace the dodge animation or movement. When a custom duration is enabled, it overrides only the invulnerability state while the dodge is active.

If the configured value is longer than the actual dodge's invulnerable portion, the mod will not make the player invulnerable after Valheim has ended the dodge.

Installation

r2modman Mod Manager

Install ParryAndDodgeConfig. BepInEx will be installed as a dependency.

Manual

  • Install BepInExPack for Valheim.
  • Put ParryAndDodgeConfig.dll in:

Valheim/BepInEx/plugins/ParryAndDodgeConfig/

  • Start Valheim once.
  • Edit the generated config if desired.

Multiplayer

This is a client-side combat modification.

For a multiplayer group, every player who wants the modified parry/dodge timing should install the mod and use the desired settings. The mod does not add new network messages or modify world/save data.

Because both settings affect combat gameplay, multiplayer groups should agree on whether modified timing is allowed.

Compatibility

Built for the Valheim 1.0 Mono/BepInEx 5 environment.

The dodge implementation is based on the Valheim 1.0 members:

  • Player.Dodge
  • Player.UpdateDodge
  • Player.m_dodgeInvincible
  • Player.m_dodgeInvincibleCached

The parry implementation expects:

  • Humanoid.BlockAttack
  • Humanoid.m_blockTimer

If a future Valheim update changes those members, the mod may need an update.

Building from source

This repository intentionally does not redistribute Valheim's proprietary game assemblies.

Install BepInExPack for Valheim and the.NET SDK, then run:.\build.ps1

If Valheim is installed somewhere else:.\build.ps1 -ValheimDir "D:\Steam\steamapps\common\Valheim"

To build and automatically copy the DLL into the game's plugins folder:.\build.ps1 -ValheimDir "D:\Steam\steamapps\common\Valheim" -Deploy

To create the package:.\packaging\package.ps1 -Version "1.1.1"

License

The mod source is released under the MIT License.

Valheim and its game assemblies are property of Iron Gate AB / Coffee Stain Publishing and are not included with the so

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
ParryAndDodgeConfig-1.1.2.zip
File size
9.5 KiB
SHA-256
f7217244a68cfe3ff651df2f17a330b793d185d7a1ef07d785015ff831d9552c
Stored at
2026-10-10 06:15