LoyalSpears
Spears that are loyal - return on throw and do not get picked up by others.
模組介紹 作者原文
Loyal Spears
Spears that are loyal — they return to you after being thrown and prevent other players from auto-picking them up.
This is a Valheim 1.0+ port of the original Loyal Spears by Goldenrevolver, upgraded to use Jotunn's built-in config sync instead of ServerSync.
Features
- Auto-Return: Thrown spears automatically return to their owner after landing, or after traveling too far.
- Owner-Only Pickup: Prevent other players from auto-picking up your thrown spears.
- Weight Reservation: Throws reserve a portion of your carrying capacity so you don't accidentally overburden yourself picking up loot before retrieving your spear.
- Portal Safety: Spear tracking components are cleaned up when teleporting through portals, preventing spears from getting stuck across dimensions.
Installation
- Install BepInEx and Jotunn into your Valheim game.
- Download the latest release LoyalSpears.zip.
- Extract the contents directly into your Valheim game folder.
- This will place LoyalSpears.dll in BepInEx/plugins/
- The manifest.json and README.md are for mod manager compatibility.
- Launch Valheim. The mod will be active.
Uninstall
- Delete BepInEx/plugins/LoyalSpears.dll from your Valheim game folder.
Configuration
All settings are server-synced. The server's configuration is authoritative.
| Setting | Type | Default | Description |
|---------|------|---------|-------------|
| EnableBlockAutoPickup | bool | true | Prevent other players from auto-picking up your thrown spears. |
| ReturnAfterSeconds | float | 5 | Seconds until a thrown spear returns to its owner after hitting the ground. 0 or negative disables. |
| BlockReturnIfOverburdened | bool | false | Skip auto-return if picking it back up would overburden the owner. |
| ReserveThrowWeight | bool | true | Count thrown spear weight as reserved during auto-pickup checks. |
| MaxReservationSeconds | float | 60 | Safety cap so a lost spear doesn't reserve weight forever. |
| FlightDistanceUntilAutoReturn | float | -1 | If a thrown spear travels further than this distance from the owner without hitting the ground, it auto-returns. Negative disables. |
Find the config file at BepInEx/config/com.loyalspears.mod.cfg.
Dependencies
- BepInExPack for Valheim
- Jotunn (latest)
License
This project is licensed under the MIT License - see LICENSE for details.
Original code from Goldenrevolver/ValheimSpearModsAndFriends (MIT, Copyright 2023 Goldenrevolver).
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: