About TameProtection
From ThunderstoreWild creatures and tamed creatures ignore each other, so mobs stop hunting your tames and your tames stop picking fights.
TameProtection
Wild creatures and tamed creatures no longer treat each other as enemies.
> AI disclosure. This mod was written with AI assistance (Claude) — the Harmony patch, > configuration, build tooling and documentation. It was reviewed and tested against a live > Valheim 1.0.15 dedicated server. Listed under the AI Generated category.
This restores the ProtectTamedFromEnemies behaviour from Wendigo's CreatureCarry 1.3.0, which Eradorn's CustomCreatureCarry fork deliberately left out ("There are no egg-hatching, OdinMounts, ChebsNecromancy or general tame-protection changes").
The effect is mutual: enemies will not target your tames, and your tames will not start fights with enemies. Wild-vs-wild and tame-vs-tame hostility is untouched, so normal combat and your own attacks on tames work exactly as in vanilla.
Install
Install on the server and on every client.
The patch runs client-side - BaseAI.UpdateAI is gated on IsOwner, so hostility checks happen on whichever peer owns the creature, which on a dedicated server is the nearby player's client. Every player therefore needs it; a player without it still sees their own creatures hunt tames.
The server copy makes the configuration authoritative. Without it, nothing is synced and each player silently keeps their own local settings - which matters here, because clients own different creatures, so mismatched settings protect tames or not depending on who is standing nearest.
- r2modman / Thunderstore Mod Manager: search for
TameProtectionbyN3bbyand install. - Manual: copy
plugins/TameProtection/intoBepInEx/plugins/. - Dedicated server: copy the same folder into the server's BepInEx plugins directory.
There is no version handshake. A client without the mod simply does not get the protection; nothing breaks.
Configuration
BepInEx/config/com.n3bby.tameprotection.cfg
| Setting | Default | Synced | Meaning | | --- | --- | --- | --- | | ProtectTamedFromEnemies | true | yes | Master switch. | | ProtectedPrefabs | empty | yes | Comma-separated prefab names (e.g. Asksvin,Lox). Empty protects every tamed creature. | | LockConfiguration | true | yes | While connected, only server admins may change synced settings. | | DebugLogging | false | no | Logs every suppressed hostility check. Noisy; testing only. |
Synced settings are owned by the server and pushed to clients on connect. Admins can change them live from an in-game configuration manager. Clients joining a server without the mod keep their own local values.
How it works
A single Harmony postfix on BaseAI.IsEnemy(Character, Character). The instance overload compiles to return BaseAI.IsEnemy(this.m_character, other), so patching the static method covers every caller. When exactly one of the two characters is tamed, the result is forced to false.
Built against Valheim 1.0.15 / BepInExPack 5.4.2350.
Credits
The ProtectTamedFromEnemies behaviour originates in Wendigo's CreatureCarry 1.3.0. That package shipped without a license file or source-repository URL, so no upstream code was reused here: this plugin is an independent implementation written against the decompiled BaseAI.IsEnemy signature in Valheim 1.0.15. Credit for the original idea and for identifying the right hook belongs to Wendigo.
Eradorn's CustomCreatureCarry is a 1.0 fork of CreatureCarry that keeps the carrying and deliberately omits the tame-protection feature. This plugin exists to fill that gap and is meant to sit alongside it, not replace it.
See the AI disclosure at the top of this page.
Highlights
From source dataLoaders
Runs on BepInEx.
Footprint
Rated a light load on a server.
Last update
Its author last shipped an update 46d ago.
TameProtection on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Valheim servers, for BepInEx servers. We download it from Thunderstore, place it, and restart the server.
- Server side
- Optional on the server
- Server type needed
- BepInEx
- Server load
- light
- Smallest plan we suggest
- Valheim — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 1.0.0, released 2026-09-19
Game versions by loader
| Loader | Game versions | Newest |
|---|---|---|
| BepInEx |
From 1 recorded build of TameProtection.
Dependencies
- Required: BepInExPack Valheim
Declared by the newest build that lists any. Required ones are installed with it on one-click installs.
Run TameProtection on a Valheim server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogQuality of life & UI
Small conveniences, tweaks and interface improvements players notice straight away.
Works on a server
From source side supportThunderstore lists server-side support for TameProtection as optional: it can run on a server, but isn’t required there.
Compatibility
- Game
- Valheim
- Loaders
- BepInEx
- Runs on
- Serveroptional on the server
- Requires
- One-click install needs a BepInEx server.
Verified at the source
- ✓ThunderstoreOfficial listing, checked 2026-10-01Open ↗
- ✓AuthorN3bby, as published on Thunderstore
- ✓LicenseNot published by the sourceFree




