Mods / Stamina Mod
- Tags:
- Author:
- traugdor
- Side:
- Both
- Created:
- Jul 9th at 9:00 PM
- Last modified:
- Aug 18th at 3:00 AM
- Downloads:
- 3019
-
Recommended download (for Vintage Story 1.22.0 - 1.22.7):
staminamod_1.1.3.zip 1-click install
Stamina Mod
Ever been chased by a bear for 2,500 blocks in a dead-straight line because the game's AI never gets tired? This mod fixes that — and then compensates for it, so wildlife isn't just nerfed into pushovers.
The Problem
Vanilla predators will pursue a target forever with zero cost. Prey will flee forever too. And everything — predator or prey — moves unrealistically fast in water. Meanwhile, *you* burn hunger the whole time you're sprinting. Animals had no equivalent limiter. Now they do.
Features
Core stamina system
- Every wild animal (wolf, bear, hyena, fox, raccoon, deer, elk, gazelle, goat, moose, pig, sheep, hare — adults and babies) gets a stamina pool, sized roughly by body weight. A moose can run longer than a hare.
- Sprinting, fleeing, and swimming drain stamina. Casual wandering and foraging don't.
- As stamina drops, movement speed is throttled — animals don't just stop, they visibly tire out.
- Once stamina bottoms out, a chasing predator gives up and breaks off the pursuit — unless it's actively defending itself from an attack, in which case it'll still fight back even while exhausted.
- Prey do the same in reverse: a critically gassed animal won't start a fresh panic-flee. An emergency "cornered" escape response still works regardless of stamina, since that's a reflex, not a choice.
- Stamina regenerates automatically once an animal stops exerting itself.
Balance compensation
- Predators hit harder. Any AI-controlled attacker with a stamina pool deals bonus melee damage, offsetting the fact that it can't just run you down forever anymore.
- Predator haste. Wolves, bears, hyenas, foxes, and raccoons are actually *faster than vanilla* while their stamina is above 80% — they only settle into normal speed once they've been working for it, then throttle down further as they tire.
Deer panic mode
- An injured deer gets a one-time adrenaline speed burst that overrides the normal fatigue throttle for a few seconds. It only triggers while hurt, and won't be available again until the deer fully heals — no infinite panic-sprinting.
Player stamina
- Players get a stamina pool too (about 4x a black bear's, by default), drained by sprinting and throttled the same way animals are.
- Recharges passively at rest, or fully restores if you sleep at least 3 in-game hours.
- Sprint locks out entirely below ~8% stamina — you can't will yourself into one more burst on an empty tank.
Configuration
Every number above is tunable. On first launch the mod generates `ModConfig/StaminaMod.json` with all the defaults exposed: drain/regen rates, speed thresholds, exhaustion and give-up-the-chase fractions, predator haste strength, panic burst strength/duration, player pool size, sleep recharge threshold, and more. Individual entity types can also be hand-tuned via JSON patches if you want one species to behave differently from the rest.
Commands
`/staminamod` (requires `controlserver` privilege) reports the stamina state of whatever you're looking at, or your own stamina if you aren't looking at anything with a pool.
- `/staminamod set <value>` — force a specific stamina value on your target
- `/staminamod full` — instantly refill
- `/staminamod empty` — instantly drain, for testing exhaustion/panic/give-up behavior
Compatibility
No vanilla files are overwritten. The mod attaches its behavior to existing wild animal entity types via non-destructive JSON patches, and uses targeted Harmony patches to hook into the AI, pathing, and combat systems at a handful of well-scoped points. Should coexist fine with other mods that don't directly rewrite the same vanilla AI task classes.
Credits
Concept and direction:
traugdor: Implementation — game code archaeology, design, C#, Harmony patches, JSON patches — by Claude Sonnet 5 (Anthropic), working autonomously end-to-end with zero human intervention.
Enjoy!
| Mod Version | Mod Identifier | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|---|
| 1.1.3 | staminamod | 1232 | Aug 18th at 2:59 AM | staminamod_1.1.3.zip | 1-click install | ||
|
* Fixed: Server crash (and player disconnect) when an animal checked the local weather for the hot-climate system at a bad moment — if the ground under it wasn't fully loaded yet, the game had no temperature to give back, and the mod didn't handle that gracefully. It now just keeps using the last known temperature instead of crashing. | |||||||
| 1.1.2 | staminamod | 789 | Jul 20th at 7:22 PM | staminamod_1.1.2.zip | 1-click install | ||
|
* Fixed: Stamina HUD bar not hiding when player stamina is disabled — if you had player stamina on, then turned it off (EnablePlayerStamina: false), the bar used to stay frozen on screen showing stale numbers forever. Now it correctly clears and disappears. | |||||||
| 1.1.0 | staminamod | 877 | Jul 10th at 1:32 AM | staminamod_1.1.0.zip | 1-click install | ||
| |||||||
| 1.0.0 | staminamod | 121 | Jul 9th at 9:02 PM | staminamod_1.0.0.zip | 1-click install | ||
| |||||||
genuinely a bit confused by the AI usage disclosure at the end, did claude do all the coding or did it just assist?
It did all of the coding. The point was that it was supposed to be entirely AI-generated as a test. It surprisingly worked and I tested it a lot.
Probably helps that I know how to code, but this was an interesting experiment. Plus someone asked for the mod, so I was happy that it could be quickly made in a couple hours.
nodding! thank you for the clarification :3 im really curious to try this out.
Got this same error for a bunch of different animals, tripped the DieAboveErrorCount at >100000 over a few minutes.
At the time I had been running a chunk pregen for a while.
you're not the only one to report something like this. I'll get a fix up soon.
Hey! I don't see a github to report issues so I'll put it here, Its been causing crashes on my server. I love the mod! but I'll have to disable it for a little while. The exception triggered when I tried to craft something, but it seems to be because the server was in the process of removing me. EDIT: if we could add the ability to remove certain animals using the config file, that would help a lot too
Looks like it's not working with raccoons properly. Let me figure that out.
Is it possible to add an option to allow us to move the stam bar or for it to auto hide when stamina is full. When using mounts like the dragons from draconis the stamina bar covers the dragons stamina bar. Edit:just updated the mod and noticed it now does this.
It already auto-hides when full.
u should add stamina for the monsters too, cuz dear god help me if a shiver chases me until i tire down 🙏
Hmm..... I should give them running shoes. XD
Rust monsters are immortal, tireless beings. You are warned.
Can you add something to the effect that sitting and resting that way will replenish the player's bar (much faster than normal)? Or otherwise give us control over the rate at which it recharges?
I thought about it and didn't see how it would be fair. Stamina replenishes quickly enough already. Sometimes you just need to sit and wait.
I actually had the inverse opinion that it restored far too slow without chugging berries and juice- I offset it by drastically increasing the player's stamina, but I've made my peace with it. I would agree on the "SIT" and wait part of what you say, though!
I guess maybe I'm one of those that doesn't sprint around everywhere. Let me think on it.
Yeah- I was hoping this mod would mitigate at least some of the "full sprint everywhere" mentality, but I just found myself having a lot of lulls where I hated long treks without taking little awkward breaks or decimating the foliage on the way. It is still one of my favorite implementations of this system out of the similar mods. Only thing vigor has over this is stamina loss on Salty's movement mods, like the dash.
Hi, while I like the mod idea too, I just want to tell you that I love the thumbnail, never change it <3
Awesome mod, though you drain your stamina just from holding the sprint key and standing still which I find to be a little odd.
Why are you standing so fast!
I'll look into that and see if I can update it so it doesn't do that any more.
Nice mod - gives me a reason to be more strategic about sprinting all the time and incentive to chase faster prey.
One issue to note: it covers the oxygen bar when your seraph is underwater.
I'll move the location of the bar. I didn't realize that the oxygen bar was there because I hardly spend any time under water and didn't when testing this to make sure it worked.
one question and one suggestion:
1. compatible with "Flee Exhaustion" (speed is linked to remaining health)?
2. Animals should slow down very fast (in hot climate); players (compared lower) speed shouldn't go down as fast (Persistence Hunting<!--TgQPHd||[]-->)
I am wondering about Flee Exhaustion as well. They seem to work together at least my server didn't give me any errors or crashes but I was unable to actually test if both are working correctly together. Although if not maybe decreasing stamina with health pool would be a fitting addition in this mod as well.
Great mod so far, but i disable player Stamina, it would be nice if we can hide the Stamina bar
The stamina bar should automatically hide when you turn it off. lemme double check the code.
Is it possible to turn off Player Stamina? This Mod sounds interesting but I already use Vigor.
Yeah you can turn it off in the config.
Does this add an actual stamina bar or is it a "hidden" stat in the character menu?
Also, can the player stamina be completely disabled?
I can see about adding in both features here, soon.
So it turns out that the player stamina could be disabled. I missed it in the config file.
But I added the stamina HUD bar and it works quite nicely.
nice!
Sounds like a fucking awesome mod, good job, I'll try it soon.
Glad you like it!
also jaunt
will this play nice with the mod vigor?
I'm going to add an option to disable the player's stamina and then it should work nicely with vigor installed. I may even have it disable the player's stamina entirely if vigor is installed.
ok sounds great!
Nice. Stamina to pursue prey long distances was one of the only physical advantages early humans had, along with opposable thumbs.
(Brains and tool use is a whole other story.)