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.
Carturs Safe Stamina
Stamina costs nothing while no enemy is near. Chop, mine, sprint, jump, swim, sneak and build for free out in the quiet, and pay full price the moment something hostile walks into range. Each cost is separately toggleable.
| Date uploaded | a month ago |
| Version | 1.0.13 |
| Download link | Cartur-Carturs_Safe_Stamina-1.0.13.zip |
| Downloads | 663 |
| Dependency string | Cartur-Carturs_Safe_Stamina-1.0.13 |
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
Cartur's Safe Stamina
Stamina costs nothing while nothing hostile is near you, and the full costs return the moment something is.


What it does
Out in the quiet, chopping, mining, weapon swings, sprinting, jumping, swimming, sneaking, and building, repairing and removing pieces cost no stamina. Planting with the cultivator and levelling with the hoe go through the build cost, so they are free too. When a hostile character walks into range, every cost applies again at full price, even in the middle of a swing.
The bar also refills in two situations where vanilla stops regeneration completely: while you swim and while you attack or dodge. This only happens when you are safe, and the swim and attack switches below control it. Skill gain is not touched by the mod.
Only the local player is affected. A boar or a draugr inside your safe radius still pays for its own attacks.
What counts as safe
No hostile character within SafeRadius metres of you, 25 by default. Dead characters do not count.
Hostility is the game's own enemy check (BaseAI.IsEnemy) rather than a list of prefab names. Tamed animals are ignored, a boar that has not noticed you still counts, and anything a mod adds is judged by the same rule. The check runs four times a second rather than every frame.
If a modded creature is in an enemy faction but never fights, put it in IgnoredCreatures and it will stop counting.
Settings
Config file: BepInEx/config/com.jekkle.valheim.cartursafestamina.cfg.
| Setting | Default | What it does |
|---|---|---|
SafeRadius |
25 | Metres. How close a hostile has to be before costs return. |
AffectAttacks |
true | Chopping, mining, weapon swings. |
AffectSprint |
true | Sprint drain. |
AffectJump |
true | Jump cost. |
AffectBuild |
true | Build, repair, remove piece. Every build tool, so planting with the cultivator and the hoe too. |
AffectSwim |
true | Swim drain. |
AffectSneak |
true | Crouch and sneak drain. |
AffectEncumbered |
false | Over the weight limit: walking costs nothing and stamina refills. Off keeps the vanilla penalty. |
IgnoredCreatures |
(empty) | Comma-separated creatures that never count as a hostile nearby, by in-game name or prefab name (for example T.W.I.G). |
Each cost is its own switch, so you can leave combat or swimming paying full price.
ConfigurationManager makes every setting adjustable in game from the F1 menu, without a restart. It is optional.
Known issues and things to know
Free swimming also means you cannot drown while safe. The drown timer only starts once stamina is empty, so a swim that costs nothing never gets there. That is why AffectSwim has its own switch. Turn it off if you want the water to stay dangerous.
Holding a drawn bow still costs stamina inside the safe radius. That drain does not go through the same cost as other attacks and the mod does not cover it.
AffectEncumbered is off by default. Being over the weight limit costs stamina and blocks regeneration as in vanilla unless you turn it on.
Compatibility
Mods that change stamina amounts work alongside this one. They set the number and this mod zeroes it afterwards, hooking the game's own stamina modifier calls rather than rewriting shared fields. That is how it avoids clashing with Speedy Paths, which wrapped the same value.
Install
Use a mod manager (r2modman, Thunderstore or Gale) and it pulls in BepInEx for you. To install by hand, drop CarturSafeStamina.dll into BepInEx/plugins.
Free, and always will be. If it improved your game you can tip me on Patreon.
Discord: bug reports, install help, and mod requests. Bug reports get their own thread so nothing is lost in a chat scroll, and requests are voted on.
More from Cartur: HD Blood · Map Pins · Compass and Clock · Follow Command · Flooring · UI HUD · Waste Management · Feeding Trough · Combat Text
CHANGELOG
Changelog
1.0.14
- New icon in the Cartur's Mods style. The mod itself is unchanged from 1.0.13 (BepInEx still reports 1.0.13).
1.0.13
- In-game screenshots in the README. No code changes.
1.0.12
- New icon, and the README is rewritten: a fuller description of what the mod does, every setting and default checked against the code, and image captions that match the pictures. No code changes.
1.0.11
- AffectEncumbered setting, off by default. On, being over the weight limit while safe costs nothing to walk and stamina refills, for hauling wood and stone around the base. Off keeps the vanilla penalty, as since 1.0.9. Requested on Nexus.
AffectBuildnow says what it already did: planting with the cultivator and levelling with the hoe go through the same build cost, so they are free when safe too.
1.0.10
- IgnoredCreatures setting. List creatures that should never count as an enemy nearby, by the name shown in game or the prefab name, comma-separated. For modded creatures that are hostile by faction but never fight, like T.W.I.G. Requested on GitHub.
1.0.9
- Being over-encumbered never gets free stamina regeneration.
- Attacks that give stamina back are no longer zeroed.
1.0.8
- Works alongside Speedy Paths. Both mods changed the same stamina value around the same game call, and together they could leave sprinting free even in combat. Safe Stamina now zeroes the cost at the game's own stamina hook instead, for sprint, jump, swim and sneak, so no other mod's adjustments are disturbed.
1.0.7
- No more free stamina while overloaded. Standing still and encumbered, the game's own drain never fires - it is gated on movement - so nothing kept the regeneration timer down, and this mod then regenerated anyway. Being over the weight limit costs you again.
- The setting's description now mentions attacks, which have been covered since 1.0.5.
1.0.6
- Listing only. The store page is rewritten: it leads with what the mod does instead of a links block, the settings table matches the config file, and it links every Cartur mod. No code change.
1.0.5
- Stamina now refills while swimming and while attacking, when safe. Zeroing a cost was
never the same as refilling:
Player.UpdateStatssets the regen rate to 0 outright while you are swimming off the ground, mid-swing, mid-dodge, wall-running or encumbered, so the bar sat flat instead of filling. It now regenerates on those frames too, as long as nothing hostile is insideSafeRadiusand the normal post-spend regen delay has passed. Follows the existing switches - the swim case obeysAffectSwim, attacks and dodges obeyAffectAttacks.
1.0.4
- Page only - the mod itself is unchanged from 1.0.3. Adds a link to Cartur's Flooring, so every mod of mine points at the others.
1.0.3
- Sneaking is now free while safe, on its own
AffectSneakswitch. Crouching chargedm_sneakStaminaDrainevery tick even with nothing around, which is the one movement cost the mod had missed. - Documented ConfigurationManager as the easy way to change the settings in-game, with a screenshot of the panel.
- Added Follow Command to the links to my other mods.
1.0.2
- Moved the links to my other mods to the top of the page.
1.0.1
- Added links to my other mods.
1.0.0
First release.
Stamina costs drop to zero while no hostile character is within SafeRadius
(default 25m), and come back the moment one does. Covers attacks — chopping,
mining and weapon swings — sprint, jump, swim, and build/repair/remove, each
on its own switch.