DecorativePet
Spawn a named immortal companion with native animation, hunger, and an ignore-enemies toggle.
模組介紹 作者原文
Decorative Pet
Decorative Pet adds lightweight, multiplayer-friendly companion animals to Valheim. Spawn a named vanilla creature, make it passive and invulnerable, and let it follow you around as a purely decorative companion.
The mod uses Valheim's existing creature prefabs. No custom models, textures, or asset bundles are required.
Features
- Spawn a named vanilla creature near the player who issued the command.
- Pets are immortal and use Valheim's native movement and attack animations.
- Toggle Ignore enemies by aiming at your pet and interacting with an empty hand.
- Feed the pet with its normal accepted food; the hover text shows a hunger bar.
- Follow and stay modes.
- Rename your own pets at any time.
- Automatic teleport when a pet gets too far away.
- Works in multiplayer: the host creates the networked pet, and every player can see it.
- Each player can control only their own pets.
- Pets exist for the current hosted world session and can be spawned again after a restart.
Installation
Install DecorativePet through Mod Manager and launch Valheim with Start modded.
For multiplayer, install the same version for the host and all players. The host must have the mod because the host creates and moves the networked pets. Installing it for everyone ensures that names, passive behavior, commands, and follow/stay mode work consistently.
Chat commands
Press Enter to open the Valheim chat and enter one of these commands:
/pet help
/pet spawn [Prefab] [Name]
/pet name
/pet follow
/pet stay
/pet ignore
/pet attack
/pet list
/pet remove
Examples:
/pet spawn Wolf Rex
/pet spawn Lox Big Bublik
/pet name My Companion
/pet stay
/pet follow
/pet ignore
/pet attack
If no prefab or name is supplied, the configured defaults are used:
/pet spawn
The same command can also be entered in the F5 console without the leading.
Available creature prefabs
| Prefab | Creature | Notes |
|---|---|---|
| Wolf | Wolf | Recommended default |
| Boar | Boar | |
| Lox | Lox | |
| Chicken | Chicken | |
| Deer | Deer | |
| Hare | Hare | |
| Neck | Neck | |
| Serpent | Serpent | Best spawned in water |
| Fish1 | Fish | Water only |
| Fish2 | Fish | Water only |
| Fish3 | Fish | Water only |
| Fish4 | Fish | Water only |
Prefab names are case-sensitive. If a prefab is unavailable in your Valheim version, the command will return an error.
For full native follow animation and naming, use tameable creatures such as Wolf, Boar, or Lox. Creatures without Valheim's MonsterAI or Tameable components may spawn but cannot support every companion feature.
Multiplayer behavior
- A player enters a /pet command in chat.
- The request is sent to the world host through Valheim's normal network chat RPC.
- The host creates a networked vanilla creature near the requesting player.
- All connected players can see the pet, its name, and its movement.
Pet commands affect only the pets owned by the player who entered the command. For example, /pet remove removes your pets, not somebody else's.
Aim at your pet to see its assigned name, hunger bar, and the current aggression action.
With an empty hand, interact to toggle Ignore enemies. With food in hand, the normal
Valheim feeding interaction is preserved. The chat commands /pet ignore and /pet attack
set the mode directly.
Following and teleporting
Pets follow their owner while follow mode is enabled. If the distance becomes greater than 15 metres, the server automatically teleports the pet close to its owner.
The teleport distance can be changed in:
BepInEx/config/ua.bohdan.decorativepet.cfg
Edit the TeleportDistance value and restart the game or reload the profile.
Removing a pet
Use this command in chat:
/pet remove
This removes all decorative pets owned by the player who entered the command. It is recommended to remove your pets before uninstalling the mod.
Decorative pets are session-based and disappear when the host ends or restarts the world session.
Support
If a command does not
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: