AFKResourcePreserver
Pauses hunger and thirst after 30 seconds standing still. Move to resume normal drain. Oxygen is unchanged. Configurable delay; co-op requires the mod on the host and protected players.
模組介紹 作者原文
AFK Resource Preserver
Made for those co-op sessions where someone needs to step away without disconnecting.
Stand still for 30 seconds and your hunger and thirst stop draining. Move again and normal drain resumes. Nothing gets refilled, and looking around won't reset the timer.
Oxygen still drains. Get somewhere you can breathe before going AFK. Damage and toxicity aren't blocked either.
Installation
Install with r2modman or Mod Manager, then launch the game modded. Requires BepInExPack 5.4.2305 or later.
For a local install, use Import local mod and select AFKResourcePreserver-1.0.1.zip from the GitHub release.
For manual installation, put AFKResourcePreserver.dll in BepInEx/plugins/AFKResourcePreserver.
Co-op
The host and anyone who wants AFK protection need version 1.0.1 or later installed and enabled. Each player has their own timer and settings. Players without the mod aren't affected.
Upgrading from 1.0.0: update both the host and protected guests, then restart both games. Version 1.0.1 fixes a co-op message-reading bug that could prevent protection even when both players had the mod installed. The guest log should show Host confirmed AFK Resource Preserver support. after joining.
Installing it on a guest alone won't work because the host handles survival drain. A warning will appear in the log if enabled host support isn't acknowledged; this can also indicate an old version, a loading failure, or disabled host settings.
Settings
Launch the game once to create:
BepInEx/config/noxie.planetcrafter.afkresourcepreserver.cfg
Edit it with the game closed, then restart.
| Setting | Default | What it does |
| --- | --- | --- |
| Enabled | true | Turns the mod on or off. Turning it off on the host disables protection for everyone. |
| AfkDelaySeconds | 30 | How long you need to stand still. |
| MovementThreshold | 0.02 | How far you can move before the timer resets, in world units. |
| PreserveHunger | true | Pauses hunger drain while AFK. |
| PreserveThirst | true | Pauses thirst drain while AFK. |
The small movement tolerance ignores position jitter. Walking, jumping, falling or teleporting resets the timer; moving the camera doesn't. Loading and respawning also start a fresh countdown.
If you're hosting and only want protection for your friends, leave Enabled on and turn your own PreserveHunger and PreserveThirst off.
Compatibility and bugs
Works independently of Player Inventory Stacks. Eating and drinking still work normally. Mods that replace hunger/thirst drain may conflict. Co-op timing can vary with connection lag, and protection isn't guaranteed if the game process is suspended or the connection drops.
Found a problem? Open an issue on GitHub with what happened, your game/mod versions, whether you were hosting or joining, and your BepInEx/LogOutput.log.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: