LootBox

版本 v1.1.8·更新於 2026-09-29

Configurable reward boxes.

截圖 共 2 張

模組介紹 作者原文

LootBox

Open mysterious boxes and receive fully configurable rewards, with adjustable chances, amounts, and item quality.

Perfect for servers looking to create progression systems, treasure events, or custom rewards in Valheim.

Features

  • Fully Configurable

Define custom drop tables directly in the configuration file, supporting individual chances, quantity ranges, and item quality.

  • Independent Chances System

Each item has its own independent drop chance.

  • Server-Synced

All configurations are synchronized via ServerSync, ensuring consistent behavior across all players.

  • Modular Integration

The mod does not automatically drop from creatures.

It is designed to work together with other loot systems such as Drop That!

Configuration

  • Automatic creation of folder and template file

On first initialization, the mod automatically creates the LootBox folder inside BepInEx/config, along with a template configuration file to serve as a starting point. (This is only generated on server and single-player environments; it is not generated on clients.)

  • Definitions via CFG files

Lootboxes are configured through external.cfg files inside the BepInEx/config/LootBox folder, keeping the setup cleaner and easier to maintain.

  • File naming

Configuration files use this pattern:

radamanto.LootBox..cfg

  • Multiple files supported

You can split your lootboxes across multiple different files, and each file can contain multiple lootbox definitions, as long as they are placed inside the LootBox folder and follow the expected naming pattern.

  • One section per lootbox prefab

Each lootbox must be declared using the prefab name as the section header. Do not configure the same lootbox twice. Example:

[rd_gold_lootbox_01]

  • Reward line format

Each line inside the section represents one possible reward, using this format:

Item=Chance,Amount,Quality

  • Fixed amount or range

The amount field supports both fixed values and ranges:

5 = fixed amount

50-100 = random amount between 50 and 100

  • Examples of valid configurations

[rd_gold_lootbox_01]

Coins=100,50-100,1

Ruby=50,5,1

SwordSilver=50,1,2

[rd_gold_lootbox_02]

Iron=100,25-50,1

SwordBlackmetal=35,1,3

ShieldBlackmetal=20,1,2

[rd_gold_lootbox_03]

Resin=100,10-30,1

FreezeGland=40,3-8,1

BowHuntsman=25,1,2

  • Example explanation

Coins=100,50-100,1 → 100% chance, amount between 50 and 100, quality 1

Ruby=50,5,1 → 50% chance, fixed amount 5, quality 1

SwordSilver=50,1,2 → 50% chance, amount 1, quality 2

  • Important

The section name must match the lootbox prefab exactly.

The item name must also match the item's internal in-game name exactly.

Translations

  • YML translation file included

A.yml translation file is included with the plugin.

  • Custom lootbox names per language

Through this file, the names of the lootboxes can be changed or translated to the desired language.

  • Simple language customization

You can define custom display names for each lootbox, making it easier to adapt the mod to your server, modpack, or community language.

  • Intended for display names

This translation file is intended to control how lootbox names are shown to players in-game.

Administration Command

  • Configuration reload

The lootbox.reload command forces a reload of the.cfg files in BepInEx/config/LootBox.

  • Runtime reapplication

Valid definitions are reloaded and reapplied without restarting the game or server.

  • Restricted usage

This command is restricted to administrators.

Global Opening Effects

  • Configurable opening effects

The mod allows switching between different global visual and sound effects for lootbox opening.

  • Global behavior

The selected effects are applied globally to all lootboxes.

  • Visual and sound selection

You can choose which visual effect and which sound effect will be used during box opening through the plugin configuration.

How to Use

To open a Loot Box, simply hold SHIFT and right-click the item in your inventory.

When you do this, the bo

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
LootBox-1.1.8.zip
檔案大小
5.8 MiB