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.
| Date uploaded | 2 months ago |
| Version | 1.2.0 |
| Download link | Yatsuta-DecorativePet-1.2.0.zip |
| Downloads | 43 |
| Dependency string | Yatsuta-DecorativePet-1.2.0 |
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.2350README
Decorative Pet
Мережевий мод для Valheim: будь-який гравець може написати команду у внутрішній чат, і хост створить біля нього ванільну тварину. Вихованець не атакує, не отримує шкоди, має ім'я та бігає за своїм власником.
Мод використовує готовий prefab самої гри, тому друзям не потрібні окремі текстури чи asset bundle.
Встановлення через Thunderstore Mod Manager
- Імпортуйте ZIP цього мода у профіль Valheim (зазвичай Settings → Profile → Import local mod), або встановіть його зі сторінки Thunderstore.
- Встановіть той самий пакет хосту та всім гравцям. Хост обов'язково має мати мод, бо саме він створює мережевий об'єкт.
- Запускайте Valheim кнопкою Start modded.
Для звичайного використання консоль F5 більше не потрібна. Вона залишається лише як запасний варіант для хоста.
Команди в чаті
Натисніть Enter і введіть команду. Команду може вводити не тільки хост:
/pet spawn
/pet spawn Wolf Рекс
/pet spawn Lox Бублик
/pet name "Мій вовк"
/pet follow
/pet stay
/pet list
/pet remove
/pet help
/pet spawn створює стандартного вовка з іменем Рекс. Вихованець з'являється приблизно за 2–3 метри від того гравця, який написав команду, а не біля хоста.
Доступні ванільні prefab-імена, наприклад Wolf, Boar, Lox, Chicken, Neck, Deer. Якщо певної назви немає у вашій версії гри, мод напише помилку.
Найзручніші декоративні тварини:
Wolf — вовк
Boar — кабан
Lox — локс
Chicken — курка
Deer — олень
Hare — заєць
Neck — некк
Serpent — змій (краще створювати у воді)
Fish1 — риба (тільки у воді)
Fish2 — риба (тільки у воді)
Fish3 — риба (тільки у воді)
Fish4 — риба (тільки у воді)
Наприклад: /pet spawn Hare Пухнастик.
/pet name, /pet follow, /pet stay, /pet list і /pet remove працюють тільки з вихованцями того гравця, який ввів команду.
Як це працює в мультиплеєрі
- Гравець вводить
/pet spawn Wolf Рексу чаті. - Мод передає запит хосту через звичайний мережевий Chat RPC.
- Хост створює звичайний ванільний мережевий
Wolfбіля гравця-заявника. - Усі клієнти бачать модель, ім'я та рух вихованця як у будь-якого іншого звіра на сервері.
Окрема модель не додається, тому друзям не потрібні окремі текстури чи asset bundle. Для однакової поведінки, імені та режимів follow/stay пакет треба встановити всім учасникам.
Якщо вихованець відстане від власника більш ніж на 15 метрів, сервер автоматично телепортує його поруч із власником. Поріг можна змінити у конфігурації BepInEx/config/ua.bohdan.decorativepet.cfg через параметр TeleportDistance.
Щоб видалити свого вихованця, напиши /pet remove у чаті. Команда видаляє тільки вихованців того гравця, який її ввів.
Перед видаленням самого мода також виконайте /pet remove, інакше збережений ванільний prefab може залишитися у світі без декоративної логіки.
CHANGELOG
1.5.0
- Added a compact on-screen pet panel with hunger and aggression status.
- The panel appears only while aiming at a decorative pet.
1.4.4
- Fixed inverted aggression behavior by saving and restoring every MonsterAI attack flag.
/pet ignorenow disables attacks against creatures as well as players./pet attackrestores the prefab's original aggression settings.
1.4.3
- Added attack-method guards to stop retaliation after a pet is hit.
- Removed the broken pseudo-graphic hunger bar from hover text.
- Kept only a compact localized mode line above the pet.
1.4.2
- Kept MonsterAI enabled in ignore mode so pets can approach dropped food and eat.
- Added a fallback hunger bar based on Valheim's hungry status when the food-level API is unavailable.
- Preserved compact hover text.
1.4.1
- Ignore mode now disables the pet's MonsterAI to prevent retaliation after repeated hits.
/pet attackre-enables MonsterAI and restores the original attacks.- Reduced hover UI to a single localized mode line.
1.4.0
- Ignore mode now replaces the complete attack container, including array-based Valheim builds.
- Reduced hover text to a compact food/mode line.
1.3.9
- Ignore mode now removes all configured MonsterAI attacks and restores them with
/pet attack. - Added Ukrainian/English labels based on the selected Valheim language.
1.3.8
- Restored the requested face icon and resized it to exactly 256×256.
1.3.7
- Fixed a null Harmony target that aborted the entire mod during startup.
- All later pet features now initialize even on Valheim builds without
BaseAI.DoAttack.
1.3.6
- Resized the package icon to the required exact 256×256 dimensions.
1.3.5
- Blocked Fish prefab pickup methods (
Pick,Pickup, andTake), not justInteract. - Added fish hover-name hooks for ItemDrop/Pickable implementations.
1.3.4
- Added dedicated Fish/Pickable/ItemDrop hooks so decorative fish cannot be picked up.
- Added a decorative name and aggression action to fish hover text.
1.3.3
- Ignore mode now blocks target acquisition and retaliation after the pet is hit.
- Added a direct empty-hand interaction toggle on the owner’s pet.
- Added hunger/aggression information to Character hover-name rendering.
1.3.2
- Replaced the package icon with the requested Decorative Pet icon.
1.3.1
- Fixed pet commands when Valheim formats the chat sender name differently.
- Ignore mode now clears creature targets continuously, including skeletons and wildlife.
- Applied the hunger/aggression hover text to every compatible Valheim hover-text overload.
1.3.0
- Added the required
icon.pngpackage icon. - Cached reflected game types to reduce the one-time hitch when spawning a pet.
1.2.9
- Fixed repeated transform errors after a pet or player object disappears.
- Prevented the teleport tick from touching destroyed Unity objects, removing the related FPS drops.
1.2.8
- Blocked picking up decorative fish and other marked Pickable/ItemDrop pets.
- Normal world drops and unmarked creatures are unaffected.
1.2.7
- Added an empty-hand hover interaction to toggle Ignore enemies for your pet.
- Added
/pet ignoreand/pet attackcommands. - Added a hunger bar to the pet hover text; normal Valheim feeding remains available.
- Kept native MonsterAI movement and animations while preventing attacks in ignore mode.
- Removed the code path that disabled creature food consumption.
1.2.6
- Replaced manual transform movement with Valheim's native MonsterAI following.
- Restored normal walking and running animations.
- Removed reflection-heavy movement updates that caused severe FPS loss.
- Improved tame-state and custom-name synchronization.
1.2.5
- Fixed vanilla prefab lookup on current Valheim builds.
- Replaced manual ZDO creation with normal network-prefab instantiation.
- Removed all idle polling when no pets exist and removed global ZNetView hooks.
- Pets are now session-based and disappear when the host world session ends.
1.2.4
- Fixed compatibility with Valheim builds where singleton instances are exposed as properties instead of fields.
- Fixed
/pet spawnand server detection on those builds. - Removed repeated Harmony reflection warnings that could cause log spam and stuttering.
1.2.3
- Removed the periodic full-world scan that caused a freeze every two seconds.
- Pets are now tracked when their network objects are created and removed.
- Player lookup no longer scans every loaded network object.
1.2.2
- Fixed a severe FPS drop caused by scanning all loaded network objects every frame.
- Added a lightweight pet cache and throttled command-registration retries.
- Improved follow movement timing.
1.2.1
- Reworked the Thunderstore documentation with installation, commands, supported creatures, multiplayer behavior, and configuration details.
1.2.0
- Added automatic teleport to the owner when the pet is more than 15 metres away.
- Added configurable
TeleportDistance.
1.1.0
- Added chat commands that can be sent by any player.
- The server creates the pet near the player who sent the command.
- Follow movement is authoritative on the server for remote owners.
1.0.0
- Initial release.