Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
ParryAndDodgeConfig
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.
By Spazz
| Date uploaded | a week ago |
| Version | 1.1.2 |
| Download link | Spazz-ParryAndDodgeConfig-1.1.2.zip |
| Downloads | 136 |
| Dependency string | Spazz-ParryAndDodgeConfig-1.1.2 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2333README
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
Thunderstore / r2modman / Thunderstore Mod Manager
Install ParryAndDodgeConfig from Thunderstore. BepInEx will be installed as a dependency.
Manual
- Install BepInExPack for Valheim.
- Put
ParryAndDodgeConfig.dllin: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.DodgePlayer.UpdateDodgePlayer.m_dodgeInvinciblePlayer.m_dodgeInvincibleCached
The parry implementation expects:
Humanoid.BlockAttackHumanoid.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 Thunderstore 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 source package.
CHANGELOG
Changelog
1.1.2
- Fixed compilation on Valheim 1.0 by removing the direct UnityEngine.Animator type dependency.
- Dodge animation-state detection now uses Player.GetNextOrCurrentAnimHash().
1.1.1
- Renamed the mod to ParryAndDodgeConfig.
- Renamed the assembly, DLL, source project, plugin folder, and Thunderstore package metadata.
- Preserved the existing BepInEx plugin GUID and config filename so existing user settings remain compatible.
1.1.0
- Added an independent dodge invincibility-duration setting.
- Added
[Dodge] InvincibilityDurationSeconds. 0keeps Valheim's vanilla dodge invincibility behavior.- Custom dodge timing begins when Valheim actually enters its dodge-invulnerable state.
- Updated the mod description, configuration documentation, compatibility notes, and build/package version.
1.0.0
- Initial release.
- Configurable timed-block/parry window.
- Supports 0.01–2.00 seconds.
- Default remains vanilla 0.25 seconds.