Aquark-TameCommands icon

TameCommands

Every tameable creature works like a wolf: press E on a tamed animal to toggle follow / stay. Configurable exclusions and hover hint.

By Aquark
Last updated 17 hours ago
Total downloads 23
Total rating 1 
Categories Utility AI Generated
Dependency string Aquark-TameCommands-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
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.2351

README

TameCommands

In vanilla only wolves can be told what to do: press E on a tamed wolf and it starts following you, press E again and it stays. Boars, loxes, hens and asksvin just get petted.

TameCommands gives every tameable creature the wolf treatment: press E to toggle follow / stay.

Features

  • Works on every creature that has a Tameable component (boar, wolf, lox, hen/chicken, asksvin …).
  • Press E on a tamed animal → it follows you; press E again → it stops and stays.
  • The game's own message tells you what happened (<name> follows you / <name> stays).
  • The follow target is stored in the ZDO, so it survives area reloads and server restarts.
  • Optional hover hint so players know the key changed (default [E] Follow / Stay).
  • Per-creature exclusions if you want something to stay vanilla.

How it works

Tameable.Interact already contains the whole command flow — it is gated by one field:

if (m_commandable) Command(user, true);   // toggle follow / stay
else               /* just pet */

Wolves ship with m_commandable = true, everything else with false. The plugin flips the flag on every Tameable in Awake, so the vanilla behavior does the rest. No custom AI, no network code, nothing stored in the save beyond the follow value the game already uses.

Install

  • Install BepInExPack Valheim (r2modman handles it).
  • Drop TameCommands.dll into BepInEx/plugins/.
  • Client-side for the key press; install on the server too if you want every player to have it without asking them. Without the mod the interaction falls back to plain petting.

Config

BepInEx/config/snowfarm.valheim.tamecommands.cfg

Section Key Default Meaning
1 - General Enabled true Master switch
1 - General ExcludePrefabs (empty) Prefab names that keep vanilla behaviour, e.g. Hen,Chicken
2 - Hover ShowHint true Append the keybind hint to the hover text
2 - Hover HintText [E] Follow / Stay Text used for that line

Notes

  • Petting still plays its effect first; the command is what the key now does for tamed animals.
  • Animals without a MonsterAI component simply ignore the command (no error, no message).
  • Nothing is written to the world file except the vanilla follow ZDO value, so uninstalling is safe.
  • Does not change taming speed, breeding or feeding.

中文说明

原版里只有狼能指挥:按 E 让它跟随,再按 E 让它停下;野猪、牦牛、鸡、灰烬蜥按 E 只是摸摸。

这个 mod 把所有带 Tameable 的生物都变成狼的交互方式:对已驯服的动物按 E 切换「跟随 / 停留」, 游戏自己会提示「XX 开始跟随你 / XX 停下了」。跟随目标存在 ZDO 里,重进区域、服务器重启都保留。

  • 默认给所有可驯服生物开启,可用 ExcludePrefabs 排除(例如 Hen,Chicken)。
  • 悬浮提示会多一行 [E] Follow / Stay,可改文案或关掉。
  • 玩家端装了就生效;想让所有玩家都体验一致,服务器也装一份。
  • 不写存档(除了游戏本来就用的 follow 字段),卸载安全。

Build

dotnet build -c Release -p:ValheimDir="C:\Program Files (x86)\Steam\steamapps\common\Valheim"

or run pack.ps1 to build and produce TameCommands.zip for Thunderstore.