Backpack Lock
Host-only backpack lock so players cant remove items from backpack.
模組介紹 作者原文
🔒 Backpack_Lock
⚠️⚠️⚠️ THIS MOD IS 100% VIBECODED ⚠️⚠️⚠️
Yes, an AI wrote the whole thing. Expect the unexpected. Report bugs to the void.
A host-side mod for PEAK that stops other players from removing items from backpacks.
Host-only: the player who hosts the session is the only one who needs to install this.
Other players don't need it. No dedicated server required — it works in a normal hosted lobby.
Features
- Block thieves — while enabled, non-owners cannot lift items out of a backpack.
- Scope — protect just the host's own backpack, or everyone's backpack.
- Owner rules — a dropped backpack keeps its first owner, or the most recent toucher.
- Faint / death release — a backpacker who is knocked out past a grace window (or dies) has their
backpack unlocked and becomes lootable by anyone.
- Runtime hotkey — press the hotkey to flip protection on/off mid-session, with a small toast.
Installation
- Install BepInEx 5 for PEAK (any 5.4.x build — the mod lists BepInExPack_PEAK as a
dependency, so a mod manager will pull it automatically).
- Drop this mod into BepInEx/plugins/BackpackLock.
- Launch the game; a config file is auto-generated.
- Host your world and press the hotkey. Testing with a friend is recommended.
Host-side only: clients don't need the mod.
Configuration
Edit BepInEx/config/Vector.BackpackLock.cfg after the first launch.
[General]
| Setting | Default | What it does |
|---|---|---|
| Enabled | true | Master switch for all protection. |
| Hotkey | B | Key to toggle protection at runtime (Unity KeyCode). |
| Scope | Everyone | Everyone = every player's backpack is protected; HostOnly = only the host's. |
| OwnershipMode | First | First = first owner keeps it; Last = most recent toucher owns it. |
| ShowInGameAlert | true | Show the toast when toggling. |
[Advanced]
| Setting | Default | What it does |
|---|---|---|
| LoseOwnershipOnFaint | true | A passed-out owner eventually loses their lock. |
| FaintGraceSeconds | 3 | Seconds passed-out before the lock drops. |
| ProtectDropped | true | Protect backpacks on the ground. |
| ProtectWorn | true | Protect backpacks worn on the back. |
License
MIT. All assets are original.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: