SaveYourLuckBruh

v1.0.2·Updated 2026-09-30

Persists vanilla Valheim bad luck protection across game sessions and world transitions.

Screenshots 1 screenshots

About this mod Author’s original text

🍀 SaveYourLuckBruh

Persists vanilla Valheim pseudo-random drop counters so your bad luck equity is never lost across game sessions or world travels.

In Valheim, rare item drops (such as trophies and rare materials) feature an internal "bad luck protection" system designed to prevent prolonged dry streaks. However, in the vanilla game, this counter is stored purely in temporary memory and resets to zero every time you close the game.

SaveYourLuckBruh fixes this by saving your bad luck progress directly into your character save file, preserving your hard-earned drop progress across restarts and across different worlds.

🎯 The Problem

Vanilla Valheim uses a hidden countdown (s_pseudoCounter) for any item with a drop rate of 30% or lower. Every time you kill an eligible creature without getting the rare item, the countdown ticks closer to a guaranteed drop.

Example: Hunting Cultist Trophies

  • The Math: A Cultist Trophy has a base 10% drop chance. The game rolls an internal countdown between 1 and 20 kills.
  • Session 1: You clear Frost Caves and defeat 18 Cultists without seeing a trophy drop. You are now 1 or 2 kills away from a guaranteed trophy.
  • The Flaw: You log off for the night and close Valheim.
  • Session 2 (Vanilla): You boot up Valheim tomorrow. Your 18 kills are gone. The game re-rolls a brand-new countdown from scratch. If you repeatedly play in short 1–2 hour sessions, you might suffer dozens of dry kills because your bad luck equity never survives a game restart.

💡 The Solution

SaveYourLuckBruh automatically saves your active bad luck counters into your character's native custom save data (Player.m_customData):

  • 💾 Persistent Across Restarts: When you exit Valheim and launch it again the next day, your exact remaining countdown is restored.
  • 🌍 World-Scoped Progress: Counters are tracked per unique World ID. Hunting Cultists in your solo world will not bleed into or reset your progress on a multiplayer server.
  • ⚔️ Attacker Attribution: In co-op play, your bad luck countdown is only consumed when you (or your tamed pets) deliver the lethal blow—an ally landing a kill won't drain your personal bad luck equity.
  • 🛡️ Zero Corrupted Saves: Stored entirely within vanilla character fields. If you ever uninstall the mod, your character file (.fch) remains 100% intact and uncorrupted.
  • 🔌 Client-Side Only: Does not need to be installed on dedicated servers. Works seamlessly in singleplayer, co-op, or multiplayer servers without affecting unmodded players.

⚙️ Configuration

SaveYourLuckBruh is an install-and-forget mod. It requires no functional configuration or gameplay tweaking to work.

Standard logging settings (including debug logging) are available via BepInEx/config/vapok.mods.SaveYourLuckBruh.cfg:

  • Enable Debug Mode: Outputs detailed log statements to LogOutput.log showing when counters load, decrement, trigger drops, and save.

🤝 Compatibility & Requirements

  • BepInEx: 5.4.2350 or later.
  • Jotunn: 2.30.2 or later.

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_ValheimValheimModding-JotunnValheimModding-YamlDotNet

File & checksum

Filename
SaveYourLuckBruh-1.0.2.zip
File size
325.6 KiB