ItemStacks
Increases item stack size and reduces item weight. Configurable
模組介紹 作者原文
ItemStacks Plugin for Valheim
Increases item stack size (10x by default) and item weight (x0.1 by default).
Loading up a world without the mod installed or reducing item stack size will cause any items in a stack above the new stack size to be lost.
Configuration entries are generated based on the items in the ObjectDB instance.
You must join a world for it to create the individual item config entries.
You may choose to enable/disable the stack size or weight modification by setting the respective enabled flag.
Item weights and stack sizes can be individually set, setting these values above 0 will have it ignore the multiplier and use the given value instead.
Installation
- Download and install BepInEx Valheim
- Download this mod and move the ItemStacks.dll into \BepInEx\plugins
- Launching the game and joining a world will generate a config file at \BepInEx\config
Configuration
/BepInEx/config/net.mtnewton.itemstacks.cfg
[ItemStacks.ItemMultipliers]
Multiply the original item stack size by this value
Minimum resulting stack size is 1
Overwritten by individual item _stack_size values.
Setting type: Single
Default value: 10
stack_size_multiplier = 10
Multiply the original item weight by this value
Overwritten by individual item _weight values.
Setting type: Single
Default value: 0.1
weight_multiplier = 0.1
[ItemStacks.ItemStackSize]
Should item stack size be modified?
Setting type: Boolean
Default value: true
enabled = true
Set above 0 to use this value instead of the stack size multiplier
Game default: 20
Setting type: Int32
Default value: 0
amber_stack_size = 0
Set above 0 to use this value instead of the stack size multiplier
Game default: 50
Setting type: Int32
Default value: 0
amberpearl_stack_size = 0...
[ItemStacks.ItemWeight]
Should item weight be modified?
Setting type: Boolean
Default value: true
enabled = true
Set above 0 to use this value instead of the weight multiplier
Game default: 0.1
Setting type: Single
Default value: 0
amber_weight = 0
Set above 0 to use this value instead of the weight multiplier
Game default: 0.1
Setting type: Single
Default value: 0
amberpearl_weight = 0...
Changelog
- v1.2.0
- added config option for stack and weight multiplier
- specific item configs now default to 0
- setting these above 0 will cause the weight or stack size to be set to this value instead of being multiplied.
- previous versions set item specific values, these will need to be deleted or set to 0 for a custom multiplier different than the previously default 10x/0.1x to take effect
- v1.1.3
- item weight toggle was using wrong config value
- v1.1.2
- update readme, config path
- v1.1.1
- fix readme typos
- v1.1.0
- readme changes - installation steps and changelog
- refactor code for simplification
- v1.0.0
- initial mod creation
- configurable item stack size and item weight (defaults to 10x base item stack size and 0.1x item weight)
Source Code
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: