NoCheatItems
Server-side plugin that deletes Valheim 1.0 cheated items from inventories, containers, and the world.
模組介紹 作者原文
NoCheatItems
Server-side BepInEx plugin for Valheim 1.0. It deletes items that the game itself has marked as cheated, plus the old debug weapons, from the server's loaded world and from online player inventories.
Clients do not need this mod. Install it on the dedicated server (or the listen-server host).
What it removes
Valheim 1.0 stamps spawned items with a persistent flag (ItemData.m_cheated). Those stacks show a grey italic tooltip:
This item was summoned through cheating means.
If a clean character picks one up, the game puts them in a temporary cheat state until every flagged item is gone. This plugin deletes those items so they never sit in chests, on the ground, or in a player's bag on your server.
By default it also deletes the vanilla debug prefabs:
- SwordCheat
- SledgeCheat
Optional (off by default): stacks above max stack size, quality above max quality, and extra prefab names you list in the config.
What it cannot do
Valheim keeps character files on the client. The dedicated server only sees a player's inventory while they are connected. Offline bags are cleaned the next time that player joins.
Unloaded zones are cleaned when they stream in (a chest or dropped pile is scanned as soon as that area is loaded). Vanilla can stamp creature loot with the same cheated flag (the boar drop you saw); those piles are deleted on the dedicated server. Clients still do not need this mod for that.
This does not un-flag a character or world that already used devcommands. It only destroys cheated items.
Install
- Install BepInExPack Valheim on the dedicated server.
- Copy NoCheatItems.dll into BepInEx/plugins.
- Start the server once to generate BepInEx/config/ageous27.nocheatitems.cfg.
Console
On the server console:
nocheatitems_sweep
Sweeps every loaded player, container, world drop, and item stand immediately.
Config
| Setting | Default | Meaning |
| --- | --- | --- |
| Enabled | true | Master switch |
| RemoveFlaggedItems | true | Delete the 1.0 cheated flag |
| RemoveKnownCheatPrefabs | true | Delete SwordCheat / SledgeCheat |
| ExtraPrefabNames | empty | Extra prefab names, comma-separated |
| RemoveOverstacked | false | Delete illegal stack sizes |
| RemoveOverquality | false | Delete illegal upgrade levels |
| ScanPlayers | true | Online inventories |
| ScanWorldDrops | true | Items on the ground |
| ScanContainers | true | Chests, carts, ships, tombstones, Obliterator |
| ScanItemStands | true | Item stands and armor stands |
| ScanIntervalSeconds | 8 | Safety-net sweep while the world is loaded |
| NotifyPlayers | true | Center-screen message when their items are taken |
| LogDeletions | true | BepInEx log line per item |
| DryRun | false | Log only, do not delete |
Pickup and inventory changes are cleaned immediately; the interval is a backup for stands and anything a patch missed.
Build
Requires the Valheim 1.0 client (Unity 6 / 6000.0.75f1) so the project can reference assembly_valheim.dll.
dotnet build -c Release
If Valheim is not at D:\Program Files\Steam\steamapps\common\Valheim, pass /p:ValheimPath="C:\path\to\Valheim".
Output: bin\Release\NoCheatItems.dll.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: