Source: https://github.com/joeyparrish/valheim-farmcounter
FarmCounter lets you add special tags to a sign that will be replaced with counts of nearby creatures.
For example, $tame_boar
would be replaced with a count of "nearby" tamed
boars, while $wild_deer
would be replaced with a count of "nearby" wild deer.
See the definition of "nearby" below.
FarmCounter is published on both ThunderStore and Nexus Mods. Install using your favorite mod manager.
Creature | Tag |
---|---|
Tame Boar | $tame_boar |
Tame Piggy | $tame_boarpiggy |
Tame Wolf | $tame_wolf |
Tame Wolf Cub | $tame_wolfcub |
Tame Lox | $tame_lox |
Tame Lox Calf | $tame_loxcalf |
A tag has a prefix and a suffix.
The prefix is either $tame_
to count tame creatures, $wild_
to count wild
creatures, or $all_
to count both.
The suffix is the untranslated name of a creature. A full list can be found
in Jotunn's docs on translation data.
If the name is $enemy_boar
, the suffix is simply boar
.
So, for example, $all_goblin
would count all nearby Fulings. If you're using
a mod like AllTameable or
Pokéheim, then any creature
could be considered tame.
Modded creatures that don't follow the normal $enemy_
pattern in m_name
can
still be counted. There is an extended syntax that you can use for
names that contain spaces or don't follow normal patterns.
Extended tags take the form of ${tame_...}
, ${wild_...}
, or ${all_...}
,
where the ...
part is the exact m_name
for the modded creature. It can
contain any character but }
.
For example, when using the
OdinHorse mod,
there is a creature with m_name
set to $horse_odin
. To count tame horses,
use the tag ${tame_$horse_odin}
. Foals can be counted with
${all_$horse_offspring}
.
For another example, AllTameable
creates baby deer with m_name
set to Mini $enemy_deer
. To count tame baby
deer, use the tag ${tame_Mini $enemy_deer}
.
Valheim defines your "base" as anything in range of your workbenches, so this mod uses a similar definition.
A creature is in range of your sign if it is range of any workbench in range of your sign.
In vanilla Valheim, workbenches have a 20 meter range. If you're using a mod such as Valheim Plus, FarmCounter will detect the overridden distance from the other mod and use that instead.
To determine the number of nearby workbenches, you can use the special
debugging tag $all_workbench
.
Just BepInEx.
None that we know of!
If someone is not using the mod, they will simply see the raw tag on the sign.
- Nexus Mods: https://www.nexusmods.com/valheim/mods/1952/
- Thunderstore: https://valheim.thunderstore.io/package/joeyparrish/FarmCounter/
FarmCounter was created by Joey Parrish.