A simple spear ownership mod for Valheim.
Why? As a spear user, when playing in multi-player with friends, spears cannot be thrown without risking pickup by another player. Because of this, spear users must essentially opt-out of using the spear's special ability when playing with others to avoid confusion and/or lose their weapon.
This mod solves that issue by providing player ownership of spears.
To take ownership of a spear, simply pick up an unowned spear.
Once owned, a spear can be disowned by throwing it on the ground
and using the L-Alt + E
key combination when hovering over it
with your cursor.
Just like binding a spear to yourself, other players in the world may bind any unbound spear to themselves; for this reason, it's a good idea to take ownership of any spears outside of your inventory when first running this mod (spears in storage, item stands, etc).
- BepInEx 5.4.2200
This mod must be installed on all clients who participate; players without this mod will be able to pick up all spears in the world they have access to.
Place HoldMySpear.dll
into C:\Users\<username>\AppData\LocalLow\IronGate\Valheim\BepInEx\plugins
and run Valheim.
Much of the understanding of BepInEx, Valheim and HarmonyX APIs was derived through Azumatt's BindOnEquip plugin.
The name of this project was suggested by Chee, a user on Discord.
I spend most of my time these days playing and modding Valheim. Any donations are greatly appreciated and can be given through my Buy Me A Coffee page.
Thanks to all of those who support my work! This kind of support gives me more ability to work on mods with my time :)