Source-checkedCreatures & NPCs

Selective Pet Protection

by MagnusMagnuson · for Valheim

Selectively prevent your pets from dying

2.5KDownloads
19 mo agoLast updated
BepInExLoaders
ThunderstoreSource

About Selective Pet Protection

From Thunderstore

Selectively prevent your pets from dying

Selective Pet Protection

This mod is based off of PetProtection (thunderstore github). Rather than protecting all pets, it only protects pets you choose individually to protect. Pets can either be immortal or stunnable, akin to V+'s immortal and essential options. "Immortal" means, that pets will be completely unfazed by damage. "Stunnable" means that rather than dying, pets become stunned for a custom period of time where they will simply freeze in their spot and recover. I don't think essential/stunnable actually works (anymore) in PetProtection/V+ so I made sure it works for Selective Pet Protection.

Commands

To make a pet immortal or stunnable, you simply rename them with the commands !god or !stun respectively. This will not actually rename the pet, but just add the protection. You can always tell the state of protection by the shield icon after the pets name. By default, gold means immortal, light blue means stunnable. You can change the colors to your liking in the config. Use !none to remove protection.

NEW: You can now toggle the protection with the displayed hotkey (Shift + T by default), when you hover your cursor on the pet.

immortal shield

Configuration

You can change the shield color for immortal and stunnable. You can set the time a pet will be stunned for. You can change the hotkey to toggle the protection on hover.

Compatibility

Partial support for VikingNPC. Only toggling via the hotkey (default is Left Shift + T) works. The hotkey tooltip will not show up when you hover over a tamed Viking, but it will still work, apparent by the shield icon. When your Viking is stunned it will also not say "Recovering" when you hover, but it is indeed recovering in the background.

Known Issues

  • When a pet is stunned and there is no other valid target around, the attacker will keep attacking the stunned pet. This has no effects on the pet, but rather than the attacker roaming around, he will be fixated on the pet. This might be somewhat of a fringe case, since usually a player will be around.
  • When stunned, pets might be locked in their current animation und they recovered
  • Non-physical damage can unstun pets.

Contact

magnus.jpg on the Valheim Modding Discord

Changelog

0.2.2 Fixed a Prefix NRE when a Tameable didn't have a Character component (e.g. HardRock)</br> 0.2.1 Partial support for VikingNPC.</br> 0.2.0 Added a hotkey to toggle the protection on hover</br> 0.1.1 Forgot to mention the !none command in the readme

Highlights

From source data

Loaders

Runs on BepInEx.

Footprint

Rated a light load on a server.

Dependencies

Needs 1 other project installed alongside it.

Selective Pet Protection 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
0.2.2, released 2025-04-08

Game versions by loader

LoaderGame versionsNewest
BepInEx

From 5 recorded builds of Selective Pet Protection.

Recent builds

BuildReleasedGame versionsLoaders
0.2.22025-04-08n/aBepInEx
0.2.12025-04-05n/aBepInEx
0.2.02025-04-04n/aBepInEx
0.1.12025-03-19n/aBepInEx
0.1.02025-03-19n/aBepInEx

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run Selective Pet Protection 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 catalog
Listed on Thunderstore as “Content”

Creatures & NPCs

Adds or changes creatures, NPCs and how they behave.

Works on a server

From source side support

Thunderstore lists server-side support for Selective Pet Protection 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. 1 other project installed alongside it.

Verified at the source

  • ✓ThunderstoreOfficial listing, checked 2026-10-02Open ↗
  • ✓AuthorMagnusMagnuson, as published on Thunderstore
  • ✓LicenseNot published by the sourceFree

Selective Pet Protection, answered

Generated from the mod’s own source data.

Do my players need to install Selective Pet Protection?

Thunderstore lists server-side support for Selective Pet Protection as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

BepInEx.

Is it free?

Yes. Selective Pet Protection is free to download from Thunderstore.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Selective Pet Protection on a Valheim server.

Deploy in about a minute from $9.99 a month, then add Selective Pet Protection in one click.