SpamKeyMod

v2.1.0·Updated 2026-09-10

Automates repetitive actions in Valheim without changing game mechanics. Supports Attack, Block, Interact, Sprint, Fishing, Bow, Eitr, and more.

About this mod Author’s original text

Spam Key Mod

A lightweight Quality of Life mod that automates repetitive actions in Valheim.

It doesn't modify skill gain, bypass game mechanics, or provide unfair advantages. Instead, it repeatedly performs selected inputs for you, making repetitive gameplay less tedious and allowing you to step away from your keyboard when appropriate.

Perfect for AFK-friendly skill training and servers with local character progression.

Features

Language

Configure Language English/Russian. From update language in Mod Menu - Restart Game. Ingame messages update istantly.

Fully configurable hotkey

Configure a toggle key in the F1 Configuration Manager.

Default: Mouse3 (Back)

Switch automation on or off instantly, or change modes with Shift + Mouse3 without opening the configuration menu.

Adjustable repeat interval

Set the delay between repeated actions.

Default: 0.1 seconds

Supported automation modes

  • Attack
  • Block
  • Interact
  • Sprint
  • Jump
  • Sneak
  • Fishing
  • Swimming
  • Cultivator / Hammer
  • Bow
  • Eitr Magic

On-screen indicator

A small status indicator appears in the upper-left corner whenever automation is enabled.

Automation Modes

Attack

Continuously performs the primary attack.

Perfect for AFK skill training or repetitive combat actions.

Block

Repeatedly taps the block button, making parries much easier.

Need to hold block continuously instead? Enable the dedicated option under Special Mode Settings.

Interact

Rapidly presses the Interact key.

Greatly speeds up filling furnaces, smelters, spinning wheels, windmills, and other crafting stations.

Uses the global spam interval.

Sprint

Automatically sprints forward while managing stamina.

  • Stops when stamina is depleted.
  • Resumes automatically after recovering to 50% stamina.

The same stamina management logic is shared by several other automation modes.

Jump

Continuously jumps while automatically managing stamina.

Sneak

Continuously moves while sneaking using the same stamina management logic as Sprint.

Fishing

Automatically casts and reels in the fishing rod.

You can configure:

  • Cast duration
  • Casting distance

The next cast begins automatically after stamina has fully recovered.

Swimming

Automatically swims forward.

If stamina drops below the configured threshold (20% by default), the character turns around and swims back toward shore.

After fully recovering stamina, swimming resumes automatically.

Cultivator / Hammer

Automatically cultivates terrain or places structures.

Features:

  • Automatic stamina management
  • Stops when tool durability reaches 1

Bow

Optimized for Bow skill training.

Uses an emote-based animation cancel to increase firing speed.

Safety features:

  • Stops automatically when durability reaches 1

Prefer vanilla behavior?

Simply use the regular Attack mode instead.

Eitr Magic

Continuously holds the attack button.

Primarily intended for elemental magic, such as the Staff of Frost.

When Eitr falls below 5, casting pauses automatically until Eitr has recovered to 50%.

Configuration

Open the F1 menu (requires Jotunn or BepInEx Configuration Manager) and select Spam Key Mod.

  • Key

Configure:

  • Toggle key
  • Spam interval
  • Actions

Select which automation mode should be active.

  • Special Mode Settings

Additional options for specific automation modes.

Requirements

  • BepInEx Pack for Valheim

FAQ

Does this increase skill gain?

No.

The mod does not modify experience gain or skill progression.

Does it bypass game mechanics?

No.

It simply automates repeated key presses while respecting the game's normal mechanics.

About

This project was built almost entirely with the help of Claude Sonnet 5 and ChatGPT.

I'm not a programmer, so while I've tested every feature extensively, there may still be undiscovered bugs.

The mod originally started as a personal project for myself and a few friends. Since I couldn't find anything similar, I decided to share it with the community.

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
SpamKeyMod-2.1.0.zip
File size
163.4 KiB