NEWDropSingleItem

版本 v1.3.4·更新於 2026-09-26

Drop/place a single item instead of the whole stack, split stacks in half and grab full stacks. Updated for Valheim 1.0.15.

模組介紹 作者原文

NEWDropSingleItem

Inventory shortcuts for Valheim (1.0.15). Right-click to place or drop a single item instead of the whole stack, grab or drop half a stack with Shift + Right-click, and merge matching stacks with a double-click.

Rebuilt for the current game version from TechGuard's "Drop Single Item" (via cjayride's Valheim 1.0 fork).

Features

  • Place 1 item - Pick up a stack and right-click an empty slot (or a matching stack) to place a single item. The rest of the stack stays on your cursor, so you can keep placing items one by one.
  • Drop 1 item - Right-click outside the inventory grids while dragging to drop a single item on the ground. The rest stays on your cursor.
  • Grab half a stack - Shift + Right-click on a stack (without picking it up first) to grab exactly half of it onto your cursor. Odd quantities round down.
  • Drop half a stack - Shift + Right-click outside the inventory grids while dragging to throw half of the held stack on the ground. The rest stays on your cursor.
  • Grab a full stack - Double-left-click a stack to merge every matching stackable item from your inventory and the opened container into it, then pick the whole merged stack up on your cursor to place it wherever you want.

Installation

  • Install BepInExPack Valheim (5.4.2350 or newer).
  • Drop NEWDropSingleItem.dll into your Valheim/BepInEx/plugins folder.
  • If you have an older DropSingleItem.dll installed, delete it so the two mods do not conflict.

Configuration

A config file is created at BepInEx/config/NEWDropSingleItem.cfg after the first launch.

  • InventoryUseItem (default: Mouse1): the key used to use/consume/equip an item in the inventory (Mouse1 = right mouse button). If you set this to anything other than Mouse1, you no longer need to hold Shift to grab half a stack with right click.

Compatibility

  • Client-side only: neither the host nor other players need this mod.
  • Tested on Valheim 1.0.15 with BepInExPack Valheim 5.4.2350.

Technical notes

  • Every Harmony patch is applied individually with error isolation, so a single failed patch can never disable the rest of the mod.
  • Split/grab operations use the game's Inventory.MoveItemToThis, so items are never flagged as "cheated".
  • Private game members are accessed through reflection (System.Reflection); no extra libraries are required.
  • A transpiler on InventoryGui.UpdateItemDrag keeps the dragged stack on your cursor while right-clicking.

Building from source

Requirements:.NET SDK (the project targets net480 and references the local Valheim installation).

dotnet build -c Release

The project references E:/Steam/steamapps/common/Valheim (see valheim.targets) and the Unity modules in valheim_Data/Managed. To auto-copy the build output to your plugins folder, build with -p:DeployToPlugins=true.

License

GPL-3.0 (same as the original mod).

Credits: TechGuard (original "Drop Single Item"), cjayride (fork for Valheim 1.0), NEWDropSingleItem (1.3.x maintenance for Valheim 1.0.15).

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
NEWDropSingleItem-1.3.4.zip
檔案大小
66.0 KiB