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.
FocusGuard
Stops refocus clicks from becoming attacks, blocks, or alternate attacks. Because your tamed pig has suffered enough.
| Date uploaded | 2 weeks ago |
| Version | 1.0.0 |
| Download link | MaddCatter365-FocusGuard-1.0.0.zip |
| Downloads | 37 |
| Dependency string | MaddCatter365-FocusGuard-1.0.0 |
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.2350README
FocusGuard 1.0.0
Tired of accidentally punching your pig just because you clicked back into Valheim?
FocusGuard prevents the mouse click used to refocus Valheim from becoming an attack, block, or alternate attack. Release the mouse button and your controls immediately return to normal—no lasting combat delay and no extra interface to manage.
Installation
Install with a mod manager, or place FocusGuard.dll in the profile's BepInEx/plugins/FocusGuard folder.
Configuration
The configuration file is created at BepInEx/config/maddcatter.focusguard.cfg after the game starts once.
Enabled— master switch; defaulttrue.GuardLeftClick— protects attack/tool input; defaulttrue.GuardRightClick— protects block input; defaulttrue.GuardAlternateAttack— protects middle-click alternate attacks; defaulttrue.SafetyWindow— short fallback in seconds; default0.15, range0–0.5.
Building
Set ValheimManagedDir to a folder containing the listed game, Unity, BepInEx, and Harmony reference assemblies, then build the project in Release mode. You can pass it directly with /p:ValheimManagedDir=... or set the VALHEIM_MANAGED environment variable.
What It Protects
- Left click: attacks and tool swings.
- Right click: blocking.
- Middle click: alternate attacks.
FocusGuard is client-side only and does not need to be installed on the server.
Support
For help, bug reports, or compatibility feedback, visit the MaddCatter mod support Discord.
Changelog
1.0.0
- Initial release.
- Guards attack, block, and alternate-attack mouse inputs when Valheim regains focus.
- Tested in fullscreen and windowed display modes.